Page 1 of 1

Email using variables from script.

Posted: Wed Mar 24, 2004 3:34 pm
by smeg
Hi, I'm new to PHP but am learning.
My question is this, I have a script that checks a db and then displays the results on a web page, car showroom type of site, I want to add a 'e-mail me about this car' link but in the subject I want it to put the $reg and $model from the script.
I want it to use the viewrs e-mail app, i.e. Outlook/express.
Any ideas?
Thanks in advance.

Posted: Wed Mar 24, 2004 4:03 pm
by PrObLeM

Thanks but...

Posted: Thu Mar 25, 2004 1:52 am
by smeg
Thanks for the suggestin, I have tried mail(), it asks for my SMTP address, my aim is for it to use the page viewers e-mail app but to insert the address and insert the variables $reg and $model in the subject line.
Is this possible?