Sending Email From Web Server

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.
oo7mlAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ray PaseurCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
oo7mlAuthor 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?
Ray PaseurCommented:
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!
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

oo7mlAuthor Commented:
Ok, but surely it would be ok, if you verified your domain with the 3rd party
Dave BaldwinFixer of ProblemsCommented:
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.
Ray PaseurCommented:
... 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 Fell, EE MVEDeveloper & EE ModeratorCommented:
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.
oo7mlAuthor Commented:
Thanks guys, i'll check each of them out now.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.