Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Asp.Net Programming

Sending Email with System.Net.Mail


I switched from System.Web.Mail to System.Net.Mail, however I am now
reconsidering that move because if I send an email to an email address in the
form john.@yahoo.com, I receive an error message "The specified string is
not in the form required for an e-mail address".  I have conducted further
testing and evidently the SmtpClient class Send method does not like the
period "." between the "john" and "doe".   If I conduct a test with an email
address in the form j@yahoo.com...everything works fine.

This is a showstopper for me... if I am using System.Net.Mail to inform
e-commerce customers of post-purchase activity. I can never predict when I
may encounter a non-conforming email address.

Does anyone know whether a fix is available to System.Net.Mail ???

Philip

--
Philip

What is your syntax for providing the email address?
It's not the same syntax as it was in the older version

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://iWritePro.com

"Philip" <phi@softwareforever.com> wrote in message

news:0E2BC514-3C9A-4ED5-B8AC-D0D1ABE25CAC@microsoft.com...

"Philip" <phi@softwareforever.com> wrote in message

news:0E2BC514-3C9A-4ED5-B8AC-D0D1ABE25CAC@microsoft.com...

>I switched from System.Web.Mail to System.Net.Mail, however I am now
> reconsidering that move because if I send an email to an email address in
> the
> form john.@yahoo.com, I receive an error message "The specified string
> is
> not in the form required for an e-mail address".  I have conducted further
> testing and evidently the SmtpClient class Send method does not like the
> period "." between the "john" and "doe".   If I conduct a test with an
> email
> address in the form j@yahoo.com...everything works fine.

Hmm - please provide the code you are using...

--
http://www.markrae.net

-----------------------------------------------Reply-----------------------------------------------

The MailMessage format changed a bit :

    Dim FromAddress As String = "some@somewhere.com"
    Dim ToAddress As String = "someone.e@somewhereelse.com"
    Dim mail As New MailMessage(FromAddress, ToAddress)

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
======================================

"Philip" <phi@softwareforever.com> wrote in message

news:0E2BC514-3C9A-4ED5-B8AC-D0D1ABE25CAC@microsoft.com...

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc