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

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 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
3 2841
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: VB Programmer | last post by:
I have an ASPX page where I send out emails through my mail server mail.MyDomain.com. When I send emails to MyName@MyDomain.com it sends PERFECTLY. When I try sending an email to any other address...
2
by: VB Programmer | last post by:
I'm encountering an error whenever I try to email people not in my domain. I get this error: The server rejected one or more recipient addresses. The server response was: 550 You must check...
6
by: Eduardo Rosa | last post by:
Somebody knows how I queue email using .Net? thanks a lot
9
by: B-Dog | last post by:
I've built a small app that sends mail through our ISP's SMTP server but when I try to send through my local exchange server I get CDO error. Does webmail use SMTP or does it strictly rely on...
6
by: Anuradha | last post by:
Dear All How can i send mails using vb.net Thanx all
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...
7
by: Ray Booysen | last post by:
Hi all I'm sending email via ASP.NET in HTML mode. Each email has exactly one attachment and I do have full access to the SMTP server. However, if I send the email in HTML format, the...
3
by: armando perez | last post by:
Hi, this is my first time here, but I was looking for something that may help me, and still, I haven't found something to use. I'm using a website made in .NET with C#, when I'm running my site...
2
by: =?Utf-8?B?QWRl?= | last post by:
HI All, I am encountering the following error when I try to send an email through a SMTP server. I believe the problem lies with the authentication part when the network crednetials are used,...
9
by: JoeP | last post by:
Hi All, How can I find the reason for such an error: Failure sending mail. Some Code... oMailMessage.IsBodyHtml = False oMailMessage.Body = cEmailBody Dim oSMTP As New SmtpClient...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.