M.O.S. Studios Posted Tuesday at 09:58 PM Share Posted Tuesday at 09:58 PM 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? Quote Link to comment https://forums.phpfreaks.com/topic/328873-changing-mail-settings-easily/ Share on other sites More sharing options...
gizmola Posted Wednesday at 09:56 PM Share Posted Wednesday at 09:56 PM 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. Quote Link to comment https://forums.phpfreaks.com/topic/328873-changing-mail-settings-easily/#findComment-1655268 Share on other sites More sharing options...
maxxd Posted Wednesday at 10:08 PM Share Posted Wednesday at 10:08 PM 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. Quote Link to comment https://forums.phpfreaks.com/topic/328873-changing-mail-settings-easily/#findComment-1655269 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.