Forums

How do I check that EMail [GH] sent OK?

NickOg 10 Jul, 2014
Hi

I see from debug that once an email has been sent, there is some flag set to indicate success. I can't find that. How can I check to see if the message went OK.

Thanks

Nick
GreyHead 10 Jul, 2014
Hi Nick,

You can't check that at present except by turning debug on. If you need it, I can add the code tomorrow to put a variable in the $form->data[''] array.

Bob
GreyHead 11 Jul, 2014
Hi Nick,

I've updated the Email [GH] action with two fixes:

a) Fixed a bug where single emails weren't being MX checked (lists and arrays were).

b) Added a new output. Here's the Help for it:

The Action will also add diagnostic information to the form debugger output and will set a value in the $form->data array that can be used to check if an email has been sent. The value is set in $form->data['email_gh'][action_name] where action name is the name set in the action configuration. The value will be 'true' if an email was sent or a message string if the email failed.
[email_gh] => Array
        (
            [test] => No valid To Email address found
        )


Bob
NickOg 11 Jul, 2014
Hi Bob
Many thanks! Excellent service as ever. I will pick up a copy tomorrow.

Regards

Nick
This topic is locked and no more replies can be posted.