Reputation: 0 Apprentice
- New Members
- Active Posts:
- 2 (0 per day)
- 19-March 12
- Profile Views:
- Last Active:
- Sep 10 2012 02:58 AM
- Dream Kudos:
Posts I've Made
Posted 19 Mar 2012i have used sendserver:smtp.gmail.com serverport:2525 from:mymail id to:frenmail id uname:my mail id pasword: mailid password
I am getting an error mail sending failed.Please help me this code is very useful in my project.
Like Guest_Ed mentioned
sendserver = smtp.gmail.com // sets the server you're sending from to gmail
serverPort = 587 // the port used for gmail
and then you must set Enablessl to true, to activate SecureSocketlayer(SSL)
i.e. if you just want to send to from gmail server you can use:
client.Host = "smtp.gmail.com";
client.Port = 587;
client.EnableSsl = true;
or just type in:
client.EnableSsl = true; // in your button1, before you send the msg via client.Send(message);
Posted 19 Mar 2012I had to create an account just for this:
I'm also just starting out with C#, creating some small programs and still learning the basics of programming.
You made it very easy to understand even for "newbie" like me :-)
Enjoyed reading this, tyvm!
- Member Title:
- New D.I.C Head
- Age Unknown
- Birthday Unknown
Joerabbit hasn't added any friends yet.