• Due to security purpose gmail will block your account login through the SQL so you have allow the access for less secure login in gmail. I have tried and successfully sent a mail.:-)