Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

October 13, 2005

Format of Email Address

Question:

I have a question regarding this property. I am under the impression that the input string for this property must be in the order "John Smith john.smith@abc.com"

Is it possible to have a 3 or 4 word name followed by an e-mail address, for example: "Great ABC Hospitals info@abc.com"

My initial testing would tell me no, is there a workaround??

Answer:

The string should be formatted like this:
"Great ABC Hospitals "

You may set the FromName and FromAddress properties separately as well:

emailObject.FromName = "Great ABC Hospitals"
emailObject.FromAddress = "info@abc.com" — with or without angle brackets.

or

emailObject.From = "Great ABC Hospitals "


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.