Forum Moderators: coopster
mailer->send();
if(!mailer->send())
{
echo"error":
}
so it sends the mail very fine but also echo error so how is that possible?
I mean its good that is sendin the mails but i still wana check if there is error in sendin any of the emails in the loop so i mark in the DB who didnt recieve so i resend it or somethig
thanks in advance
// No need to do this here if you are
// going to check it again anyway ...
//mailer->send();
if(!mailer->send()) {
echo "error"; //<-- you had a colon here, not a semicolon
}