Topic: Mass Mail

Hi, im having problems with the Broadcast Email plugin....
when i try to send a mass mail, there is an error:

Warning: ob_start(): output handler 'ob_gzhandler' cannot be used twice in /home/mvd/public_html/foro/include/functions.php on line 921

An error was encountered
Error: Unable to send e-mail. Please contact the forum administrator with the following error message reported by the SMTP server: "501 <6ummy >: "@" or "." expected after "6ummy" ".

Regards,
digitalice

MVD Shuffle Forums Webmaster !!!
www.mvdshuffle.com uses PUNBB!!!

Re: Mass Mail

I guess it can't send to an invalid email adress wink You should use the check_valid_email() function in include/email.php.

Re: Mass Mail

how do i use the check_valid_email() function ??

regards...

MVD Shuffle Forums Webmaster !!!
www.mvdshuffle.com uses PUNBB!!!

Re: Mass Mail

Follow these easy instructions:
----
? At the top of AP_Broadcast_Email, right after this code:

define('PUN_PLUGIN_LOADED', 1);

? Add this:

include PUN_ROOT."include/email.php";

? Then find this code:

while($row = $db->fetch_assoc($result))
       {
           $addresses[$row['username']] = $row['email'];
       }

? Replace it with this code:

       while($row = $db->fetch_assoc($result))
       {
        if(!is_valid_email($row['email']))
            continue;
           $addresses[$row['username']] = $row['email'];
       }

----
I think that should do the trick smile

Re: Mass Mail

No, it does not work... sad
Same error:

Warning: ob_start(): output handler 'ob_gzhandler' cannot be used twice in /home/mvd/public_html/foro/include/functions.php on line 921

An error was encountered
Error: Unable to send e-mail. Please contact the forum administrator with the following error message reported by the SMTP server: "501 <6ummy >: "@" or "." expected after "6ummy" ".

MVD Shuffle Forums Webmaster !!!
www.mvdshuffle.com uses PUNBB!!!

Re: Mass Mail

Odd... make sure your SMTP settings are correct.

Re: Mass Mail

Bekko: If the email is in the database, we can assume it's valid already
Try this though
FIND

$mail_to        = $recipientname." <".$recipientemail.">";

REPLACE WITH

$mail_to        = $recipientemail;

Re: Mass Mail

Smartys wrote:

Bekko: If the email is in the database, we can assume it's valid already

Myeah, but what if he just converted from another software that doesn't check it? You never know.

Re: Mass Mail

thanks Smartys .... it worked...
seems that the problem were on the <> ....

regards

MVD Shuffle Forums Webmaster !!!
www.mvdshuffle.com uses PUNBB!!!

Re: Mass Mail

elbekko wrote:
Smartys wrote:

Bekko: If the email is in the database, we can assume it's valid already

Myeah, but what if he just converted from another software that doesn't check it? You never know.

Notice that misc.php doesn't check if an email address is valid. If it's in the database, it should be properly checked. If it wasn't in the example you gave, the convertor messed up tongue

Re: Mass Mail

thanks Smartys, that fixed my issues too.

~James
FluxBB - Less is more

Re: Mass Mail

Sweet smile