Welcome Guest Search | Active Topics | Log In | Register

Exception when an invalid email address is entered when registering Options · View
MicScoTho
#1 Posted : Tuesday, October 14, 2008 1:45:38 AM

Rank: YAF Developer




Joined: 8/7/2006
Posts: 71
Location: Boston, MA
1. Ensure email verification is on
2. Register as a new user and enter a bogus value for the email address
3. You will receive the following exception:

FormatException: The specified string is not in the form required for an e-mail address.

\pages\register.ascx.cs
Code:
Line 300:                verifyEmail.SendEmail( new System.Net.Mail.MailAddress( email, user.UserName ), subject, true );


I think we should do simple, basic email address validation when registering, regardless of whether email verification is on or not. Otherwise, users will probably receive this same FormatException if they try to send an email to a user with an invalid address.


I'd fix this myself, but I don't have time at the moment. Smile
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFPro Theme Created by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.3 RC2 | YAF © 2003-2008, Yet Another Forum.NET
This page was generated in 0.050 seconds.

SourceForge.net Logo Powered by ASP.NET v2.0 411ASP.NET