Jump to content

add cc option to php form


logicsound

Recommended Posts

YES!!!!!!  First one worked!!! 

 

one last final question.  so this domain is hosted on a apache server that I have other domains on too.  When you receive the email it shows it is from the main domain.  (example LOI@mail.xxxxx.com 

 

Can I specify in the code a reply address so it over writes the default hostname ?

Link to comment
Share on other sites

of course...  you would do that with a reply-to header

 

you would replace this:

 

$mailhead .= "FROM: LOI\r\n";
$mailhead .= "CC: ".$email;

 

with this:

 

$mailhead .= "FROM: LOI\r\n";
$mailhead .= "Reply-To: whatever@whatever.com"."\r\n";
$mailhead .= "CC: ".$email;

 

another way to do it is to do this

$mailhead = "FROM: LOI<whatever@whatever.com>"."\r\n";
$mailhead .= "CC:".$email;

Link to comment
Share on other sites

I believe that as soon as another post is added you cant modify them.  i have my personal information all over this forum, i dont get any unwanted emails so you should be fine.  and this section goes so fast by tonight it'll be on like the 10th page.

Link to comment
Share on other sites

  • 3 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.