Email Subject = Form Name

TeLLe

New Member
Hi There,
Can anyone help me... I have a bunch of forms on my site that run off of 1 php script which is working fine i just have a problem differentiating between the forms when they come through email so i would like the Subject to be the from name...
Below is the code....
How can i make this say <Website Enquiry 'form name here'>

$MailSubject = "Website Enquiry ";

Thanks so much
 

TeLLe

New Member
I am using a php mailer...
The mails are coming through fine but they dont have headings so i dont how which page they come from that is why i figured if i can just make the Form Name appear in the subject I will know which page it comes from....

So I want something like ....

// Set the subject
$mailer->Subject = 'This is a test <form_name>';

or something like that... just so that i can identify the page it is coming from....
 
Top