My code for sending email through Gmail\'s smtp:
SmtpClient client = new SmtpClient(\"smtp.gmail.com\", 587); client.EnableSsl = true; client.UseDefaultCrede
Like said before your username should contain "@googlemail.com". In my code (java) I'm using port 465 to sent mails through google mail.