Forum Moderators: coopster

Message Too Old, No Replies

Help with Jack's Formmail

         

Gigaemon

8:17 pm on May 20, 2009 (gmt 0)

10+ Year Member



Hi,
I spend a couple of hours trying to find the resolution for my prob... cant find any.
The thing is, i installed the .php file on my server and did the html form and everything is working fine.
I just want to customize the generated mail, cause what i receive is something like:

Name:(Data)
Email:(Data)
Phone:(Data)
...

Is there a way to, in the generated email, include an image or even put some words on it? Just to make the message i receive a little more professional.

Any help will be appreciated...

enigma1

1:16 pm on May 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Gigaemon
welcome to the webmasterworld.com forums.

For your question, check the mail function in php.net
[php.net...]

example #4 shows how to do it with html. The 3rd argument of the mail function takes the message body. So from wherever you retrieve the name, email, phone etc details you can setup up with the html like:

$message_body ='';
$message_body .='Name: ' . $name;
$message_body .='E-Mail: ' . $email;
etc..