Loading php in the background

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

djepayne
Forum Newbie
Posts: 7
Joined: Mon Oct 27, 2008 9:45 pm
Location: Portland, OR

Re: Loading php in the background

Post by djepayne »

Everah,
It's taking 19 seconds to do this:

Code: Select all

require_once "swift/lib/Swift.php";
require_once "swift/lib/Swift/Connection/SMTP.php";
 
Then another 14 seconds to do this:

Code: Select all

$swift->batchSend($message, $recipients, "webmaster@pmpa.net");
My web host is 1and1.com running on a Linux server.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: Loading php in the background

Post by RobertGonzalez »

Have you tried using sendmail instead of SMTP?
Post Reply