Yes, Thank you for your prompt reply.. I already have set these as in my Gmail account.... Allow Less Secure Apps - is ON 2-step verification - DISABLED I am passing all parameters to sendmail() SENDMAIL( cFrom, cServer, cTo, cSubject, cMessage, aAttach, cSender, cUser, cPassword, ...