Results 1 to 2 of 2

Thread: No Notice to End User When Invalid Email Address Entered

  1. #1
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default No Notice to End User When Invalid Email Address Entered

    For some reason when an invalid email address is entered (space at the end of the email) the email address doesn't save and, more importantly, the user never is notified that it is invalid and failed to save. So they go on thinking that it saved only to go back to it the next day or two to find it not there. Is there a way to get it to please give an error message to the end user? Perhaps adding and using a general error message like:
    PHP Code:
    if(isset($_SESSION['generalError'])){
        
    displayAdminError($_SESSION['generalError']);
        unset(
    $_SESSION['generalError']);

    defined in modules/Administration/DisplayWarnings.php. This could then be used by other processes such as custom logic hooks.

  2. #2
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: No Notice to End User When Invalid Email Address Entered

    If you'd like to add this yourself do the above code change and then in include\SugarEmailAddress\SugarEmailAddress.php in addAddress() add this code:
    PHP Code:

    $GLOBALS
    ['log']->fatal("SUGAREMAILADDRESS: address did not validate [ {$addr} ]");
    /** [IC] show the error to the user, will you!! */
    $_SESSION['generalError'] = "SUGAREMAILADDRESS: address did not validate [ {$addr} ]"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Lead Assignment Notice - Need to Add Email
    By cstearns in forum Help
    Replies: 6
    Last Post: 2011-06-10, 08:23 PM
  2. email address encoding error
    By DeschChris in forum Help
    Replies: 0
    Last Post: 2007-01-10, 07:11 PM
  3. PHP Warnings after install add-in Module
    By kgeving in forum Help
    Replies: 1
    Last Post: 2006-08-08, 05:54 PM
  4. Replies: 0
    Last Post: 2006-07-03, 09:54 AM
  5. Cannot Login
    By Dillon in forum Help
    Replies: 16
    Last Post: 2004-10-13, 02:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •