On 14/07/2011 21:10, simon haywood wrote:
On 14 Jul 2011, at 20:56, Mark Goodge wrote:

On 14/07/2011 19:54, simon haywood wrote:

My plan was to have the site email the appropriate MP setting the "from"
and "reply to" headers to be the email address of the user. In fact,
it's been working fine in this way during our test phase - using my own
SMTP server. I want to do it this way, because it means the user gets
the auto-reply, and subsequent response from the MP.

However, it seems tricky to find an SMTP service permitting setting of
the headers in this way.

Really? Any hosting service which runs SMTP on the server will handle
this. Is there any particular reason that you need to use an external
SMTP server rather than just using, say, PHP's mail() function?

Well, I thought it rude to assume that the hosting company would also
act as an smtp relay. Am I wrong?

If you're running on Linux, then you don't need an external relay. The box itself will do SMTP for you. All you need to do is let your scripting language of choice talk to it. That's how it is for 99% of commercial webhosting, anwyay.

Mark

_______________________________________________
developers-public mailing list
[email protected]
https://secure.mysociety.org/admin/lists/mailman/listinfo/developers-public

Unsubscribe: 
https://secure.mysociety.org/admin/lists/mailman/options/developers-public/archive%40mail-archive.com

Reply via email to