Page 1 of 1

php mailer?where can i get one

Posted: Thu Apr 19, 2007 8:42 am
by ejiro2x
i have one to send emails anonymously(plain text only) but i cant send html and the messages dont go to inbox,where can i get a new php mailer script

Posted: Thu Apr 19, 2007 9:29 am
by Luke
http://www.swiftmailer.org - the author is a moderator and regular here and the product is fantastic

ill try

Posted: Fri Apr 20, 2007 11:40 am
by ejiro2x
what makes it different from php?ill check though

Re: ill try

Posted: Fri Apr 20, 2007 11:47 am
by thiscatis
ejiro2x wrote:what makes it different from php?ill check though
err, what?

Posted: Fri Apr 20, 2007 12:03 pm
by Oren
He probably meant phpMailer. Hmm... where is the benchmark page that I've seen on Swift's home few months ago?

What makes it better? Well you need to see this page which I can't find, and... you'll benefit from a full support from the author here on the forums or even by PM/email (if he wouldn't mind). But posting on the forums is better since everybody will be able to read and learn from it :wink:

Posted: Fri Apr 20, 2007 3:52 pm
by Chris Corbyn
It's not the same thing anymore. PhpMailer is a class. Just a class. A very big class. A very big, ugly class. Swift is a library with loads of little classes. It's more workable, extendable, in active development, works with TLS and ermm, I'm still here offering support and adding features as they are requested :)

I have no issues with people choosing to use PHPMailer if they prefer it but the feedback I get has never been in favour of PHPMailer.
Oren wrote:mm... where is the benchmark page that I've seen on Swift's home few months ago?
It's no longer correct since v3 is not in any way like v2 (except for the connection choices and some of the plugins). The page is still at http://www.swiftmailer.org/phpmailer though.

Posted: Sat Apr 21, 2007 6:54 pm
by bob_the _builder
Hi,

I use a basic php script to send out bulk mail:

Code: Select all

$id = explode(',', $id);
	foreach ($id as $id) { 
	$x = 1;
    $delay = 50;
    $sql = mysql_query('SELECT name, email FROM table WHERE id = '.$id.'');
	while ($row = mysql_fetch_array($sql)) {
   	foreach($row as $key=>$value){
	$$key = $value;
	}
    $send = @mail($email, $subject, $message, "From:Some Company<admin@domain.com>");
    $x++;
    if($x == $delay) {
    sleep(3);
    $x = 0;
    }
	}
    }
	if($send){
	echo '<br /><br /><center><b>Your message(s) has been mailed out successfully.</b></center>';
	}else{
	echo '<br /><br /><center><b>Your message could not be mailed out at this time. Please try again later.</b></center>';
	}
Have also put a delay in there after every 50 emails sent to help stop server timouts.

hth

Posted: Sun Apr 22, 2007 4:21 am
by Oren
And your question is?

P.S Use Swift Mailer instead :wink:

Posted: Sun Apr 22, 2007 12:36 pm
by William
Oren wrote:And your question is?

P.S Use Swift Mailer instead :wink:
I don't think he has a question, he was saying he uses that script, if anyone else wants to use it. I don't think he understood the question on topic though.