473,403 Members | 2,284 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,403 software developers and data experts.

help: problem with System.Web.Mail

hb
Hi,

Yesterday I applied an automatic Windows security update from Microsoft.
Then, none of my web application can send out email using
System.Web.Mail.SmtpMail.Send();

I don't see any errors. It just does not send the email.

The to and from address are valid email addresses.

I don't know what kind of Windows security update was installed and how
to rollback to the previous status. My OS is Windows 2000 Standard Server.
The web applications are written in ASP.Net(C#) using Visual Studio.Net
2003.

Would you please tell me what could be the cause of the problem?

Thank you

hb
Nov 19 '05 #1
2 1040
Check the security settings of your SMTP server, particularly the relay
settings.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"hb" <ho****@goodoffices.com> wrote in message
news:eW**************@TK2MSFTNGP12.phx.gbl...
Hi,

Yesterday I applied an automatic Windows security update from Microsoft.
Then, none of my web application can send out email using
System.Web.Mail.SmtpMail.Send();

I don't see any errors. It just does not send the email.

The to and from address are valid email addresses.

I don't know what kind of Windows security update was installed and how
to rollback to the previous status. My OS is Windows 2000 Standard Server.
The web applications are written in ASP.Net(C#) using Visual Studio.Net
2003.

Would you please tell me what could be the cause of the problem?

Thank you

hb

Nov 19 '05 #2
hb
Hi, Kevin,

In the relay setting of SMTP server, "All except the list below" is checked
and there is no list there. But the following code still can not send out
email
and no error occurs:
==
using System;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Mail;
using System.Web.Util;

namespace GoodEnergyCom
{
public class test1 : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
System.Web.Mail.MailMessage msg = new System.Web.Mail.MailMessage();
msg.To="ho****@goodoffices.com";
msg.From="in**@goodoffices.com";
msg.Subject="test mail";
msg.BodyFormat = MailFormat.Html;
msg.Body = "test from good offices";
System.Web.Mail.SmtpMail.SmtpServer="localhost";
System.Web.Mail.SmtpMail.Send(msg);
msg = null;
Response.Write("email sent ok<br>");
}
}
}
==

Do you have any ideas about the problem?

hb

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:u$**************@TK2MSFTNGP10.phx.gbl...
Check the security settings of your SMTP server, particularly the relay
settings.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Sandy | last post by:
Hello - I am attempting to email error messages to myself in the event of an error. I am using the following code: Dim mail as New MailMessage() Dim ErrorMessage = "The error description is...
6
by: \jason via DotNetMonster.com\ | last post by:
currently i am doing a personal website and keep on changing the aspect... finally the finall decision is to have a login page (requirement in asp.net, vb.net) and the login with security part of...
6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
2
by: rufpirat | last post by:
Hello I'm in the middle of trying to build an "AD phone book", and this being my first try at asp.net, I have a few questions that I hope some of you might be able to help with: 1. Is it...
6
by: rekaeps | last post by:
We are developing an ASP.NET 2.0 (C#) application, and I'm having troubles sending e-mail from the server when accessing the web site from a separate client computer. Also, in the same scenario,...
2
by: Phuff | last post by:
I need to add controls on a button click. I would prefer to do this in the page load or init functions, however due to the nature of the page I have to add them later on. When I try to enumerate...
11
by: cybervigilante | last post by:
I can't seem to change the include path on my local winmachine no matter what I do. It comes up as includ_path .;C:\php5\pear in phpinfo() but there is no such file. I installed the WAMP package...
1
by: CodeSeeker | last post by:
I have an application, which uses pop3 to read the messages from the mailbox, and it has been working fine for so many year. We recently have started changing this application to use java mail IMAP 4...
7
by: Rob Dob | last post by:
The following code is giving me a timeout problem., no matter what I do I can't send a piece of mail using .net2.0 System.Net.Mail.SmtpClient via port 465 and using ssl, if however I try using...
12
by: =?Utf-8?B?ZGdvdw==?= | last post by:
I designed a "contact_us" page in visual web developer 2005 express along with EW2 after viewing tutorials on asp.net's help page. Features work like they should, but I cannot figure out how to...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.