Problem with wordpress mail () function

0

Hello, how are you? I'm new here so nothing, I'm having a problem with a wordpress that is hosted on a digitalocean server, the issue is that this wordpress was previously hosted in godaddy, with domain, mail everything it offers, after several problems we decided to migrate digital, with all that this means (redirect domains, etc) everything worked perfect until the administrator of the wordpress tells me that he has a problem with the contact form, the thing is that he does not stop sending messages, I was messing a little and I found that it did not allow to send messages because the function mail () of php is deactivated or something like this, I kept looking and found that installing sendmail was going to solve things, the issue is that the error was solved when sending the message but the message never arrives at destination (mail that is in godaddy) and here I stay, configure everything according to a guide changing the / etc / hosts adding the domain of the page but nothing, the truth that is already I'm a little lost.

Any help would be very useful! thank you very much!

    
asked by Juanse Gimenez 04.10.2016 в 22:04
source

2 answers

0

2 things may be happening:

  • Have you configured your email account that you are going to use as a sender in your php.ini? Not configuring this can cause the mail you are sending to be marked as spam and not be shown to the recipient.
  • Even if everything is well configured they can also be marking the emails that you send from your server as spam and do not allow them to reach their recipients. You should try sending to an email account that your spam email filter is not as robust, as a corporate email account, because gmail, hotmail or other known if they block them.

When you have verified that if you send mail your server you should investigate how to configure your server so that it does not mark as spam the emails that you send.

Check this link: link

Or also use some external SMTP server with PHP: link

Luck.

    
answered by 04.10.2016 / 22:31
source
1

Another option, which I always recommend and by the way release processes from the server, is that the WordPress emails are sent using SMTP. There is a great plugin for that: link

    
answered by 13.10.2016 в 10:14