473,382 Members | 1,329 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.

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

Nov 22 '05 #1
0 860

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

Similar topics

15
by: Steven Burn | last post by:
My server has POP but only has SMTP if sending to my domain, and not other domains (such as hotmail). I'm therefore wondering, if anyone knows of any scripts etc, that will allow me to have a sort...
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
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...
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: 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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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.