rarebear Posted June 13, 2013 Share Posted June 13, 2013 Hi, I have a client that wants an e-mail form on a activist website where the recipient is a government office. The idea is that we would pre-compose a message and let the visitor fill in his/her name and e-mail address. An e-mail would then be sent from our mail server (visitors.name@ourserver.com) with Reply-To set to the visitors e-mail address. Is this at all possible? Is it ethical? (our purposes are noble) How long would it take for us to get blacklisted? I realise that the best solution would be to make the visitor copy and paste the email, but my client really wants this solution. Plus that we want som way to keep track of the amounts of e-mails being sent. Thank you. Quote Link to comment Share on other sites More sharing options...
cyberRobot Posted June 14, 2013 Share Posted June 14, 2013 (edited) To help avoid blacklisting, you could consider using a plain "mailto" link: <a href="mailto:email@address.gov?subject=This is the Subject&body=This is the content of the email.">Email Link</a> This would open the message in the visitor's e-mail client and sent out by them. Note that this solution is geared toward e-mail clients like Microsoft Outlook. You would need to provide an alternative for those using web clients like Yahoo Mail...maybe a copy/paste solution. Is this at all possible? You could create a HTML form to send out the e-mail from your server. Note that there are many tutorials online for pre-populating forms: https://www.google.com/search?q=php+pre-populating+forms Just be aware that this has a greater potential as being marked as spam. Also, if you choose to go this route, be aware of e-mail injection attacks: https://www.google.com/search?q=php+email+injection Edited June 14, 2013 by cyberRobot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.