Click here to Skip to main content
16,007,163 members
Home / Discussions / C#
   

C#

 
GeneralRe: P/Invokes into native code Pin
Giorgi Dalakishvili7-Jan-08 23:48
mentorGiorgi Dalakishvili7-Jan-08 23:48 
GeneralRe: P/Invokes into native code Pin
N a v a n e e t h8-Jan-08 2:30
N a v a n e e t h8-Jan-08 2:30 
GeneralMouse and keyboard logger Pin
sepel7-Jan-08 22:09
sepel7-Jan-08 22:09 
GeneralRe: Mouse and keyboard logger Pin
Christian Graus7-Jan-08 22:13
protectorChristian Graus7-Jan-08 22:13 
GeneralRe: Mouse and keyboard logger Pin
sepel7-Jan-08 22:17
sepel7-Jan-08 22:17 
GeneralSending mail in C# with or without smtp Pin
razanabanu7-Jan-08 21:01
razanabanu7-Jan-08 21:01 
GeneralRe: Sending mail in C# with or without smtp Pin
Christian Graus7-Jan-08 21:10
protectorChristian Graus7-Jan-08 21:10 
GeneralRe: Sending mail in C# with or without smtp Pin
razanabanu7-Jan-08 21:28
razanabanu7-Jan-08 21:28 
Hi friends this is the error what im receiving in my application.




Server Error in '/afxisityro' Application.
--------------------------------------------------------------------------------

The transport failed to connect to the server.
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.

Exception Details: System.Runtime.InteropServices.COMException: The transport failed to connect to the server.

Source Error:


Line 35:
Line 36: SmtpMail.SmtpServer="afxisi.com"; //your real server goes here
Line 37: SmtpMail.Send(mail);
Line 38: // Put user code to initialize the page here
Line 39:


Source File: c:\inetpub\wwwroot\afxisityro\sendmail.aspx.cs Line: 37


These are the code what im using in my web application



MailMessage mail=new MailMessage();
mail.From ="rinooza@gmail.com";
mail.To="razanabanu@gmail.com";
mail.Subject ="HI";
mail.Priority =MailPriority.Normal ;
mail.BodyFormat =MailFormat.Html ;
mail.Body="Hi! ";
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", "465");
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "rojabanu.m@afxisi.co.in"); //set your username here
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "8A4904"); //set your password here
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusessl", "false");

SmtpMail.SmtpServer="afxisi.com"; //your real server goes here
SmtpMail.Send(mail);
// Put user code to initialize the page here






Hi,Im Razana

GeneralRe: Sending mail in C# with or without smtp Pin
Christian Graus7-Jan-08 22:03
protectorChristian Graus7-Jan-08 22:03 
GeneralRe: Sending mail in C# with or without smtp Pin
Declan Bright7-Jan-08 23:22
Declan Bright7-Jan-08 23:22 
QuestionHandle MouseWheel Without giving control Focus? Pin
Sukhjinder_K7-Jan-08 20:32
Sukhjinder_K7-Jan-08 20:32 
AnswerRe: Handle MouseWheel Without giving control Focus? Pin
Christian Graus7-Jan-08 21:11
protectorChristian Graus7-Jan-08 21:11 
GeneralI think there can be better solution Pin
Sukhjinder_K7-Jan-08 21:45
Sukhjinder_K7-Jan-08 21:45 
GeneralRe: I think there can be better solution Pin
Christian Graus7-Jan-08 22:04
protectorChristian Graus7-Jan-08 22:04 
Questionhow can i embed flash swf file to my application Pin
Naveed7277-Jan-08 19:27
Naveed7277-Jan-08 19:27 
AnswerRe: how can i embed flash swf file to my application Pin
Giorgi Dalakishvili7-Jan-08 20:51
mentorGiorgi Dalakishvili7-Jan-08 20:51 
GeneralBrowser Control In C# Pin
A.Asif7-Jan-08 17:33
A.Asif7-Jan-08 17:33 
GeneralRe: Browser Control In C# Pin
Luc Pattyn7-Jan-08 18:00
sitebuilderLuc Pattyn7-Jan-08 18:00 
GeneralGet Word Document as BLOB Pin
Arun Abraham Jose7-Jan-08 17:33
Arun Abraham Jose7-Jan-08 17:33 
QuestionHow to merge two cells in the datagridview of .net 2003 Pin
froxy7-Jan-08 17:24
froxy7-Jan-08 17:24 
QuestionHow to merge the cells in the grid of .net 2003 Pin
froxy7-Jan-08 16:50
froxy7-Jan-08 16:50 
AnswerRe: How to merge the cells in the grid of .net 2003 Pin
Christian Graus7-Jan-08 16:57
protectorChristian Graus7-Jan-08 16:57 
QuestionUsing default proxy how to implement? Pin
Ronni Marker7-Jan-08 11:35
Ronni Marker7-Jan-08 11:35 
GeneralDataGridView to fill the whole control Pin
Gareth H7-Jan-08 11:14
Gareth H7-Jan-08 11:14 
GeneralRe: DataGridView to fill the whole control Pin
I.explore.code7-Jan-08 17:28
I.explore.code7-Jan-08 17:28 

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.