473,382 Members | 1,238 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,382 software developers and data experts.

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

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
1 6264
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: tomtailor | last post by:
Hello! I'm migrating from pgSQL and WinXP to DB2 8.2 on SuSE 9.2 and I'd like to send E-Mails by triggers. I found some code for Java stored Procedures but I'm not able to get JavaDK running in...
1
by: Duy Nguyen | last post by:
how can I send mails from asp.net pages?
1
by: SenthilVel | last post by:
Hi all Does the namespace Sysytem.Web.mail use CDO's to send mails? ,,, Senthil
1
by: Anuradha | last post by:
Dear All I tried below method to send mails but when the mail sends it gives an error saying Dim mail As MailMessage = New MailMessage() mail.To = "anu@lanka.com" mail.From =...
0
by: Parul | last post by:
How could we send mails automatically using ASP.Net. I have to make a remainder of shows by which I can send notifications of remainder to the users before there shows starts.
0
iamnandagopal
by: iamnandagopal | last post by:
Hello Guys, I would like to know how to send mails programatically using C#. My mail server is an Microsoft Exchange. I dont have much idea about Microsoft Exchange. I would really appreciate...
16
by: bgreer5050 | last post by:
I have a form with the following fields: UserEmail Subject Body When the form is submitted, the email is processed fine. When I try to add another field to the mm.body (mm.Body = Body.Text...
4
by: =?Utf-8?B?Um9nZXIgR2FycmV0dA==?= | last post by:
I'm having a problem using the System.Net.Mail.SmtpClient. After I set everything up and issue the Send method it throws an exception indicating "Sorry, that domain isn't in my list of allowed...
1
by: mukesh1989 | last post by:
using CDOSYS i am able to send mails only to Gmail but not to the other mails why? and also in Gmail mail it will be in Spam folder if i say it is not spam also! please help me. sometimes it takes...
1
by: swetha123 | last post by:
hello, can any tell me how to send mails from site using mail() in php do we need to change in the php.ini these are in php.ini
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.