Hi,
using mautic 2.13.1 with php 5.6.36 or 7.0.30, I can not send any emails out of mautic.
I had tested it with the ´Test Mail´ function in EMail-Settings and send an email to a test contact using immediatly sending and queing.
In Email-Settings connecting to smtp and sending a test mail is signed as successfull, but no mails received the mailboxes. Mails sending outside mautic works even as receiving to the specific mail account.
Cron Jobs are set and working.
There is a fault in the System Info -> Logfile:
[2018-05-17 17:31:14] mautic.WARNING: PHP Warning - stream_socket_enable_crypto(): Peer certificate CN=*.hosting.de’ did not match expected CN=smtp.domain.de’ - in file /var/www/vhosts/web456.dehamd121.servertools24.de/service.techfair.de/mautic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php - at line 94 [] []
Later changed the name of the smtp server or disabled queing. But the warning still appears.
I now figured out:
– What does the “Test connection” button in the email settings say (when you push it)?
-> Succesfull!
– Are you able to send a test out of an email template directly?
-> Yes, this is working
– Are you able to send a direct email out of one contact’s details?
-> No, that was the issue I mentioned above
– Have you created the necessary cronjobs?
-> Yes, I hat created all necessary conjobs like this:
/usr/local/…/mautic/app/console mautic:emails:send >/dev/null 2>&1
Is it necessary to add “>/dev/null 2>&1” at the end I saw in another thread like this?:
/usr/local/…/mautic/app/console mautic:emails:send >/dev/null 2>&1
What is it for?
Sorry, there was a mistake in my post above and I am not able to edit that.
-> Yes, I hat created all necessary conjobs like this:
/usr/local/…/mautic/app/console mautic:emails:send
Is it necessary to add “>/dev/null 2>&1” at the end I saw in another thread like this?:
/usr/local/…/mautic/app/console mautic:emails:send >/dev/null 2>&1
Thank you for the explanation.
But I’m confused, because emails are sent well from the email template while emails sent directly to contacts do not reach them using the domains smtp server.
Might this belong to SSL?
I had installed muatic in a subdomain while I use the smtp server from the main domain.
I had cheked domain SSL, it´s renewed by Let´s encrypt. Is there another SSL for the mailserver that I have to ask my hosting?
Emails from campaigns or test mails from channels -> email are working well.
Only mail to send to a contact directly will not work on my mautic 2.13.1.