I'm trying to set up a simple standalone page on my site to test the Dagon Design Secure PHP Form Mailer. Ultimately, the goal is to help a local non-profit publication solicit photos from their aging readership. At the moment, I get the "Error sending message!" error message when I try the form. In the comments for the form, the scripter says:
I've created this tiny file, here, but nothing happens when I open it in my browser (by typing the address directly into the address bar). I've obviously replaced the mail address in the little script with my own e-mail address. I'm obviously still learning about this stuff, and probably will need to learn a lot more before I'm done. But for right now: is there something I should configure to make this little mail test script work? asked 30 Aug '12, 15:23 mattshepherd |
E-mails using the PHP send function need the 'From:' address properly filled out. You may submit a support ticket if you would like us to check if this is why it is failing, we also have access to other logs we could investigate. answered 30 Aug '12, 17:47 johns I've tried looking this up, and the following: <?php $to = 'matt@shep.ca'; $subject = 'Testing'; $message = 'This is a test'; $headers = 'From: matt@shep.ca' . "rn" . 'Reply-To: matt@shep.ca' . "rn" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> I'll submit a support ticket, but frankly, I feel guilty about it. You guys have better things to do than prop up a numpty.
(30 Aug '12, 18:54)
mattshepherd
|