Jump to content

Archived

This topic is now archived and is closed to further replies.

jrodd32

mail() function won't send out any mail

Recommended Posts

I am not recieving any errors yet I am also not recieving any email.  I checked the php.ini file and my sendmail binary is in the right spot so I am lost...

[code]
<?php
while($row = mysql_fetch_assoc($officialslist))
  {
  if(($ID==$row[id])&&($SSWEB==$row[SSWEB]))
  {
    if(($sport == 'BA')||($sport == 'FB')||($sport == 'TR')||($sport == 'WR'))
      {
        $to='user1@webmail.khsaa.org,user2@webmail.khsaa.org,user3@webmail.khsaa.org';
        foreach($source as $concern)
          $subject=$concern;
        $message="<br>
$explaination
        <br>
        $row[id];
        <br>
        $row[lname].$row[suffix].', '.$row[fname];
        <br>
        $row[homephone];
        <br>
        $row[workphone];
        <br>
        $row[email]";
        $headers='X-Mailer: PHP/' .phpversion();
        mail($to, $subject, $message, $headers);
      }
?>[/code]

Share this post


Link to post
Share on other sites
Need some information from you.

The server is Windows / Linux / ???

What mail command is php.ini pointing to (default is sendmail I believe) ?

Share this post


Link to post
Share on other sites

×

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.