views:

216

answers:

2

Hai, I have developed small asp.net application.i send mail through this application.so my web config file have following coding

    <network host="smtp.gmail.com" port="587" userName="[email protected]" password="*****"  />
  </smtp>
</mailSettings>

we have google apps.we don't have mail server. i try to sent mail,i getting time out error. regards mariyappan.J

A: 

This could be:

  • Firewall related
  • IIS User account related
  • Have you tried smtp.googlemail.com Reading this it doesn't matter

I realise that's a bit of a generic answer but your config settings are correct so logically it can only be related to the network, or the user.

Chris S
+1  A: 

If you are using System.Net.Mail.MailMessage try this:

yourMailMessage.EnableSsl = true;
naspinski