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

Using SMTP Client

Would I be correct in assuming that the SMTP Client that's part of
..NET 2.0 is incapable of handling MX lookups?

TIA,
Lilith
Sep 11 '07 #1
4 3388
Lilith,

I wouldn't say it is incapable, but rather, it doesn't have to, as the
SMTP server that sends the mail for you will do the actual lookup.

If you have the need to perform an MX lookup, here is an article with
some sample code:

http://www.csharphelp.com/archives/archive43.html

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Lilith" <li****@dcccd.eduwrote in message
news:0v********************************@4ax.com...
Would I be correct in assuming that the SMTP Client that's part of
.NET 2.0 is incapable of handling MX lookups?

TIA,
Lilith

Sep 11 '07 #2
"Lilith" <li****@dcccd.eduwrote in message
news:0v********************************@4ax.com...
Would I be correct in assuming that the SMTP Client that's part of
.NET 2.0 is incapable of handling MX lookups?
You are correct. You have to assign a SMTP server to the SmtpClient, and
this server will do the MX lookup to relay the message. The SmtpClient
doesn't know how to do it by itself.

Sep 11 '07 #3
On Tue, 11 Sep 2007 20:36:53 +0200, "Alberto Poblacion"
<ea******************************@poblacion.orgwro te:
>"Lilith" <li****@dcccd.eduwrote in message
news:0v********************************@4ax.com.. .
>Would I be correct in assuming that the SMTP Client that's part of
.NET 2.0 is incapable of handling MX lookups?
You are correct. You have to assign a SMTP server to the SmtpClient, and
this server will do the MX lookup to relay the message. The SmtpClient
doesn't know how to do it by itself.
Thank you. That actually makes the coding easier. :-)

--
Lilith
Sep 11 '07 #4
On Tue, 11 Sep 2007 14:38:03 -0400, "Nicholas Paldino [.NET/C# MVP]"
<mv*@spam.guard.caspershouse.comwrote:
>Lilith,

I wouldn't say it is incapable, but rather, it doesn't have to, as the
SMTP server that sends the mail for you will do the actual lookup.

If you have the need to perform an MX lookup, here is an article with
some sample code:

http://www.csharphelp.com/archives/archive43.html
Thank you. I'm working on a program that monitors one SMTP server and
sends, potentially, multiple alerts via at least two paths to devices
for notification of problems. Though we have two servers we can use
to relay, I like to write my programs such that if others might find a
need for it, they can use it. But they may not have a relay to depend
on, so it's good to either know the limitations or work around them.

--
Lilith
Sep 11 '07 #5

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

Similar topics

0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
2
by: Mark Carter | last post by:
I'm trying to create a mail server in Twisted. I either get SMTPSenderRefused or SMTPException: SMTP AUTH extension not supported by server. What do I need to do to get it to work?
21
by: Nancy | last post by:
Hi, Guys, Is there any other way to use python or mod_python writing a web page? I mean, not use "form.py/email", no SMTP server. <form action="form.py/email" method="POST"> ... Thanks a lot. ...
1
by: bivin | last post by:
hai i am requesting your technical support. please help me. i have been working with this for five days. the problem is relating with the smtp. i am trying to send an email from the asp.net...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
8
by: Visual Systems AB \(Martin Arvidsson\) | last post by:
Hi! I am trying to send a Mail using SmtpClient on my developer computer. Is it not possible? Do i have to use it on a computer with IIS installed? If it is possible, what should i be...
14
by: sridhar | last post by:
iam having user account on an exchangeserver. with that can i send an email using python? if iam using the following code iam getting error fromAddress = 'sridhar_kasturi@satyam.com'...
3
by: Erik Johnson | last post by:
THE GOAL: I need to send an email with a simple ASCII text body and an attached HTML file. I have scripts that send basic emails via the smtplib module that don't have any attachements and that...
11
by: Ed Bitzer | last post by:
I have been able using the namespace System.Web.Mail and its method Smtp.mail.send to mail simple text messages to a small group within our 55 and older community. I need help expanding the...
3
by: shansivamani | last post by:
using SMTP to send email. is there any settings need to be configured apart from Host name and Port, while sending emails using SMTPClient in .Net? when i try to send mail to ids which has only...
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:
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
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.