Solved

Cfmail error with email address with space in it.

Posted on 2004-08-05
3
315 Views
Last Modified: 2013-12-24
As far as I know CompuServe And AOL accounts can have a space in the username/email address, but when you use CFMail to send an email to one of these accounts that have a space in it, CFmail will display an error?
0
Comment
Question by:hansam
3 Comments
 
LVL 21

Expert Comment

by:pinaldave
ID: 11731511
Hi hansam,
that is true. It will show an error. I do not see any way around.
I used iMS mail server for the same reason as we had to sent email to the addresses which had AOL accounts. You can get that from www.coolfusion.com it is fun and very easy. I have personally used it sucessfully.
Regards,
---Pinal
0
 
LVL 6

Accepted Solution

by:
PE_CF_DEV earned 125 total points
ID: 11734712
No email address has a space in it, but AOL compuserve users can have Usernames with spaces in it, the fact of the matter is that spaces are no accounted for in email addresses so S P A C E@n a s a.c om is the same as space@nasa.com. Unfortunetly though instead of ignoring spaces Macromedia's Coldfusion, I am not sure about Blue Dragon, throws an error. The fix is very simple though, just do #replace(emailadress,' ','','all')# and everything works out and users are completely unaware of thier misconception of what thier email adress really is.
0
 
LVL 35

Expert Comment

by:mrichmon
ID: 11736360
Space is NOT a valid character in an email address.  If the username has spaces then it is one of two things :

1) As PE_CF_DEV mentioned the email is the username with spaces removed
2) They have a separate email address from the username.

You should validate email addresses as they are entered and prevent people from entering spaces.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how to enable php7 module in nginx configuration file 8 463
assigning port numbers to web sites and web services 2 78
Use System DSN 6 89
UPLOAD FILE TO Web API USING POST 5 125
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question