Jump to content

Recommended Posts

Hey everyone,

I changed the service I use for my e-mail hosting away from my website hosting. The only "email thing" I really use the hosting service for is sending emails, for reason explained below.

Usually, I would have changed the SMTP settings using php.ini, and been done with it, however, my shared hosting has removed that ability.

This has created two unique problems:

    1. Now that my my email is handled by a third party, the hosting no longer DKIM signs emails it sends out using "mail()"

    2. The "header from" and the "envelope from" no longer match by default. The ladder is the default shared hosting domail email.

 

These two issue resault in the mail going into the spam folder.

 

I can fix this by using either the phpmailer library, or the -f parameter in mail; however that now means compatabilty issues with future applications I install, that depend on the php.ini information being accurate.

Is there any workaround you guys can think of that might help me fix this?

 

Link to comment
https://forums.phpfreaks.com/topic/328873-changing-mail-settings-easily/
Share on other sites

If you're using 3rd party email service, then you should be sending email through them.  

They also should provide you the SPF, DKIM and DMARC TXT records you would need to add to your DNS.

Really this is a question for your hosting company, as the details of how they support email differ based on the hoster.

I'll add that if you're retooling things now to deal with your hosting company, take the time while you're at it to switch to PHPMailer or Symfony Mailer. They're both massively easier to use and more reliable than php's native mail() function.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.