Email using variables from script.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
smeg
Forum Newbie
Posts: 2
Joined: Wed Mar 24, 2004 3:34 pm

Email using variables from script.

Post 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.
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

smeg
Forum Newbie
Posts: 2
Joined: Wed Mar 24, 2004 3:34 pm

Thanks but...

Post 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?
Post Reply