Hi,
I am looking for some advice, and hopefully a recommendation.
I have built a website (currently hidden on a test server) that
facilitates users emailing their MPs. I realise that there are a
number of sites that already do this - but this one is designed for a
specific campaign. The site asks users for their name, address,
postcode and email. The email is sanitised and then validated (by
sending a unique code and asking for a response) and the user's
constituency is looked up using theyworkforyou's postcode API (for
which we already have agreement). We look up the MP's email using our
own database. A message is proposed, the user can edit, and inputs are
sanitised. All fairly standard stuff.
But now I have a problem.
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.
I've tried setting the "from" to be the website domain, and the "reply-
to" to be the user. However, PHPMailer seems to put both addresses on
the reply-to line - which seems rather messy.
So, I have two questions.
1.
Is my proposed method the "correct" method? If so, I'd be grateful if
someone could point me towards an SMTP service willing to play ball.
There are several services like this out there - how's it been done
elsewhere?
or.
2.
If my proposed method is not the "correct" method, what is?
Thanks in advance!
Simon
_______________________________________________
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