By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,678 Members | 1,158 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,678 IT Pros & Developers. It's quick & easy.

SMTP ASP.NET Can not send any mails...

P: n/a
Hi there....

Got here a tricky thing with my SMTP.

First I show you what works on my machine..

**This Works**
SmtpMail.SmtpServer = "mail.gmx.net" <-gmx is my mail
provider
SmtpMail.Send"my****@gmx.net", "so******@xxx.ch", "sub",
"message")
With this setting I can send a mail

But I dont want to use "mail.gmx.net". I want to use my own SMTP
Service located inside my IIS Server. (I did tons of setting) several
setting.

My computer setting: IIS5, ASP.NET ,SMTP Service running,IIS5 rights
are set
**This does not work**
SmtpMail.SmtpServer = "localhost"
SmtpMail.Send"????", "so******@xxx.ch", "sub", "message")

Error: Der Transport konnte keine Verbindung zum Server herstellen.
(Transport could not connect to server)


***
SmtpMail.SmtpServer = "squadron" <- my computer name
'192.168.1.3
'SmtpMail.SmtpServer = "192.168.1.3" <- gives the same error
SmtpMail.Send"????", "so******@xxx.ch", "sub", "message")

In the drop directory I found the message: Mail could not be
delivered to so******@xxx.ch...What should I write for the FROM part
in smptmail.send ????
I am changing now to

SmtpMail.SmtpServer = "192.168.1.3"
SmtpMail.Send "so*******@xy.xxx", "so******@xxx.ch", "sub",
"message")

I got now some BAD files in the BAD direcotry...this has to do with
the "so*******@xy.xxx" (see the bad file at the very end of this text)

.....now my next test
SmtpMail.SmtpServer = "192.168.1.3"
SmtpMail.Send "so*******@xy.xxx", "so******@xxx.ch", "sub",
"message")

....this give me an error mail again in the drop directory...

**drop directory error message***
Reporting-MTA: dns;squadron
Received-From-MTA: dns;squadron
Arrival-Date: Thu, 29 Jan 2004 21:19:25 +0900

Final-Recipient: rfc822;ww*****@gmx.ch
Action: failed
Status: 5.0.0
************************************
Do you know how to resolve my problem?

Thanks for helping

Michael Weber

***************BAD FILE*******************
From: postmaster@localhost
To: postmaster@nlocalhost
Date: Thu, 29 Jan 2004 21:15:23 +0900
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="9B095B5ADSN=_01C3E65B5E40BAFE00000033squ adron"
Message-ID: <s4KWiGtXs0000001a@squadron>
Subject: Benachrichtung
zum
=?unicode-1-1-utf-7?Q?+ANw-bermittlungsstatus
(Fehlgeschlagen)?=

This is a MIME-formatted message.
Portions of this message may be unreadable without a MIME-capable mail
program.

--9B095B5ADSN=_01C3E65B5E40BAFE00000033squadron
Content-Type: text/plain; charset=unicode-1-1-utf-7

Dies ist eine automatisch erstellte Benachrichtigung +APw-ber den
Zustellstatus.

+ANw-bermittlung zu folgenden Empf+AOQ-ngern fehlgeschlagen.

ww*****@gmx.ch


--9B095B5ADSN=_01C3E65B5E40BAFE00000033squadron
Content-Type: message/delivery-status

Reporting-MTA: dns;squadron
Received-From-MTA: dns;squadron
Arrival-Date: Thu, 29 Jan 2004 21:15:23 +0900

Final-Recipient: rfc822;ww*****@gmx.ch
Action: failed
Status: 5.0.0

--9B095B5ADSN=_01C3E65B5E40BAFE00000033squadron
Content-Type: message/rfc822

Received: from squadron ([192.168.1.3]) by squadron with Microsoft
SMTPSVC(6.0.2600.1106);
Thu, 29 Jan 2004 21:15:23 +0900
thread-index: AcPmYZHeW8JYgLLOThqbsHnz430Gvg==
Thread-Topic: subjekkkkt
From: <postmaster@nlocalhost>
To: <ww*****@gmx.ch>
Subject: subjekkkkt
Date: Thu, 29 Jan 2004 21:15:23 +0900
Message-ID: <000001c3e661$91f19250$0301a8c0@squadron>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft CDO for Exchange 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Return-Path: postmaster@nlocalhost
X-OriginalArrivalTime: 29 Jan 2004 12:15:23.0156 (UTC)
FILETIME=[91F64D40:01C3E661]

message
--9B095B5ADSN=_01C3E65B5E40BAFE00000033squadron--
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
configure your smtp service in IIS
what you need to do is to relay correctly.
if you can go to the pain of setting up mx records etc... or you can make it
relay the message to a specific smtp or exchange server on the internet.
so set up the relaying and then you will be able to use localhost

http://support.microsoft.com/default...NoWebContent=1

http://www.swinc.com/resource/exch_faq_appxh.htm

http://www.petri.co.il/configure_iis_as_smart_host.htm

hope this helps

--

Regards,
HD
"michi" <ww*****@gmx.ch> wrote in message
news:ec*************************@posting.google.co m...
Hi there....

Got here a tricky thing with my SMTP.

First I show you what works on my machine..

**This Works**
SmtpMail.SmtpServer = "mail.gmx.net" <-gmx is my mail
provider
SmtpMail.Send"my****@gmx.net", "so******@xxx.ch", "sub",
"message")
With this setting I can send a mail

But I dont want to use "mail.gmx.net". I want to use my own SMTP
Service located inside my IIS Server. (I did tons of setting) several
setting.

My computer setting: IIS5, ASP.NET ,SMTP Service running,IIS5 rights
are set
**This does not work**
SmtpMail.SmtpServer = "localhost"
SmtpMail.Send"????", "so******@xxx.ch", "sub", "message")

Error: Der Transport konnte keine Verbindung zum Server herstellen.
(Transport could not connect to server)


***
SmtpMail.SmtpServer = "squadron" <- my computer name
'192.168.1.3
'SmtpMail.SmtpServer = "192.168.1.3" <- gives the same error
SmtpMail.Send"????", "so******@xxx.ch", "sub", "message")

In the drop directory I found the message: Mail could not be
delivered to so******@xxx.ch...What should I write for the FROM part
in smptmail.send ????
I am changing now to

SmtpMail.SmtpServer = "192.168.1.3"
SmtpMail.Send "so*******@xy.xxx", "so******@xxx.ch", "sub",
"message")

I got now some BAD files in the BAD direcotry...this has to do with
the "so*******@xy.xxx" (see the bad file at the very end of this text)

....now my next test
SmtpMail.SmtpServer = "192.168.1.3"
SmtpMail.Send "so*******@xy.xxx", "so******@xxx.ch", "sub",
"message")

...this give me an error mail again in the drop directory...

**drop directory error message***
Reporting-MTA: dns;squadron
Received-From-MTA: dns;squadron
Arrival-Date: Thu, 29 Jan 2004 21:19:25 +0900

Final-Recipient: rfc822;ww*****@gmx.ch
Action: failed
Status: 5.0.0
************************************
Do you know how to resolve my problem?

Thanks for helping

Michael Weber

***************BAD FILE*******************
From: postmaster@localhost
To: postmaster@nlocalhost
Date: Thu, 29 Jan 2004 21:15:23 +0900
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="9B095B5ADSN=_01C3E65B5E40BAFE00000033squ adron"
Message-ID: <s4KWiGtXs0000001a@squadron>
Subject: Benachrichtung
zum
=?unicode-1-1-utf-7?Q?+ANw-bermittlungsstatus
(Fehlgeschlagen)?=

This is a MIME-formatted message.
Portions of this message may be unreadable without a MIME-capable mail
program.

--9B095B5ADSN=_01C3E65B5E40BAFE00000033squadron
Content-Type: text/plain; charset=unicode-1-1-utf-7

Dies ist eine automatisch erstellte Benachrichtigung +APw-ber den
Zustellstatus.

+ANw-bermittlung zu folgenden Empf+AOQ-ngern fehlgeschlagen.

ww*****@gmx.ch


--9B095B5ADSN=_01C3E65B5E40BAFE00000033squadron
Content-Type: message/delivery-status

Reporting-MTA: dns;squadron
Received-From-MTA: dns;squadron
Arrival-Date: Thu, 29 Jan 2004 21:15:23 +0900

Final-Recipient: rfc822;ww*****@gmx.ch
Action: failed
Status: 5.0.0

--9B095B5ADSN=_01C3E65B5E40BAFE00000033squadron
Content-Type: message/rfc822

Received: from squadron ([192.168.1.3]) by squadron with Microsoft
SMTPSVC(6.0.2600.1106);
Thu, 29 Jan 2004 21:15:23 +0900
thread-index: AcPmYZHeW8JYgLLOThqbsHnz430Gvg==
Thread-Topic: subjekkkkt
From: <postmaster@nlocalhost>
To: <ww*****@gmx.ch>
Subject: subjekkkkt
Date: Thu, 29 Jan 2004 21:15:23 +0900
Message-ID: <000001c3e661$91f19250$0301a8c0@squadron>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft CDO for Exchange 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Return-Path: postmaster@nlocalhost
X-OriginalArrivalTime: 29 Jan 2004 12:15:23.0156 (UTC)
FILETIME=[91F64D40:01C3E661]

message
--9B095B5ADSN=_01C3E65B5E40BAFE00000033squadron--

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.