473,804 Members | 3,194 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SMTP send e-mail

I know there are lots of threads covering my question but i am still unable
to send e-mails from an asp.net page. Messages are not even going into the
logs.

Here is the code that i am using to send the e-mail.

MailMessage objMail = new MailMessage();
objMail.From = "nigel@***" ;
objMail.To = nigel@***;
objMail.Subject = txtSubject.Text ;
objMail.BodyFor mat = MailFormat.Html ;
objMail.Body = "Text"
SmtpMail.SmtpSe rver = "127.0.0.1" ;
SmtpMail.Send(o bjMail);

The error that i am getting is

System.Runtime. InteropServices .COMException: The message could not be sent
to the SMTP server. The transport error code was 0x800ccc15. The server
response was not available

Line 22: SmtpMail.Send(o bjMail);

The server is a Windows 2003 running iis 6.0 and smtp. I have set the realy
to 127.0.0.1 but to no avail.

One thing that i have noticed is that i cannot telnet to port 25. I have no
firewall enabled yet and no antivirus.

Does anyone have any suggestions?

Thanks in advance

Nigel
Jan 26 '06 #1
1 1531
I would hazard a guess that your expecting your smtp instance to handle your
email - but your local SMTP is not an SMTP gateway, only a forwarding device
to a gateway like an exchange server or ISP email server on port 25. That
would explain why you cant get a response from port 25.

Cant remember the exact details - but you need to try setting the smart host
option of your smtp under IIS to point to an accesible smtp server.

--
Regards

John Timney
Microsoft MVP

"Nigel" <Ni***@discussi ons.microsoft.c om> wrote in message
news:62******** *************** ***********@mic rosoft.com...
I know there are lots of threads covering my question but i am still unable
to send e-mails from an asp.net page. Messages are not even going into the
logs.

Here is the code that i am using to send the e-mail.

MailMessage objMail = new MailMessage();
objMail.From = "nigel@***" ;
objMail.To = nigel@***;
objMail.Subject = txtSubject.Text ;
objMail.BodyFor mat = MailFormat.Html ;
objMail.Body = "Text"
SmtpMail.SmtpSe rver = "127.0.0.1" ;
SmtpMail.Send(o bjMail);

The error that i am getting is

System.Runtime. InteropServices .COMException: The message could not be sent
to the SMTP server. The transport error code was 0x800ccc15. The server
response was not available

Line 22: SmtpMail.Send(o bjMail);

The server is a Windows 2003 running iis 6.0 and smtp. I have set the
realy
to 127.0.0.1 but to no avail.

One thing that i have noticed is that i cannot telnet to port 25. I have
no
firewall enabled yet and no antivirus.

Does anyone have any suggestions?

Thanks in advance

Nigel

Jan 26 '06 #2

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

Similar topics

2
2813
by: Dan Boyle | last post by:
Hi, I am having difficulty connection to an smtp host. I am using the following code but I don't think I fully understand what smtp host can be used. function setSMTPParams($host = null, $port = null, $helo = null, $auth = null, $user = null, $pass = null) { if (!is_null($host)) $this->smtp_params = $host;
2
14687
by: Alex Hunsley | last post by:
I'm using the smtp module to send emails from python. I would like to specify several recipients of the email like follows: msg = MIMEText(time.ctime("Body text of email") me = 'my@sending.address' you = 'recipient1@some.where,recipient2@some.where' msg = '*** Carwatch alert' msg = me msg = you
5
3254
by: Emmett Power | last post by:
Hi, I use Access to send emails through SMTP. I'd like to mirror the process and retrieve emails from my SMTP/Pop3 server without the intermediary of Outlook. I don't want to spend a lot of money on 3rd party applications. Can I do this through code or is there some reason why it is not doable? I've hunted through the net but all I've got are references to commercial applications. A pointer to sample code would be much
10
5516
by: ahager via DotNetMonster.com | last post by:
I am receiving this messaage in a console application I wrote, I am authenticating, and my network admin swears their is nothing wrong with the smtp server. Any ideas? public void Mail_update() { try { System.Web.Mail.MailMessage TME = new MailMessage(); TME.To = "adam_james98@hotmail.com";
5
8703
by: Dino M. Buljubasic | last post by:
I need to check if an SMTP server exist (not a local one). How can I check if an SMTP server exists from my application? Regards, -- Dino Buljubasic Software Developer http://rivusglobal.com
4
2260
by: CLEAR-RCIC | last post by:
I want to send an email from our Intranet site to myself whenever an error happens. Our manager will not let us install SMTP on the web server. Is it possible to send email programatically without SMTP installed?
0
3228
by: Homer | last post by:
Hi, I got "InnerException: Unable to connect to remote server"..."No connection could be made because the target machine actively refused it" when I attempted to send an email through my Intranet app that is written in asp.net 2.0. The smtp server is a local server and it uses Port 25. The Authentication is set to Anonymous Access. Here's my code: <system.net>
3
3301
by: tamaker | last post by:
I have Road Runner cable internet access and Im working in a local development environment (writing .ASP) and have a site running on my network on a windows xp pro machine via IIS with CDONTS installed. When I try to send a confirmation email (simple text) via CDONTS the message is built but remains on the server in the QUEUE folder ... how can I tweak the SMTP settings on the server to allow me to send email out from the server... ...
8
3811
by: Marty | last post by:
I'm having issues sending an email to an "@page.nextel.com" email address. I can send to any other email address fine, but when I try the page.nextel.com it gives me this error: Final-Recipient: XXXXXXX@page.nextel.com Diagnostic-Code: smtp; 554 message body contains illegal bare CR/LF characters. Action: failed Status: 5.0.0
10
3886
Fary4u
by: Fary4u | last post by:
Hi i've got this problem for a long time i don't know how to get around with this i've got my own domain & i've got AOL Account they providing me IMAP services but i want to send email to my own accoutn like info@domain.com i need any SMTP Address that can send my emails with out any restrictions any at the moment i'm using smtp.gmail.com it's send it but it's came up automatically my gmail account email address.
0
9706
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9579
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10321
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9152
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7620
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5522
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2991
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.