473,503 Members | 3,721 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET 2.0 MailAddress does not support all valid email addresses

1 New Member
I ran into a strange problem today. I tried to send mail to a strange but valid email address, but the MailAddress("") object choked on me. It threw a formating exception saying it was not a valid email address.

homer-..-sim-..-pson@sympatico.ca

This is not the a real account, but is a valid email address according to RFC2822
http://www.ietf.org/rfc/rfc2822.txt

I think that the two dots together are what is messing it up. Has anyone else experienced this and has a work around for ?

Thanks,
Apr 25 '07 #1
1 1371
TRScheel
638 Recognized Expert Contributor
I ran into a strange problem today. I tried to send mail to a strange but valid email address, but the MailAddress("") object choked on me. It threw a formating exception saying it was not a valid email address.

homer-..-sim-..-pson@sympatico.ca

This is not the a real account, but is a valid email address according to RFC2822
http://www.ietf.org/rfc/rfc2822.txt

I think that the two dots together are what is messing it up. Has anyone else experienced this and has a work around for ?

Thanks,
If this is in C# try this ( I dont know how to do it in VB... or if you even need to)

string MailTo = @"homer-..-sim-..-pson@sympatico.ca";

And then use the MailTo string. See if that fixes it.
Apr 25 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

16
8079
by: siliconmike | last post by:
Hi, I'm looking for a reliable script that would connect to a host and somehow determine whether an email address is valid. since getmxrr() only gets the mx records.. Links/pointers ? Mike
2
3312
by: Hoang | last post by:
anyone know of an algorithm to filter out real email addresses as opposed to computer generated email addresses? I have been going through past email archives in order to find friends email...
12
2285
by: Fred Pacquier | last post by:
First off, sorry for this message-in-a-bottle-like post... I haven't been able to phrase my questions well enough to get a meaningful answer from Google in my research. OTOH, it is standard...
11
2420
by: Phil Amey | last post by:
In a web based form I am able to make sure that there is text in an input field but I want to force the user into inputting a valid email address, one that has @ in the address How can I modify...
13
1961
by: Jenny | last post by:
Hi All, I have this code. When I type in jenny@ebay.com, it should run alert("Thanks for your interest.") line. But it does not. Why and how can I correct it? I use IE 6 with windows xp....
24
3762
by: David Mathog | last post by:
If this: int i,sum; int *array; for(sum=0, i=0; i<len; i++){ sum += array; } is converted to this (never mind why for the moment):
16
14856
by: gdodd10 | last post by:
Hello, I am putting email function into a web app I am making using C#. I am struggling to find out the proper format for the string of To email addresses. I want to put multiple addresses in the...
11
1546
by: sgadag | last post by:
Even if "a" is NULL in the assignment below, this assignment does not cause any AV: SOME_PTR * someVar = (SOME_PTR *) a->b; But something like this will cause an AV because "someVar" is...
89
5947
by: Cuthbert | last post by:
After compiling the source code with gcc v.4.1.1, I got a warning message: "/tmp/ccixzSIL.o: In function 'main';ex.c: (.text+0x9a): warning: the 'gets' function is dangerous and should not be...
0
7261
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
7315
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...
1
6974
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
7445
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...
1
4991
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
4665
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
3158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1492
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.