Menu

form submision email sent from wrong domain

Help
2006-05-31
2013-06-03
  • Simple_Surfer

    Simple_Surfer - 2006-05-31

    aloha,
    all form submision emails sent to me are not being sent from my domain, unfortunatly they are being sent from my hosts domain...

    could you please inform me as to how to change this value ?

    i want the adress to be NAME@MYDOMAIN.com  <b>not</b> NAME@MYHOSTSDOMAIN.com

    Thank you very much for all of your hard work, this is a great tool... i look forward to contributing in what ever way i can

     
    • TNTEverett

      TNTEverett - 2006-05-31

      Easy!
      // recipient
      $to  = 'aidan@example.com';
      // subject
      $subject = 'Birthday Reminder';

      // Additional headers
      $headers = 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
      $headers .= 'From: Birthday Reminder <birthday@example.com>' . "\r\n";
      $headers .= 'Cc: birthdayarchive@example.com' . "\r\n";
      $headers .= 'Bcc: birthdaycheck@example.com' . "\r\n";

      // Mail it
      mail($to, $subject, $message, $headers);

      Your process.php uses the mail function but not the variables you see hear.  Simply modify your file to look like this and you should be all set.  Let me know if you need more help.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.