473,549 Members | 2,635 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.SmtpSe rver = "mail.gmx.n et" <-gmx is my mail
provider
SmtpMail.Send"m y****@gmx.net", "so******@xxx.c h", "sub",
"message")
With this setting I can send a mail

But I dont want to use "mail.gmx.n et". 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.SmtpSe rver = "localhost"
SmtpMail.Send"? ???", "so******@xxx.c h", "sub", "message")

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


***
SmtpMail.SmtpSe rver = "squadron" <- my computer name
'192.168.1.3
'SmtpMail.SmtpS erver = "192.168.1. 3" <- gives the same error
SmtpMail.Send"? ???", "so******@xxx.c h", "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.SmtpSe rver = "192.168.1. 3"
SmtpMail.Send "so*******@xy.x xx", "so******@xxx.c h", "sub",
"message")

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

.....now my next test
SmtpMail.SmtpSe rver = "192.168.1. 3"
SmtpMail.Send "so*******@xy.x xx", "so******@xxx.c h", "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@loca lhost
To: postmaster@nloc alhost
Date: Thu, 29 Jan 2004 21:15:23 +0900
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="9B095 B5ADSN=_01C3E65 B5E40BAFE000000 33squadron"
Message-ID: <s4KWiGtXs00000 01a@squadron>
Subject: Benachrichtung
zum
=?unicode-1-1-utf-7?Q?+ANw-bermittlungssta tus
(Fehlgeschlagen )?=

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

--9B095B5ADSN=_01 C3E65B5E40BAFE0 0000033squadron
Content-Type: text/plain; charset=unicode-1-1-utf-7

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

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

ww*****@gmx.ch


--9B095B5ADSN=_01 C3E65B5E40BAFE0 0000033squadron
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=_01 C3E65B5E40BAFE0 0000033squadron
Content-Type: message/rfc822

Received: from squadron ([192.168.1.3]) by squadron with Microsoft
SMTPSVC(6.0.260 0.1106);
Thu, 29 Jan 2004 21:15:23 +0900
thread-index: AcPmYZHeW8JYgLL OThqbsHnz430Gvg ==
Thread-Topic: subjekkkkt
From: <postmaster@nlo calhost>
To: <ww*****@gmx.ch >
Subject: subjekkkkt
Date: Thu, 29 Jan 2004 21:15:23 +0900
Message-ID: <000001c3e661$9 1f19250$0301a8c 0@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@nloc alhost
X-OriginalArrival Time: 29 Jan 2004 12:15:23.0156 (UTC)
FILETIME=[91F64D40:01C3E6 61]

message
--9B095B5ADSN=_01 C3E65B5E40BAFE0 0000033squadron--
Nov 18 '05 #1
1 6279
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.goog le.com...
Hi there....

Got here a tricky thing with my SMTP.

First I show you what works on my machine..

**This Works**
SmtpMail.SmtpSe rver = "mail.gmx.n et" <-gmx is my mail
provider
SmtpMail.Send"m y****@gmx.net", "so******@xxx.c h", "sub",
"message")
With this setting I can send a mail

But I dont want to use "mail.gmx.n et". 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.SmtpSe rver = "localhost"
SmtpMail.Send"? ???", "so******@xxx.c h", "sub", "message")

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


***
SmtpMail.SmtpSe rver = "squadron" <- my computer name
'192.168.1.3
'SmtpMail.SmtpS erver = "192.168.1. 3" <- gives the same error
SmtpMail.Send"? ???", "so******@xxx.c h", "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.SmtpSe rver = "192.168.1. 3"
SmtpMail.Send "so*******@xy.x xx", "so******@xxx.c h", "sub",
"message")

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

....now my next test
SmtpMail.SmtpSe rver = "192.168.1. 3"
SmtpMail.Send "so*******@xy.x xx", "so******@xxx.c h", "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@loca lhost
To: postmaster@nloc alhost
Date: Thu, 29 Jan 2004 21:15:23 +0900
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="9B095 B5ADSN=_01C3E65 B5E40BAFE000000 33squadron"
Message-ID: <s4KWiGtXs00000 01a@squadron>
Subject: Benachrichtung
zum
=?unicode-1-1-utf-7?Q?+ANw-bermittlungssta tus
(Fehlgeschlagen )?=

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

--9B095B5ADSN=_01 C3E65B5E40BAFE0 0000033squadron
Content-Type: text/plain; charset=unicode-1-1-utf-7

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

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

ww*****@gmx.ch


--9B095B5ADSN=_01 C3E65B5E40BAFE0 0000033squadron
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=_01 C3E65B5E40BAFE0 0000033squadron
Content-Type: message/rfc822

Received: from squadron ([192.168.1.3]) by squadron with Microsoft
SMTPSVC(6.0.260 0.1106);
Thu, 29 Jan 2004 21:15:23 +0900
thread-index: AcPmYZHeW8JYgLL OThqbsHnz430Gvg ==
Thread-Topic: subjekkkkt
From: <postmaster@nlo calhost>
To: <ww*****@gmx.ch >
Subject: subjekkkkt
Date: Thu, 29 Jan 2004 21:15:23 +0900
Message-ID: <000001c3e661$9 1f19250$0301a8c 0@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@nloc alhost
X-OriginalArrival Time: 29 Jan 2004 12:15:23.0156 (UTC)
FILETIME=[91F64D40:01C3E6 61]

message
--9B095B5ADSN=_01 C3E65B5E40BAFE0 0000033squadron--

Nov 18 '05 #2

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

Similar topics

2
1827
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 my DB2 instance. So is there any other way to send mails by triggers out of my DB2? Procedure Code in C or some Software like dbmail from...
1
364
by: Duy Nguyen | last post by:
how can I send mails from asp.net pages?
1
1207
by: SenthilVel | last post by:
Hi all Does the namespace Sysytem.Web.mail use CDO's to send mails? ,,, Senthil
1
1293
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 = "anu@yourcompany.com" mail.Subject = "this is a test email." mail.Body = "this is my test email body"
0
1250
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
1042
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 if some one can provide me with an idea, how to go about sending mails using exchange server programatically.
16
2976
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 & Listbox1.SelectedItem.Text) the smtp.Send fails. Any ideas ?
4
2281
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 rcpthosts", which is apparently coming from the mail server, smtpout.secureserver.net. However, I do indeed have the email address set up properly...
1
2905
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 lot of time to be recieved by the reciver.
1
1489
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
0
7462
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...
0
7823
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5381
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...
0
5101
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...
0
3510
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...
0
3491
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1957
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1069
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
777
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...

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.