ZenphotoCMS Forum
Off Topic mailer problem - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Off Topic mailer problem (/thread-2316.html)



Off Topic mailer problem - jimhawkins - 2008-03-03

Hello everyone:

I've got a mailer problem. Although I'm pretty sure it doesn't have anything to do with zenphoto (I love it!), maybe some of you guys got a clue, why my formmailer won't work (yes, I'm a total php newb).

`




Off Topic mailer problem - sbillard - 2008-03-03

You have to retrieve all the field for the mail from the $_POST, so you will have to give a name to your textarea and retrieve it for the $mail_body.

`




Off Topic mailer problem - jimhawkins - 2008-03-03

Hi there, thanks it works great.

One tiny little thing (and i don't really need it, but): If I use `

mail (...,...,$_POST('body')...);

`

Is there an option to still get the Email, Date and Name in the body of the message? With other words, can i bind other variables with the "." to the message body?

Thanks again for the great help. Finally I got my own formmailer.

(Next stop Newsletter ;-)).




Off Topic mailer problem - sbillard - 2008-03-03

I edited the code above to put the body in your $mail_body.




Off Topic mailer problem - jimhawkins - 2008-03-03

Works beautifully. I added another $name = $_POST['name']; and now everything gots displayed. Thank you very much. Just got that rating problem left, but that's a subject for another thread.

Thanks again and good night.