Jump to content

mail() function won't send out any mail


jrodd32

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='[email protected],[email protected],[email protected]';
        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]
Link to comment
https://forums.phpfreaks.com/topic/24322-mail-function-wont-send-out-any-mail/
Share on other sites

Archived

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

×
×
  • 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.