Click here to Skip to main content
15,902,198 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: sending email from local host Pin
Manas Bhardwaj3-Oct-09 2:41
professionalManas Bhardwaj3-Oct-09 2:41 
QuestionReplication Pin
Learner5203-Oct-09 0:25
Learner5203-Oct-09 0:25 
QuestionHow i can solve this sub menu enable false ? Pin
Rahad Rahman3-Oct-09 0:19
professionalRahad Rahman3-Oct-09 0:19 
AnswerRe: How i can solve this sub menu enable false ? Pin
sashidhar3-Oct-09 1:20
sashidhar3-Oct-09 1:20 
Questionadd scrolbar and horizantalbar bar to repeater control Pin
paya1pa3-Oct-09 0:08
paya1pa3-Oct-09 0:08 
AnswerRe: add scrolbar and horizantalbar bar to repeater control Pin
CoderOnline3-Oct-09 1:57
CoderOnline3-Oct-09 1:57 
AnswerRe: add scrolbar and horizantalbar bar to repeater control Pin
sashidhar3-Oct-09 2:01
sashidhar3-Oct-09 2:01 
QuestionSending Mail Through Default SMTP Virtual Server Pin
User 62554642-Oct-09 23:03
User 62554642-Oct-09 23:03 
hello frnds !
i m using the following code in my web application
for sending an E-mail
System.Web.Mail.MailMessage msg = new System.Web.Mail.MailMessage();
        msg.Subject = "Issue Report";
        msg.Body = "Submitted By: " + txtName.Text + "\n";
        msg.Body += txtComment.Text;
        msg.From = txtSender.Text;

        msg.To = txtReceiver.Text;

        if (chkPriority.Checked) msg.Priority = System.Web.Mail.MailPriority.High;

        System.Web.Mail.SmtpMail.SmtpServer = "localhost";
        System.Web.Mail.SmtpMail.Send(msg);

        lblResult.Text = "Message sent to SMTP service.";


but when i execute this code i get this error
The transport failed to connect to the server.
at the line
System.Web.Mail.SmtpMail.Send(msg);


please help me immediately

modified 6-Jun-21 21:01pm.

AnswerRe: Sending Mail Through Default SMTP Virtual Server Pin
Manas Bhardwaj2-Oct-09 23:08
professionalManas Bhardwaj2-Oct-09 23:08 
AnswerRe: Sending Mail Through Default SMTP Virtual Server Pin
Christian Graus2-Oct-09 23:10
protectorChristian Graus2-Oct-09 23:10 
GeneralRe: Sending Mail Through Default SMTP Virtual Server Pin
User 62554642-Oct-09 23:38
User 62554642-Oct-09 23:38 
GeneralRe: Sending Mail Through Default SMTP Virtual Server Pin
Christian Graus2-Oct-09 23:43
protectorChristian Graus2-Oct-09 23:43 
GeneralRe: Sending Mail Through Default SMTP Virtual Server Pin
User 62554642-Oct-09 23:46
User 62554642-Oct-09 23:46 
GeneralRe: Sending Mail Through Default SMTP Virtual Server Pin
Christian Graus2-Oct-09 23:53
protectorChristian Graus2-Oct-09 23:53 
Questionslide show control Pin
rinku soni 232-Oct-09 22:19
rinku soni 232-Oct-09 22:19 
AnswerRe: slide show control Pin
Abhijit Jana2-Oct-09 22:26
professionalAbhijit Jana2-Oct-09 22:26 
AnswerRe: slide show control Pin
Christian Graus2-Oct-09 22:37
protectorChristian Graus2-Oct-09 22:37 
Questionautocomplete extender Pin
Jagz W2-Oct-09 21:36
professionalJagz W2-Oct-09 21:36 
QuestionHow the images are come and change contineuouslly in a websites. Pin
rinku soni 232-Oct-09 20:59
rinku soni 232-Oct-09 20:59 
AnswerRe: How the images are come and change contineuouslly in a websites. Pin
4anusha42-Oct-09 21:26
4anusha42-Oct-09 21:26 
AnswerRe: How the images are come and change contineuouslly in a websites. Pin
Parwej Ahamad2-Oct-09 21:30
professionalParwej Ahamad2-Oct-09 21:30 
GeneralRe: How the images are come and change contineuouslly in a websites. Pin
rinku soni 232-Oct-09 22:13
rinku soni 232-Oct-09 22:13 
GeneralRe: How the images are come and change contineuouslly in a websites. Pin
Abhijit Jana2-Oct-09 22:25
professionalAbhijit Jana2-Oct-09 22:25 
AnswerRe: How the images are come and change contineuouslly in a websites. Pin
Abhijit Jana2-Oct-09 22:06
professionalAbhijit Jana2-Oct-09 22:06 
AnswerRe: How the images are come and change contineuouslly in a websites. Pin
Manas Bhardwaj3-Oct-09 10:12
professionalManas Bhardwaj3-Oct-09 10:12 

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.