Quote from: BobRay at Nov 10, 2018, 05:53 PMNotify will use Mailgun out of the box. You could look at the Notify code if you want to implement it in other places. I've never done it. Look at the MailgunX class in the Notify files under core/components/notify.
Hi Bruno,
I've set up Mailgun right now. I configured it in the Notify Props:
mailService => MailgunX
mailgun.domain => my freshly created and by Mailgun verified subdomain
mailgun_api_key => the key provided by Mailgun
When trying to send an email now, I get "Results: E-mail to subscribers sent successfully to 1 recipients using MailgunX"
But no Email was sent at all.
So I turned on the dubug mode
And that's the content of the log (I just replaced some sensitive data with asterisks)
after trying to send 1 Email:
[2018-11-14 15:57:30] (ERROR @ /var/www/vhosts/*****/httpdocs/core/components/notify/model/notify/mailgunx.class.php : 96)
********** MailgunX class **********
[2018-11-14 15:57:30] (ERROR @ /var/www/vhosts/*****/httpdocs/core/components/notify/model/notify/mailgunx.class.php : 231)
Prepared Tpl
TEST CONTENT
[2018-11-14 15:57:30] (ERROR @ /var/www/vhosts/*****/httpdocs/core/components/notify/model/notify/mailgunx.class.php : 262)
Final Fields
Array
(
[from] => ***** ***** <**@*****.**>
[subject] => *******
[text] => TEST CONTENT
[html] => TEST CONTENT
[h:Reply-To] =>
[to] => ******.*****@*****.**
[recipient-variables] => []
)
[2018-11-14 15:57:31] (ERROR @ /var/www/vhosts/*****/httpdocs/core/components/notify/model/notify/mailgunx.class.php : 262)
Final Fields
Array
(
[from] => ***** ***** <**@*****.**>
[subject] => *******
[text] => TEST CONTENT
[html] => TEST CONTENT
[h:Reply-To] =>
[to] => ******.*****@*****.**
[recipient-variables] => []
)
I can't manage to get the exact cause of the errors. Do you?
The line number references in the ERROR log (eg 231 or 262) just brought me to the line where Notify writes the error to the log but not (as I assumed) to the line of code where the error is thrown.
So I got stuck right now... Any ideas are highly welcome ;-)