Mass-Emailer Not working, Help

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
camarosource
Forum Commoner
Posts: 77
Joined: Sat Aug 03, 2002 10:43 pm

Mass-Emailer Not working, Help

Post by camarosource »

Mass-Emailer Not working, Help

I downloaded a Mass Emailer. I tried it (no configuration needed) and it says it sent but I never receive any emails so obviously it's not sending. HELP

Code: http://www.camarosource.ca/php/mass_emailer/mailer.phps
Demo : http://www.camarosource.ca/php/mass_emailer/mailer.php
Email address's (mine) : http://www.camarosource.ca/php/mass_ema ... resses.txt
Message : http://www.camarosource.ca/php/mass_emailer/message.txt

Please help. Thanks.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

Well, http://www.php.net/mail says that it will return the result of the mailing.... However, the spam code doesn't use that return code... It simply supresses eventual errors (@ operator)...

Anyway, we don't like spammers...
camarosource
Forum Commoner
Posts: 77
Joined: Sat Aug 03, 2002 10:43 pm

Post by camarosource »

timvw wrote:Well, http://www.php.net/mail says that it will return the result of the mailing.... However, the spam code doesn't use that return code... It simply supresses eventual errors (@ operator)...

Anyway, we don't like spammers...
I am not a spammer. This is to mass-email those with certain critiques those on our Mailing list for Calendars.

Anyways. I'm not understanding what you just said. :)
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

If you read the code it's got the @ in it

Code: Select all

@mail("",$subject,$send_msg,$headers2);
So you won't get any errors like timvw said.

By the way, mail() is a little flaky with SPAM/Junk detection systems (i.e. it gets filtered as spam). You need to have a good play around with the headers it sends and inpect the logs from the Mail filter to see why it was blocked.

You might try something like PHPMailer which is pretty much THE standard mailer for PHP ;)
Post Reply