|
-
Apr 9th, 2008, 10:30 AM
#1
Thread Starter
Frenzied Member
php, mail, cc not really working
Hi,
The following code run without errors. I get the mail ,and also it show the mail was cc'ed to who it should.
but the mail never arrive at the cc'ed address..tired of this one now!
Code:
function send_site_message ($name, $country, $email, $subject, $message, $selfcc) {
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
if ($selfcc)
$headers .= "cc:".$name."<".$email.">";
$message = "
<html>
<head> ... and rest of html...
</html>
";
$success = mail(SMTP_USER, $subject, $message, $headers, "-f".$email);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|