Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

serious delay, lag, speed issue.. can someone explain..

the mail() function

Moderators: macek, egami, gesf

serious delay, lag, speed issue.. can someone explain..

Postby robinhood845 » Wed Jun 29, 2011 12:18 pm

this is the part of my code that uses the mail() function. some reason it takes a whole day for anything to actually arrive at the mail box. i can email the address prefect from outlook, or whatever. is this a server issue, or is mail that slow? or is it something in my code...

Code: Select all
$to      = 'someaddress@hotmail.com';
         $subject = $_POST['subject'];
         $message = $_POST['message'];
         $headers = 'From: ' . $_POST['email'] . "\r\n" .
            'Reply-To: ' . $_POST['email'] . "\r\n" .
            'X-Mailer: PHP/' . phpversion();

         if (mail($to, $subject, $message, $headers))
            $success = "Email succesfully sent!";
         else
            $error = "Error! Email failed to send!";
robinhood845
New php-forum User
New php-forum User
 
Posts: 1
Joined: Wed Jun 29, 2011 12:14 pm

Re: serious delay, lag, speed issue.. can someone explain..

Postby egami » Tue Jul 05, 2011 7:12 am

do you have accesss to the log files in /var/log/mail or /var/log/http/error.log ?
User avatar
egami
php-forum GURU
php-forum GURU
 
Posts: 2197
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT


Return to PHP coding => Mail

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.