Hi Stefano,
After a big research of my sending problem , I found that wp_mail, don’t work.
I worked over the file diagnostic.php on “$r = wp_mail” line
I change this line to mail() function with a differents params, like sender, from, cc, bcc, and the server is not filter my emails.
But when I return to wp_mail() I can’t deliver any mail. No error is returned.
I really can’t found the problem with it.
You have any idea ?
You provider is dropping the email. The function probably work, is the mail server not delivering the email. Have you contacted your provider asking about sending email with PHP?
wp_mail() is based on phpmailer library which uses mail() – if not differently configured.
But are you on a windows server? The difference is usually the header “from” which is composed by wp_mail to contain a name (“WordPress”) and an email address (“wordpress@domain.com”).
On windows I found problem some time ago because of the name, for example. But they should be able to look at the mail server log an find the problem!
I don’t know if a windows server. Maybe yes. But I change the sender and not contain uppercase chars.
They solve my problem without give me a reason, but I’m not sure he can trust in his mail service because stop to work without giving any message or error.