By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,214 Members | 2,099 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,214 IT Pros & Developers. It's quick & easy.

Sending Email with System.Net.Mail

P: n/a
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 jo******@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 jd**@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
May 30 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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" <ph****@softwareforever.comwrote in message
news:0E**********************************@microsof t.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 jo******@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 jd**@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

May 30 '07 #2

P: n/a
"Philip" <ph****@softwareforever.comwrote in message
news:0E**********************************@microsof t.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 jo******@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 jd**@yahoo.com...everything works fine.
Hmm - please provide the code you are using...
--
http://www.markrae.net

May 30 '07 #3

P: n/a
The MailMessage format changed a bit :

Dim FromAddress As String = "so*****@somewhere.com"
Dim ToAddress As String = "so**********@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 español : http://asp.net.do/foros/
======================================
"Philip" <ph****@softwareforever.comwrote in message
news:0E**********************************@microsof t.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 jo******@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 jd**@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

May 30 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.