Send Email Error Global Variable? - Forum

Forum Navigation
You need to log in to create posts and topics.

Send Email Error Global Variable?

Is there a global variable for any errors encountered when using the SendMail action?
Or would I have to depend on anything returned in the [LastError] variable?

I can't really reproduce the error on purpose in order to test it. I guess I need to wait and see what happens when it's used?

@pauljonestindall

Instead of SendMail, look at special functions or a plugin.

You can use the function (by David Riley) to do this.
Demo example (with functions in the archive):
http://orgpsiholog.ru/downloads/neobook/practicum/SendMailCDO2.zip

My course has detailed instructions on how to do this (the course is free, but registration on the site is required):
https://distant.orgpsiholog.ru/mod/assign/view.php?id=192

Or a plugin (David de Argentina):

https://visualneo.com/forum/topic/gmail-has-improved-more-smtp-control-to-send-emals-services