homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

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

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

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)

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)

Ah k sweet as, now i feel stupid.

Thanx for the speedy reply


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

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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved