Page 1 of 1

php mailing

Posted: Mon Jul 14, 2008 10:21 pm
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>");
 

Re: php mailing

Posted: Tue Jul 15, 2008 1:18 am
by sureshmaharana
Call one more mail function inside your if condition, set your email address in mail function.