How not to send php contact form mail from "Root User"?

soha

New member
Hi,

I am a newbie to php. Thanks to online tutorials that I have successfully created a php html contact form for my website. The form is doing well accept to 2 things.

I receive all emails from "Root User <here comes my smtp remote email address>", I wish they came from the sender's name provided in the name field of the form in place of "Root User".

The subject of all emails remains same "Contact Form" as set by me in the form. I wish I could create a subject field which was filled by the visitor and hence I could get emails with unique subject each time.

I'm using gmail to receive these emails. Gmail bundles all the new emails from same destination (Root User) and subject (Contact Form) in one which creates confusions.

Can I get help on this? Thank you very much.

Soha
 
Back
Top