One thing I've seen used to get around this is to embed the senders
email address into one from your domain.  This does involve some extra
coding at your end as you will have to set up a forwarder to forward
on responses.

Say the sender is [email protected] and your domain is mydom.org.
You would send the mail from "Fred Bloggs"
<[email protected]> and if a reply comes back have
a forwarder set up such the anything that is received for the
fredbloggs__at__hotmail.com alias gets forwarded to
[email protected].

Not pretty but it works.

Stephen



On 14/07/2011, simon haywood <[email protected]> wrote:
> 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/stephenbooth.uk%40gmail.com
>

-- 
Sent from my mobile device

It's better to ask a silly question than to make a silly assumption.

http://stephensorablog.blogspot.com/ |
http://www.linkedin.com/in/stephenboothuk | Skype: stephenbooth_uk

Apparently I'm a "Eierlegende Woll-Milch-Sau", I think it was meant as
a compliment.

_______________________________________________
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