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

Having trouble with SMTP/component

I'm puzzled by this situation. I'm running on Windows XP Pro 2002 SP 2. I
started on an ASP.Net project, initially using the standard SmtpServer and
MailMessage classes. For testing, I used the same e-mail address for From:
and To:, my personal e-mail address on my ISP. I do not have an e-mail
server set up on my machine, though I do have the SMTP service running.
Everything was working. I could send a mail message from my ASP.Net app.,
running on my machine, and it would show up in my personal e-mail, through my
ISP, showing that it was From: <my personal address>, and To: <my personal
address>. This is the way I wanted it. So far, so good.

I'm now trying out a third-party .Net SMTP component, because I want some
additional functionality that the standard SmtpServer class doesn't offer. I
try sending a message the same way with it and it fails. I'm not sure why.
In the log output, it shows (modified a bit):

[11/9/2004 22:51:19:313]Connecting to localhost (Try 1 of 4)
[11/9/2004 22:51:19:313]-----> EHLO localhost
[11/9/2004 22:51:19:313]<----- 220 MarkNotebook Microsoft ESMTP MAIL
Service, Version: 6.0.2600.2180 ready at Tue, 9 Nov 2004 22:51:19 -0800
[11/9/2004 22:51:19:563]<----- 250-MarkNotebook Hello [127.0.0.1]
[11/9/2004 22:51:19:563]<----- 250-SIZE 2097152
[11/9/2004 22:51:19:563]<----- 250-PIPELINING
[11/9/2004 22:51:19:563]<----- 250-DSN
[11/9/2004 22:51:19:563]<----- 250-ENHANCEDSTATUSCODES
[11/9/2004 22:51:19:563]<----- 250-8bitmime
[11/9/2004 22:51:19:563]<----- 250-BINARYMIME
[11/9/2004 22:51:19:563]<----- 250-CHUNKING
[11/9/2004 22:51:19:563]<----- 250-VRFY
[11/9/2004 22:51:19:563]<----- 250 OK
[11/9/2004 22:51:19:563]Connected
[11/9/2004 22:51:19:563]Addressing the message
[11/9/2004 22:51:19:563]-----> MAIL FROM:<personal mail address>
[11/9/2004 22:51:19:563]<----- 250 2.1.0 <personal mail address>....Sender OK
[11/9/2004 22:51:19:563]-----> RCPT TO:<personal mail address>
[11/9/2004 22:51:19:563]<----- 550 5.7.1 Unable to relay for <personal mail
address>
[11/9/2004 22:51:19:563]Rejected(1): <personal mail address>[11/9/2004
22:51:19:563]There are no valid recipients.
Common remedy: Try using authentication or check the log file for more error
message details.
[11/9/2004 22:51:19:563]-----> QUIT
[11/9/2004 22:51:19:563]<----- 221 2.0.0 MarkNotebook Service closing
transmission channel
[11/9/2004 22:51:19:623]

What I realized later is a lot of this was output from my SMTP server. So I
don't think this is the fault of the component. I found out how to connect
up to the SMTP server myself using telnet. I put in the same commands as
listed above, and got the same result. For whatever reason it's not relaying
the message, and I'm not sure why. I asked the component vendor about this
and they said it had to do with authentication, that the SMTP server wants a
username and password before allowing the message to go through. This
doesn't make sense to me though, because when I used the standard SmtpServer
class in .Net, everything worked fine. It doesn't even have username and
password properties. And I don't understand why sending my messages with the
standard SmtpServer class worked fine and this doesn't. What's the
difference between them?

I've tried looking this up in the MSDN help, and I've found some articles on
the SMTP server relaying messages, but usually they talk about Exchange
Server in conjunction with this, using it to configure the routing. Is there
a way for me to fix this with what I've got?

Thanks

Jul 21 '05 #1
0 1299

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

Similar topics

0
by: David Morgan | last post by:
Hello All Back in the day, when I was up to my elbows in Site Server 3 Commerce Edition, there was a SMTP Component that supported transactions. If the mail could not be delivered the...
5
by: Kevin Harrison | last post by:
Has anyone had any issues repeatedly sending SMTP e-mails from .Net? I have a c# component that gets executed by multiple threads, and uses SmtpMail.Send to send e-mails. Whilst in 80% of cases...
4
by: Elise.D | last post by:
Hi, i have to migrate an old asp classic app into asp.net this application has a mail fonction -- Elise Dupont MVP .Net France
5
by: NorCalVikesFan | last post by:
Does anybody know of any good C# SMTP libraries that do not use System.Web.Mail (i.e. they don't require CDO)? In particular I'm looking for ones that provide the source code, but that are not...
3
by: RN | last post by:
I am tired of sending mail from the built-in SMTP service for so many reasons (errors are nondescriptive in the event log, it doesn't let me control which IP address it sends from, and it...
3
by: Ed Chiu | last post by:
Hello, I have an ASP page which was working fine and broke all of a sudden. It uses SMTPMail to send out email, here is some code snippet: mailObj.From = EmailFrom mailObj.To = EMailTO If...
11
by: Toble Rone | last post by:
Can anyone direct me to an article that explain how to send normal smtp emails from a VB.net windows app?. (i mean, using normal tcp to send the mail) Tnx in advance
2
by: Guoqi Zheng | last post by:
Dear Sir, I am writing a SMTP component. I would like this component to support multilingual because we are using French, English and Dutch. I got the info that I need to use Mime encoding......
0
by: Mark Miller | last post by:
I'm puzzled by this situation. I'm running on Windows XP Pro 2002 SP 2. I started on an ASP.Net project, initially using the standard SmtpServer and MailMessage classes. For testing, I used the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.