Sending Email From Web Server

oo7ml
oo7ml used Ask the Experts™
on
Hi,

I have a contact form on my Wordpress site.

When a user submits the form, and automatic confirmation email is sent to the user.

The confirmation email often ends up in the user's spam folder.

01 - is it possible to change the email address that the confirmation email is sent from... i'd actually like to have it sent from an email address on another domain

02 - can you suggest any ways to help improve the sending of the email so that it doesn't end up in the spam folder.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2011
Top Expert 2016
Commented:
Sigh.  Email seems so simple until you actually try to write scripts that use it.  Then the ugly-warts-and-all parts start to show up.

01 - I recommend that you NOT change the "from" address.  Instead, add a Reply-to address.  Bogus "from" addresses are a known symptom of spam, and that change will only make it worse.

02 - Some ideas; the more you do, the better your chances of getting the mail through.

A. Make sure that your clients have been told what email address will send them automated messages.  Tell them to "whitelist" this address, perhaps by adding it to their address book.

B. Learn about SPF records and use them.
https://en.wikipedia.org/wiki/Sender_Policy_Framework

C. Inspect your messages carefully for "spammy words" and remove them.
http://blog.hubspot.com/blog/tabid/6307/bid/30684/The-Ultimate-List-of-Email-SPAM-Trigger-Words.aspx
http://blog.sendblaster.com/2009/10/19/200-spam-words-and-phrases-to-avoid-in-your-email-newsletters/

D. Learn from the professionals.
http://mailchimp.com/resources/guides/how-to-avoid-spam-filters/html/

03 - The question that wasn't asked but should be: Is there a better way than sending my own email messages, perhaps a professional email service, that can help me get the mail through?  Yes, there is, and they have both a free trial and a programmable API.
http://www.constantcontact.com/index.jsp

Author

Commented:
Thanks Ray. I think point 03 is what I need.

So would it best to use, or is it possible to use SendGrid or something similar so that I can send it from a different email domain?

Do third party email systems allow you to do that?
Most Valuable Expert 2011
Top Expert 2016

Commented:
I'm guessing you can use SendGrid for something like this, but you would have to talk with them about the specifics.  There are laws about impersonating a different domain, and the penalties can be quite severe (handcuffs and jail time) so the professional email services are naturally quite careful to help you stay on the good side of the law!
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

Author

Commented:
Ok, but surely it would be ok, if you verified your domain with the 3rd party
Dave BaldwinFixer of Problems
Most Valuable Expert 2014
Commented:
You should know that spam is what the person receiving the email says it is.  That is also the legal definition, unwanted email.  The fact that they have signed up for something doesn't mean they have set up their email to prevent it from going into the spam folder.
Most Valuable Expert 2011
Top Expert 2016

Commented:
... but surely it would be ok, if ...
This is a legal question, as well as a technical one.  You should probably consult your lawyer.  But first, why not take the easy path?  Just sign up for the free trial at Constant Contact and see what they can do for you.  They've been doing this for quite a few years, I've used them extensively, and they are very good at what they do.
Scott FellDeveloper & EE Moderator
Fellow 2018
Most Valuable Expert 2013
Commented:
I use both send grid and mostly mandrill.  you can send from any account you want.  for each domain you send from, you really need to set up spf and dkim to get to the inbox.    you can create one account and multiple sub accounts.  there are a lot of advantages to using a 3rd party smtp service and I highly recommend it.  

check out mandrill, it is less expensive (send grid has a newer lower tier but mandrill has 11k per month free.it is not intuitive,  post any questions here.


it is not intuitive at first.

Author

Commented:
Thanks guys, i'll check each of them out now.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial