100 Web Space
http://forum.100webspace.com/

Problem with mail()
http://forum.100webspace.com/viewtopic.php?f=5&t=6688
Page 1 of 1

Author:  Lobe [ Sun May 13, 2007 8:04 pm ]
Post subject:  Problem with mail()

Hello!
For some reason the below script will not mail! Can someone tell me why!
Thanks in advance, Tom.

Code:
<?php

function send_mail($fromname,$frommail,$to,$subject,$body,$priority)
  {
    $fullmail = "\"$fromname\"<$frommail>";
    $headers  = "From: $fullmail\n";
    $headers .= "X-Sender: $fullmail\n";
    $headers .= "X-Mailer: PHP\n";
    $headers .= "X-Priority: $priority\n";
    $headers .= "Return-path: $fullmail\n";

    mail($to,$subject,$body,$headers);
  }

function send_html_mail($fromname,$frommail,$to,$subject,$body,$priority)
  {
    $fullmail = "\"$fromname\"<$frommail>";
    $headers  = 'MIME-Version: 1.0' . "\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\n";
    $headers .= "From: $fullmail\n";
    $headers .= "X-Sender: $fullmail\n";
    $headers .= "X-Mailer: PHP\n";
    $headers .= "X-Priority: $priority\n";
    $headers .= "Return-path: $fullmail\n";

    mail($to,$subject,$body,$headers);
  }

?>

Author:  scragar [ Sat Jul 07, 2007 3:55 am ]
Post subject: 

only people with paid acount or who paid for email addresses at their site can use the mail() function without it failing.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/