Member
Member
jimhawkins   03-03-2008, 01:03
#1

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).

`

Member
Member
sbillard   03-03-2008, 01:24
#2

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.

`

Member
Member
jimhawkins   03-03-2008, 01:42
#3

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 ;-)).

Member
Member
sbillard   03-03-2008, 02:06
#4

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

Member
Member
jimhawkins   03-03-2008, 03:51
#5

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.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.