Smtp Config in asp.Net
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="username@domainname.com" password="*****"  /&g开发者_开发百科t;
  </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
If you are using System.Net.Mail.MailMessage try this:
yourMailMessage.EnableSsl = true;
This could be:
- Firewall related
- IIS User account related
- Have you triedReading this it doesn't matter- smtp.googlemail.com
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.
 
         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论