mohammed.yahya Posted June 22, 2008 Share Posted June 22, 2008 Hi all, I want to know that how much time will be taken in order to send a single email using php script in a Unix envirunment. Or lets say that : (sending 1000 email will take ..........seconds) Fill the blank thanks a lot Link to comment https://forums.phpfreaks.com/topic/111308-how-much-time-it-takes-to-send-a-single-email/ Share on other sites More sharing options...
trq Posted June 22, 2008 Share Posted June 22, 2008 Why don't you try it and see? Link to comment https://forums.phpfreaks.com/topic/111308-how-much-time-it-takes-to-send-a-single-email/#findComment-571366 Share on other sites More sharing options...
corbin Posted June 22, 2008 Share Posted June 22, 2008 With the mail() function? A long, long, long time (in PHP time). Link to comment https://forums.phpfreaks.com/topic/111308-how-much-time-it-takes-to-send-a-single-email/#findComment-571376 Share on other sites More sharing options...
mohammed.yahya Posted June 22, 2008 Author Share Posted June 22, 2008 Hi thorpe I do not know much in PHP. I do not know how to measure it using the code. I need an accurate number in milliseconds or second. I tried to send an email and I feeled how much it took...but I need to know exact and accurate number in milliseconds. thanks a lot Link to comment https://forums.phpfreaks.com/topic/111308-how-much-time-it-takes-to-send-a-single-email/#findComment-571427 Share on other sites More sharing options...
Epidemic Posted June 22, 2008 Share Posted June 22, 2008 It will vary depending on the load of the server. Link to comment https://forums.phpfreaks.com/topic/111308-how-much-time-it-takes-to-send-a-single-email/#findComment-571437 Share on other sites More sharing options...
LemonInflux Posted June 22, 2008 Share Posted June 22, 2008 <?php $time = microtime(); $to = '*YOUR EMAIL ADDRESS*'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); echo $time - microtime(); ?> That'll give you the time it takes to do 1 in microseconds. Then multiply it by 1000. Link to comment https://forums.phpfreaks.com/topic/111308-how-much-time-it-takes-to-send-a-single-email/#findComment-571446 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.