php mailer?where can i get one

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

Post Reply
ejiro2x
Forum Newbie
Posts: 22
Joined: Thu Apr 19, 2007 7:48 am

php mailer?where can i get one

Post 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
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

http://www.swiftmailer.org - the author is a moderator and regular here and the product is fantastic
ejiro2x
Forum Newbie
Posts: 22
Joined: Thu Apr 19, 2007 7:48 am

ill try

Post by ejiro2x »

what makes it different from php?ill check though
thiscatis
Forum Contributor
Posts: 434
Joined: Thu Jul 20, 2006 11:00 am

Re: ill try

Post by thiscatis »

ejiro2x wrote:what makes it different from php?ill check though
err, what?
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post 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:
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
bob_the _builder
Forum Contributor
Posts: 131
Joined: Sat Aug 28, 2004 12:25 am

Post 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
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

And your question is?

P.S Use Swift Mailer instead :wink:
User avatar
William
Forum Contributor
Posts: 332
Joined: Sat Oct 25, 2003 4:03 am
Location: New York City

Post 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.
Post Reply