473,396 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

C# Email Problem

It's anybody know where to look and what to check?
My sent email work fine from several forms, but in one day, everything stop working and i got this error message:

The SMTP server requires a secure connection or the client was not authenticated. The server response was: regor.lunarpages.com ESMTP MailEnable Service, Version: 0-2.37- denied access at 10/02/07 18:53:41

Please, help......i can't figure out second day what's going on
Oct 3 '07 #1
2 1381
Shashi Sadasivan
1,435 Expert 1GB
It's anybody know where to look and what to check?
My sent email work fine from several forms, but in one day, everything stop working and i got this error message:

The SMTP server requires a secure connection or the client was not authenticated. The server response was: regor.lunarpages.com ESMTP MailEnable Service, Version: 0-2.37- denied access at 10/02/07 18:53:41

Please, help......i can't figure out second day what's going on
Hi,
seems the settings of the SMTP server was changed while you were away.
An authentication is required now
check this

cheers
Oct 3 '07 #2
I sow this already and i am sending email exactly how he explain in this article, this is my code sample:

public void SendEmail()
{
try
{
string fromEmail = Constants.EMAIL_SENDER_ADDRESS;
string toEmail = Constants.EMAIL_SENDER_ADDRESS;// Constants.ADMIN_EMAIL;
string subject = "Feedback: " + txtSubject.Text;
string body = "This Message was posted in Feedback Section of " body = body + "<br><br>";
body += txtMessage.Text;

MailMessage message = new MailMessage(fromEmail, toEmail, subject, body);

message.IsBodyHtml = true;
SmtpClient mailClient = new SmtpClient(Constants.SMTP_CLIENT);
mailClient.Host = Constants.EMAIL_HOST;
System.Net.NetworkCredential nCredentials = new System.Net.NetworkCredential(Constants.EMAIL_SENDE R_ADDRESS, Constants.EMAIL_SENDER_PASSWORD);
mailClient.Port = 25;
mailClient.UseDefaultCredentials = false;
mailClient.Credentials = nCredentials;
// mailClient.EnableSsl = true;
mailClient.Send(message);
lblError.Text = "Your Message Has Been Sent.";
txtSubject.Text = "";
txtMessage.Text = "";
}
catch (Exception exc)
{
lblError.Text = "Your Message Could Not Be Sent.";
}
}
Oct 3 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Kari Setälä | last post by:
I'm using ASP VBScript. I have a feedback form that should do two things: insert the contents into a database and send the contents as email. The address it would be sent to varies - users select...
2
by: weiwei | last post by:
I have an ASP automatic email confirmation code on Windows 2003 Server. My problem is that the message can be submitted to only some email accounts such as hotmail or yahoo, but cannot to my office...
3
by: Andrew J | last post by:
Hi all Would really appreciate if someone can help mi with a problem I've been having with ASP generated emails. In fact, this might be a question more related to Outlook than ASP, but in any case...
4
by: number1.email | last post by:
I have tried the following code: FileName: index2.php --------------------------------- <? mail( "aaa@yahoo.com", "A", "B", "From: a...@aol.com" ); echo "Finished Emailing."; ?>
0
by: | last post by:
Dear all, I try to send email through coding....which is successful (can receive the mail) ...however,,,when i add a attachment...even no error...but not receive any mail....don't know what's...
1
by: Lenny | last post by:
I wrote this function to send an email the problem is that I do not receive any error from .net but the email is not delivered. smtp server is not local but from my ISP any suggestion on how to...
3
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi, I'm using the bellow code to send emails in a Website that I uploaded in one of my client's server where it has SMTP installed, BUT some users are receiving email some others aren't !!?So,...
3
crystal2005
by: crystal2005 | last post by:
I found such eror message when i tried to test sending email. Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in...
2
by: =?Utf-8?B?YmFyYnlxMTA=?= | last post by:
After sending mail, it leaves the outbox as normal and clears and hits the sent folder, but then I get a popup box that states EMAIL PROBLEM One or more e-mail messages cannot be sent. ...
11
by: phpmind | last post by:
I am attempting to send and email via my feedback form and nothing seems to go thru. I have tried sending to a yahoo account and a gmail account. I have changed a few things in my script several...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.