Welcome to WebmasterWorld Guest from 54.161.228.30

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Email via php - 2 emails, 2 different location, 2 looks - how to?

   
4:58 pm on May 19, 2006 (gmt 0)

5+ Year Member



I know how to send emails through forms, but i was curious can i send 2 different emails to 2 different location that look totally different?

I know you use

mail( $to, "subject here", $message, $mailheaders);
to send one email, but how do u send 2?

Example user hits the submit button and the user that filled out the form gets a email that looks a certain way, then the website owner gets an email that looks totally differnt to the users.

Is this possible at all?
Im gonna feel terribly stupid if its a simple answer... :(

5:03 pm on May 19, 2006 (gmt 0)

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 5+ Year Member



just use the mail function twice:
mail( "user@moose.com", "subject here", "You are cool");
mail( "admin@mooseVSlion.com", "subject here", "You are cool, but only on sundays");
5:11 pm on May 19, 2006 (gmt 0)

5+ Year Member



Ah k sweet as, now i feel stupid.

Thanx for the speedy reply

3:18 pm on May 21, 2006 (gmt 0)

5+ Year Member



Check out phpmailer class; very good. Most mail() function calls will be considered spam.