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
Ruchita Sirondiya
NA
50
5.6k
Emails not sending from smtp.zoho.com in c#
Apr 4 2019 6:19 AM
I am using ZOHO mail server for sending mails through my application. But it gives following error -
"TheSMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required."
my code -
MailMessage msg =
new
MailMessage();
msg.To.Add(
new
MailAddress(
"
[email protected]
"
));
msg.Bcc.Add(
new
MailAddress(
"
[email protected]
"
));
msg.From =
new
MailAddress(
"
[email protected]
"
,
"Test mail"
);
msg.Subject =
"send mail"
;
msg.Body =
"test MAIL...."
;
msg.IsBodyHtml =
true
;
SmtpClient client =
new
SmtpClient();
client.Host =
"smtp.zoho.com"
;
client.Credentials =
new
System.Net.NetworkCredential(
"
[email protected]
"
,
"XXX"
);
client.Port = 587;
client.EnableSsl =
true
;
client.Send(msg);
please give a solution ..
Reply
Answers (
4
)
how to set focus on particular panel ?
continous deployment using Azure devops release pipeline