Email not working
I have a page setup where emails are not going out. I turned on debugging using, "Data, command & connections" and I don't even see the debugging stuff.
I have a page setup where emails are not going out. I turned on debugging using, "Data, command & connections" and I don't even see the debugging stuff.
You have this code on the top of the page:
<?php
if($_SERVER["REQUEST_METHOD"] == "POST") {
foreach($_POST as $key => $val) {
if(is_array($_POST[$key])) $_POST[$key] = implode(", ", $_POST[$key]);
}
}
?>
Then your TO is set to:
$Email->addTo("".((isset($_POST["toAddresses"]))?implode(",",$_POST["toAddresses"]):"") ."");
This runs implode on the posted to addresses twice, which clears them out. The solution is to delete the hand code on the top of the page because it shouldn't be needed.
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.