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

M

michi

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"(e-mail address removed)", "(e-mail address removed)", "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"????", "(e-mail address removed)", "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"????", "(e-mail address removed)", "sub", "message")

In the drop directory I found the message: Mail could not be
delivered to (e-mail address removed)...What should I write for the FROM part
in smptmail.send ????


I am changing now to

SmtpMail.SmtpServer = "192.168.1.3"
SmtpMail.Send "(e-mail address removed)", "(e-mail address removed)", "sub",
"message")

I got now some BAD files in the BAD direcotry...this has to do with
the "(e-mail address removed)" (see the bad file at the very end of this text)

.....now my next test
SmtpMail.SmtpServer = "192.168.1.3"
SmtpMail.Send "(e-mail address removed)", "(e-mail address removed)", "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;[email protected]
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=_01C3E65B5E40BAFE00000033squadron"
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.

(e-mail address removed)




--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;[email protected]
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: <[email protected]>
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--
 
H

Hermit Dave

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/defaul...port/kb/articles/Q230/2/35.ASP&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 said:
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"(e-mail address removed)", "(e-mail address removed)", "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"????", "(e-mail address removed)", "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"????", "(e-mail address removed)", "sub", "message")

In the drop directory I found the message: Mail could not be
delivered to (e-mail address removed)...What should I write for the FROM part
in smptmail.send ????


I am changing now to

SmtpMail.SmtpServer = "192.168.1.3"
SmtpMail.Send "(e-mail address removed)", "(e-mail address removed)", "sub",
"message")

I got now some BAD files in the BAD direcotry...this has to do with
the "(e-mail address removed)" (see the bad file at the very end of this text)

....now my next test
SmtpMail.SmtpServer = "192.168.1.3"
SmtpMail.Send "(e-mail address removed)", "(e-mail address removed)", "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;[email protected]
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=_01C3E65B5E40BAFE00000033squadron"
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.

(e-mail address removed)




--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;[email protected]
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: <[email protected]>
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--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,034
Messages
2,570,356
Members
47,002
Latest member
RobertoLip

Latest Threads

Top