sarah
04-04-2003, 04:15 PM
Hi all, I followed the above method to send emails in php - thanx Habib n Firepages (see link below).
http://www.codingforums.com/showthread.php?s=&threadid=16501&perpage=15&pagenumber=1
I tried posting my query but no one replied because the thread is closed. So I have started a new thread (apologies to Moderators - this is not an attempt to cross post).
I now want to take this one step further. I send an email using the following code:
<? php
if ($products=="yes") {
$to="products@sarah.mydomain.com";
$subject="Product Info you required";
$message.="Hi, blah blah blah.....";
}
if($geninfo=="yes") {
$to="enquiries@sarah.mydomain.com";
$subject="General Enquiry";
$message.="Hi, blah blah blah.....";
}
mail($to, $subject, $message);
At the moment depending on which variable is passed I get the relevant email. I now want to send myself one type of email (i.e using above code), and send the sender a confirmation email - this would have a different subject, body text, etc. (possibly even a HTML email).
What is the best way of doing this?
Sarah
http://www.codingforums.com/showthread.php?s=&threadid=16501&perpage=15&pagenumber=1
I tried posting my query but no one replied because the thread is closed. So I have started a new thread (apologies to Moderators - this is not an attempt to cross post).
I now want to take this one step further. I send an email using the following code:
<? php
if ($products=="yes") {
$to="products@sarah.mydomain.com";
$subject="Product Info you required";
$message.="Hi, blah blah blah.....";
}
if($geninfo=="yes") {
$to="enquiries@sarah.mydomain.com";
$subject="General Enquiry";
$message.="Hi, blah blah blah.....";
}
mail($to, $subject, $message);
At the moment depending on which variable is passed I get the relevant email. I now want to send myself one type of email (i.e using above code), and send the sender a confirmation email - this would have a different subject, body text, etc. (possibly even a HTML email).
What is the best way of doing this?
Sarah