Jump to content

Show "From" in Email


doubledee

Recommended Posts

How do I make sure the "From" shows up in an e-mail sent from a form?

 

Here is my code...

// E-mail Inquiry to Administrator.
$to = '[email protected]';
$subject = $trimmed['subject'];
$inquiry = $trimmed['inquiry'];
$from = $trimmed['senderEmail'];
//	$headers = $from;
mail($to, $subject, $inquiry);
//	mail($to, $subject, $inquiry, $headers);

 

 

When I do a test from my laptop, I get this in my e-mail inbox...

 

Subject: Re: Test 1

From: [email protected]

Date: Sun, Oct 09, 2011 8:46 pm

To: [email protected]

 

 

As you can see above, I did *not* include $from in my mail statement...

 

What is going on?

 

 

Debbie

 

Link to comment
https://forums.phpfreaks.com/topic/248777-show-from-in-email/
Share on other sites

This doesn't asnwer your question, but, in general, depending on your host, I would send it from one of your own email addresses on your domain, then attach a reply-to with the from email. Most spam fliters don't like the from address not matching the domain it is being sent from

Link to comment
https://forums.phpfreaks.com/topic/248777-show-from-in-email/#findComment-1277619
Share on other sites

This doesn't asnwer your question, but, in general, depending on your host, I would send it from one of your own email addresses on your domain, then attach a reply-to with the from email. Most spam fliters don't like the from address not matching the domain it is being sent from

 

I don't understand what you are saying...

 

 

Debbie

 

 

Link to comment
https://forums.phpfreaks.com/topic/248777-show-from-in-email/#findComment-1277621
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.