Home All Groups Group Topic Archive Search About

.NET C++ SMTP question

Author
27 Jul 2006 11:40 PM
hedbonker
I have been asked to do the following:

Create an application that will take an e-mail address entered by the
user into a field and, once a button is clicked, will take that e-mail
address and check it against the mail server for that address using
SMTP to determine if it's a valid or invalid mailbox.

Can anyone suggest a resource for doing the SMTP checking?

Author
27 Jul 2006 11:54 PM
Peter Ritchie [C# MVP]
If I remember correctly, the following article on CodeProject.com covers this
exact thing:
http://www.codeproject.com/aspnet/Valid_Email_Addresses.asp

--
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#


Show quote
"hedbon***@gmail.com" wrote:

> I have been asked to do the following:
>
> Create an application that will take an e-mail address entered by the
> user into a field and, once a button is clicked, will take that e-mail
> address and check it against the mail server for that address using
> SMTP to determine if it's a valid or invalid mailbox.
>
> Can anyone suggest a resource for doing the SMTP checking?
>
>
Author
28 Jul 2006 12:32 AM
hedbonker
Yes it does, Peter.  Now to figure out how to convert that C# to C++ :(

Thank you very much for the response though!

Peter wrote:
Show quote
> If I remember correctly, the following article on CodeProject.com covers this
> exact thing:
> http://www.codeproject.com/aspnet/Valid_Email_Addresses.asp
>
> --
> Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
> http://www.peterRitchie.com/blog/
> Microsoft MVP, Visual Developer - Visual C#
>
>
> "hedbon***@gmail.com" wrote:
>
> > I have been asked to do the following:
> >
> > Create an application that will take an e-mail address entered by the
> > user into a field and, once a button is clicked, will take that e-mail
> > address and check it against the mail server for that address using
> > SMTP to determine if it's a valid or invalid mailbox.
> >
> > Can anyone suggest a resource for doing the SMTP checking?
> >
> >
Author
28 Jul 2006 12:52 AM
Peter Ritchie [C# MVP]
You could simply load the compiled application into Reflector and disassemble
it into C++.  http://www.aisto.com/roeder/dotnet/  If you're looking for
C++/CLI there's an add-in for Reflector for that. 
http://www.mybadhairday.com/cppclireflector.html

There's also a tool that will convert C# code to C++ and vice versa (or VB).
http://www.tangiblesoftwaresolutions.com/

--
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#


Show quote
"hedbon***@gmail.com" wrote:

> Yes it does, Peter.  Now to figure out how to convert that C# to C++ :(
>
> Thank you very much for the response though!
>
> Peter wrote:
> > If I remember correctly, the following article on CodeProject.com covers this
> > exact thing:
> > http://www.codeproject.com/aspnet/Valid_Email_Addresses.asp
> >
> > --
> > Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
> > http://www.peterRitchie.com/blog/
> > Microsoft MVP, Visual Developer - Visual C#
> >
> >
> > "hedbon***@gmail.com" wrote:
> >
> > > I have been asked to do the following:
> > >
> > > Create an application that will take an e-mail address entered by the
> > > user into a field and, once a button is clicked, will take that e-mail
> > > address and check it against the mail server for that address using
> > > SMTP to determine if it's a valid or invalid mailbox.
> > >
> > > Can anyone suggest a resource for doing the SMTP checking?
> > >
> > >
>
>

AddThis Social Bookmark Button