Jump to content

edwardw

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

edwardw's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The only mentions of mail are sendmail_from no value no value sendmail_path /usr/sbin/sendmail -t /usr/sbin/sendmail -t I dont think the code worked under php5, although im not sure if i coppied the php.ini off the old server ( just tried this on php4 and it doesnt work either) Im thinking if i cant get this to work, either installing php5, or i should be able to change the code from mail() to PEAR mail shouldnt i?
  2. This is where i had a slight issue... Im running CentOS5... for what ever reason it will not run on php5, so i had to install it manually from some RPMs i found on the internet.. Could this be the reason?
  3. // EMAILING FUNCTION function eMail($recipient, $subject, $message) { $headers = "MIME-Version: 1.0\r\n"; $headers .= "From: NAME <address>\r\n"; $headers .= "Reply-To: NAME <address>\r\n"; $headers .= "X-Priority: 1\r\n"; $headers .= "X-MSMail-Priority: High\r\n"; $headers .= "X-Mailer: PHP / " . phpversion() . "\r\n"; $From = "address"; //echo "$recipient<br> $subject<br> $message<br>$headers"; exit; **** if (mail($recipient, $subject, $message, $headers)) { $a = 1; /* mail('address', $subject, $message, $headers); mail('address', $subject, $message, $headers); mail('address', $subject, $message, $headers); mail('address', $subject, $message, $headers); */ } } /* The line with **** is 1446. What i cant understand is, the code works fine on the current live machine. Cheers
  4. Hi all I have recently moved a php application my company uses to a different server (it worked fine on the previous one) I have configured the new linux machine from scratch.. Eventually getting PostgreSQL to work, the only problem i now have is the following Fatal error: Call to undefined function: mail() in /usr/local/apache/htdocs/classes/***.inc on line 1446 Seems to me like for what ever reason the mail/sendmail function has not come installed with PHP... Anyone have any ideas?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.