Click here to Skip to main content
15,867,835 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Database. Pin
Guffa18-Feb-07 6:40
Guffa18-Feb-07 6:40 
GeneralRe: Database. Pin
bayo18-Feb-07 7:50
bayo18-Feb-07 7:50 
QuestionGoing hell with datagrid Pin
www.Developerof.NET18-Feb-07 4:22
www.Developerof.NET18-Feb-07 4:22 
AnswerRe: Going hell with datagrid Pin
Sylvester george18-Feb-07 20:03
Sylvester george18-Feb-07 20:03 
Questionhow can i build a search engine with c#.net Pin
shawn41418-Feb-07 4:20
shawn41418-Feb-07 4:20 
AnswerRe: how can i build a search engine with c#.net Pin
Colin Angus Mackay18-Feb-07 4:41
Colin Angus Mackay18-Feb-07 4:41 
AnswerRe: how can i build a search engine with c#.net Pin
GaryWoodfine 18-Feb-07 12:22
professionalGaryWoodfine 18-Feb-07 12:22 
QuestionSMTP - Trouble sending message in ASP.Net but not as a C# application on my machine? Pin
hetrobezz17-Feb-07 23:13
hetrobezz17-Feb-07 23:13 
I'm having a problem with this peice of code and for the life of me I cant figure out why. If I run it as a C# application on my computer it will send an email to the testaddress@gmail.com containing the text "HI!" ... When I copy this code into my Asp.Net applictation and run it on the server I get the error shown below the code... The server version is also shown. Any ideas would be very welcome as I've been trying to make this work for several hours now!



<br />
    protected void Button1_Click(object sender, EventArgs e)<br />
    {<br />
        MailMessage message = new MailMessage("mailer@testdomain.com", "testaddress@gmail.com", "feedback", "HI!");<br />
        SmtpClient mailClient = new SmtpClient("mail.testdomain.com");<br />
<br />
        mailClient.Port = 25;<br />
        mailClient.UseDefaultCredentials = false;<br />
        mailClient.Credentials = new NetworkCredential("mailer@testdomain.com", "test");<br />
        mailClient.DeliveryMethod = SmtpDeliveryMethod.Network;<br />
<br />
        mailClient.Send(message);<br />
        <br />
<br />
<br />
        message.Dispose();<br />
    }<br />


Server Error in '/' Application.<br />
--------------------------------------------------------------------------------<br />
<br />
The SMTP server requires a secure connection or the client was not authenticated. The server response was: PLESK.home ESMTP MailEnable Service, Version: 1.95-- denied access at 02/18/07 02:02:23 <br />
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br />
<br />
Exception Details: System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: PLESK.home ESMTP MailEnable Service, Version: 1.95-- denied access at 02/18/07 02:02:23<br />
<br />
Source Error: <br />
<br />
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  <br />
<br />
Stack Trace: <br />
<br />
<br />
[SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: PLESK.home ESMTP MailEnable Service, Version: 1.95-- denied access at 02/18/07 02:02:23]<br />
   System.Net.Mail.SmtpConnection.GetConnection(String host, Int32 port) +819256<br />
   System.Net.Mail.SmtpTransport.GetConnection(String host, Int32 port) +316<br />
   System.Net.Mail.SmtpClient.GetConnection() +42<br />
   System.Net.Mail.SmtpClient.Send(MailMessage message) +2004<br />
   Email.Button1_Click(Object sender, EventArgs e) +153<br />
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105<br />
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107<br />
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7<br />
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11<br />
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33<br />
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102<br />
<br />
 <br />
<br />
<br />
--------------------------------------------------------------------------------<br />
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210 


Thank you in advance,

Curt
AnswerRe: SMTP - Trouble sending message in ASP.Net but not as a C# application on my machine? Pin
badgrs18-Feb-07 0:51
badgrs18-Feb-07 0:51 
Questioncrystal report viewing problem Pin
jabbarsb17-Feb-07 19:46
jabbarsb17-Feb-07 19:46 
QuestionAJAX or ASP for Dynamic web form creation? Pin
jrshack17-Feb-07 17:44
jrshack17-Feb-07 17:44 
AnswerRe: AJAX or ASP for Dynamic web form creation? Pin
badgrs18-Feb-07 0:49
badgrs18-Feb-07 0:49 
GeneralRe: AJAX or ASP for Dynamic web form creation? Pin
jrshack18-Feb-07 6:33
jrshack18-Feb-07 6:33 
Questionlistitem tablecell width Pin
loupceuxl17-Feb-07 16:34
loupceuxl17-Feb-07 16:34 
QuestionWorking With Word Template From ASP.NET and VB.NET [modified] Pin
Haribabu Krishnamurthy17-Feb-07 7:55
Haribabu Krishnamurthy17-Feb-07 7:55 
JokeRe: Working With Word Template From ASP.NET and VB.NET Pin
Not Active18-Feb-07 3:57
mentorNot Active18-Feb-07 3:57 
QuestionSending mail using SMTP Mail...? Pin
fmlove17-Feb-07 1:15
fmlove17-Feb-07 1:15 
AnswerRe: Sending mail using SMTP Mail...? Pin
Michael Sync17-Feb-07 1:35
Michael Sync17-Feb-07 1:35 
GeneralRe: Sending mail using SMTP Mail...? Pin
fmlove17-Feb-07 1:46
fmlove17-Feb-07 1:46 
AnswerRe: Sending mail using SMTP Mail...? Pin
WoutL17-Feb-07 10:10
WoutL17-Feb-07 10:10 
GeneralRe: Sending mail using SMTP Mail...? Pin
fmlove18-Feb-07 1:50
fmlove18-Feb-07 1:50 
AnswerRe: Sending mail using SMTP Mail...? Pin
Abisodun18-Feb-07 7:14
Abisodun18-Feb-07 7:14 
GeneralRe: Sending mail using SMTP Mail...? Pin
fmlove18-Feb-07 20:40
fmlove18-Feb-07 20:40 
GeneralRe: Sending mail using SMTP Mail...? Pin
Abisodun19-Feb-07 1:32
Abisodun19-Feb-07 1:32 
GeneralRe: Sending mail using SMTP Mail...? Pin
fmlove20-Feb-07 21:31
fmlove20-Feb-07 21:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.