php mailing

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
a2once
Forum Newbie
Posts: 4
Joined: Sun Jun 29, 2008 1:07 pm

php mailing

Post by a2once »

Hello,

Can anyone help me how to reconstruct this script, as you can see, it's only aa email notification for the signers, i want to add also it will receive a copy for the owner of the site.

here is the code:

Code: Select all

 
 print ("<PRE>"); 
 if (mail($name." <".$email.">", $mailsubject, $msg, "From: ".$fromname." <".$Fromaddress.">\nContent-Type: text/html; charset=utf-8")) 
 { 
        print ("Mail Sent To $email<br><br>"); 
        print ($msg); 
 } 
 else 
 { 
        print ("Mail Dead"); 
 } 
 print ("</PRE>");
 
sureshmaharana
Forum Commoner
Posts: 30
Joined: Thu Jul 03, 2008 4:20 am
Contact:

Re: php mailing

Post by sureshmaharana »

Call one more mail function inside your if condition, set your email address in mail function.
Post Reply