Forums
This topic is locked
simple stuff
Posted 25 Mar 2003 20:35:50
1
has voted
25 Mar 2003 20:35:50 Dave Blohm posted:
i need to know how to use mail() twice on one page with a different combination of the variables I'm loading I also need to know how to do the equivilant of a Response.Redirect in PHP
Thanks tons!
Doc
Rangewalk Digital Studios
Replies
Replied 25 Mar 2003 21:30:24
25 Mar 2003 21:30:24 Brent Colflesh replied:
Dear Doc,
1. Just make two separate instances of the mail() command & the appropriate variables.
2. header("Refresh: 0; URL=/page1.php"
Regards,
Brent
1. Just make two separate instances of the mail() command & the appropriate variables.
2. header("Refresh: 0; URL=/page1.php"
Regards,
Brent
Replied 26 Mar 2003 14:23:53
26 Mar 2003 14:23:53 Dave Blohm replied:
Thanks for the reply. I tried number one prior to posting the initial request but got a parse error when i ran it.
Doc
Rangewalk Digital Studios
Doc
Rangewalk Digital Studios
Replied 26 Mar 2003 18:29:12
26 Mar 2003 18:29:12 Michael O'Neill replied:
Do you want to send 1 of 2 different messages depending on the variables, or do you want to send 2 messages one after the other??
Mike.
Mike.
Replied 28 Mar 2003 02:45:22
28 Mar 2003 02:45:22 Dave Blohm replied:
two messages one after the other...its a registraion thing...the business gets an email notifying them of a new registration and the person who registers gets a confirmation email...
thanks again
Doc
Rangewalk Digital Studios
thanks again
Doc
Rangewalk Digital Studios
Replied 29 Mar 2003 09:31:14
29 Mar 2003 09:31:14 Michael O'Neill replied:
If you haven't already sorted the prob, this code works grand.
Mike.
<?php
$email1 = " ";
$email2 = " ";
//mail password 1
$toaddress = $email1;
$subject = "Thank You";
$mailcontent = "Thank you for registering with yoursite.com\n"
."Customer Name: Cust1\n"
."Customer Email: email1\n"
."Customer Username: user1\n"
."Customer Password: Your password is mailpass1\n"
."You Can change your password after you login for the first time\n
by clicking on the Edit My Details link on our homepage\n"
."\nYou can now LOGIN and purchase from our site\n"
."Help on using the site can be obtained at www.yoursite.com/faq.php";
$fromaddress = " ";
$additional_headers = "From: ";
mail($toaddress, $subject, $mailcontent,$additional_headers);
//mail password 2
$toaddress = $email2;
$subject = "Thank You";
$mailcontent = "Thank you for registering with yoursite.com\n"
."Customer Name: Cust2\n"
."Customer Email: email2\n"
."Customer Username: user2\n"
."Customer Password: Your password is mailpass2\n"
."You Can change your password after you login for the first time \n
by clicking on the Edit My Details link on our homepage\n"
."\nYou can now LOGIN and purchase from our site\n"
."Help on using the site can be obtained at www.yoursite.com/faq.php";
$fromaddress = " ";
$additional_headers = "From: ";
mail($toaddress, $subject, $mailcontent,$additional_headers);
?>
Mike.
<?php
$email1 = " ";
$email2 = " ";
//mail password 1
$toaddress = $email1;
$subject = "Thank You";
$mailcontent = "Thank you for registering with yoursite.com\n"
."Customer Name: Cust1\n"
."Customer Email: email1\n"
."Customer Username: user1\n"
."Customer Password: Your password is mailpass1\n"
."You Can change your password after you login for the first time\n
by clicking on the Edit My Details link on our homepage\n"
."\nYou can now LOGIN and purchase from our site\n"
."Help on using the site can be obtained at www.yoursite.com/faq.php";
$fromaddress = " ";
$additional_headers = "From: ";
mail($toaddress, $subject, $mailcontent,$additional_headers);
//mail password 2
$toaddress = $email2;
$subject = "Thank You";
$mailcontent = "Thank you for registering with yoursite.com\n"
."Customer Name: Cust2\n"
."Customer Email: email2\n"
."Customer Username: user2\n"
."Customer Password: Your password is mailpass2\n"
."You Can change your password after you login for the first time \n
by clicking on the Edit My Details link on our homepage\n"
."\nYou can now LOGIN and purchase from our site\n"
."Help on using the site can be obtained at www.yoursite.com/faq.php";
$fromaddress = " ";
$additional_headers = "From: ";
mail($toaddress, $subject, $mailcontent,$additional_headers);
?>
Replied 16 Apr 2003 02:23:52
16 Apr 2003 02:23:52 Dave Blohm replied:
sorry...been on holiday...this worked like a charm...thanks tons
Doc
Rangewalk Digital Studios
Doc
Rangewalk Digital Studios