PHPMailer limite

Hay alguna forma de enviar mas de 50 emails por dia? Yo pense que usando PHPMailer via SMTP se podía enviar mas de 50 pero aun asi me suma el contador de emails por día.

If you use PHPMailer (not the mail() function), no, nothing will be added

But i used PHPMailer couple of times and my “email used” number increased

Which SMTP server are you connecting to?

I used smtp.gmail.com

That shouldn’t be happening…

What can i do? is still happening

Show me your configuration

$mail = new PHPMailer();
$mail->Host="smtp.gmail.com";
$mail->SMTPAuth=true;
$mail->Username="myusername@gmail.com";
$mail->Password="mypassword";
$mail->SMTPSecure="ssl";
$mail->Port=465;
$mail->AddAddress($email,$nombre);
$mail->setFrom("myusername@gmail.com","NAME");
$mail->CharSet="UTF-8";        	
$mail->Subject="Por favor verificar email";
$mail->isHTML(true);
$mail->Body = "body text";

if($mail->send())
{
    echo "sent";
}
else
{
    echo "not sent";
}

Don’t worry about the number of emails increasing, this may be a bug but won’t affect you

1 Like

Add $mail->isSMTP(); after $mail = new PHPMailer()

1 Like