TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kumar AU
1.1k
309
61.9k
we can't send an email using GMAIL account in godaddy
Dec 13 2015 12:07 PM
Hi Team,
I have been struggling since 1 week, I am not able to send an email from Godady to using my Gmail account, please find my code below:
My Code :-
MailMessage msg = new MailMessage();
//Add your email address to the recipients
msg.To.Add("
[email protected]
");
//Configure the address we are sending the mail from
MailAddress address = new MailAddress("
[email protected]
");
msg.From = address;
msg.Subject = "Enquiry ";
msg.Body = "Hello Testing ";
SmtpClient client = new SmtpClient();
client.Host = "relay-hosting.secureserver.net";
client.Port = 25;
//Send the msg
client.Send(msg);
//Display some feedback to the user to let them know it was sent
lblResult.Text = "Your message was sent!";
---------------------------------------------------------
Reply
Answers (
1
)
Json Decode and Encode
Embed Google map in ASP.Net without iframe