Emails not sent
Hi Ray
The attached form (in a modal, if that's relevant) appears to work, in that after submitting the form, you are redirected to the correct page. However, no emails are sent!
Is there something obvious I've missed?
cheers
Chris
Hi Ray
The attached form (in a modal, if that's relevant) appears to work, in that after submitting the form, you are redirected to the correct page. However, no emails are sent!
Is there something obvious I've missed?
cheers
Chris
I don't see an obvious problem. I'd probably debug it by removing the redirect from the email and then adding code below the email code like:
if (isset($_POST["Submit"]) || isset($_POST["Submit_x"])) {
var_dump($Email);
die();
}
That will give you more information about the outgoing email and maybe you can spot the issue. Maybe the TO or FROM isn't set correctly, or maybe there is an error in the body or something that is causing it to fail.
Thanks Ray - I've done that and get a load of code, with the following in bold.
Could not instantiate mail function.
" ["BodyFile"]=> string(38) "../../webassist/email/Rotary/cttee.php" ["BodyFormat"]=> string(0) "" ["BodyText"]=> string(0) "" ["BurstSize"]=> string(3) "200" ["BurstTime"]=> string(1) "1" ["CC"]=> array(0) { } ["CharSet"]=> string(5) "UTF-8" ["Debugoutput"]=> string(4) "html" ["EmailsSent"]=> int(1) ["Error"]=> bool(true) ["ErrorMessage"]=> string(60) "Could not instantiate mail function.
I've looked up the error message and all the email addresses are valid.
Chris
Can you send me the full dump so I can see what else might be there that could cause the error?
Thanks Ray
(Note I've tried altering the page since sending you the files)
See pm.
Cheers
Chris
Try deleting these lines:
$Email->ReplyTo = "".($rsMemClub->getColumnVal("MemEmail")) ."";
$Email->ReturnPath = "".($rsMemClub->getColumnVal("MemEmail")) ."";
$Email->BurstSize = "200";
$Email->BurstTime = "1";
$Email->WaitTime = "1";
Return path should never be set to the same email address as the TO... return path is the email address to send to when the email fails, so you can't send a fail message to the address that failed.
Reply to also makes no sense as the TO address. The other lines are not needed for a single email.
After making those changes try again and let me know.
The next step would be to remove the BCC. Then maybe hard code the TO and FROM to see if it works when it isn't coming from the database. You will have to narrow down what is causing the issue so it can be solved.
Thanks Ray - all now working properly.
Cheers
Chris
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.