Funny enough we just had to fix a few contact forms for some  
customers. We did a lot of tests and in the end method 1 and method 2  
had the same success rate through the spam filters, so we chose method  
2 as the Sender header is usually hidden in most mail clients so it  
makes it less confusing to the end user.

Matias Gertel
Freelance Web Development & Coding
e: [email protected]
m: +64 21 288 8840
p: +64 9 838 3367

On 8/09/2009, at 12:11 PM, Stig Manning wrote:


Hi all,

The majority of all websites have some kind of contact form. Generally
it accepts the user's email address, name and a message.
In order to make it easy to respond to these messages you might set
email headers like:

From: [email protected]
Reply-To: [email protected]

So then responding to the message is possibly by hitting 'Reply'.
There is also another method using email headers like:

From: [email protected]
Sender: [email protected]

This also allows you to respond by hitting 'Reply'. Both of these
options are not going to be blocked by any SPF policy (see
http://www.openspf.org/Introduction).

Which of these two options are 'best practice'? Any idea what the
benefits of either of these are (other than the way the headers appear
in an email client)?

There is another options, the cowboy option, setting the 'From' to be
the user's email address. This WILL be blocked by their domain's SPF
policy, and anyone doing this should fix their mailers...
Interested to hear everyone's opinions,

Cheers,
Stig

-- 
Stig Manning
http://www.sdm.co.nz





--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to