Forums

redirect error when using Email [GH}\]

kendulah 08 Apr, 2016
Hello,
I have a bunch of forms on my site which I distribute with the custom action Email [GH].
Since yesterday I cannot submit any form anymore and get an error '0 Invalid address:'
In a testform I used the built-in mail function and that works just fine.
I have PHP ver. 5.6.19 enabled on the server.

Thanks in advance for your help
GreyHead 08 Apr, 2016
Hi kendulah,

Thanks for the heads up - I found the problem and a fix. The error seems to be caused by an empty Reply To Email address. The fix is to add a couple of lines to check for that. Around line 297 of look for this code:
            $mail->addReplyTo($replyto_email, $replyto_name);
and replace with this code:
          if ( !empty($replyto_email) ) {
            $mail->addReplyTo($replyto_email, $replyto_name);
          }

I'll go and upgrade my master file now. . . . you can download an updated version here.

Bob
kendulah 08 Apr, 2016
Thanks Bob for the speedy fix
I dowloaded the new version and put it on the server - Looks great 🙂

Have a great weekend
This topic is locked and no more replies can be posted.