Menu

No Email Notification

Help
2005-11-03
2013-06-03
  • bomanibomani

    bomanibomani - 2005-11-03

    I totally stumped. . . I've checked my folder permission and I've checked the process.php file. . . and still no email notification when user submits form. I'm having submitted forms go to my hotmail account. . . . nothing ever arrives. Yes, I've checked my junk mail. . . . Help

     
    • TNTEverett

      TNTEverett - 2005-11-03

      First, your host must support the mail function from your php files. 
      Second, your process.php file should include the code necessary to create the email ($message).
      Third, the process.php file must include the correct mail function syntax. 
      mail("youremailaddress","Form Submitted at your website",$message,"From: phpFormGenerator");
      Check to see if your host account has a web mail application for your email accounts.  Check the outgoing mail folder to see if there is any evidence of outgoing mail. 
      Check with your host, ask if they can provide an error log from your account to see if there is any evidence of the email activity and if so what the error might be. 

       
    • bomanibomani

      bomanibomani - 2005-11-03

      Thanks for the quick response and guidance.
      I thought I could have the form email the notification directly to my Hotmail account. But when I changed the Process.php mail function syntax to send the notification to my host email account it worked. I just thought I could avoid having to send the notification to my host account, then have the host account forward email to my hotmail account. But I guess not. So. . . it's working now. Thanks !

       
    • TNTEverett

      TNTEverett - 2005-11-03

      Must have been a typo because it's possible to use any valid email address. 

       
    • bomanibomani

      bomanibomani - 2005-11-03

      well . . .i checked the typing, but it didn't work still. I did have to change the process.php file in two places. 1 was in the forms folder and the 2nd was in the usersemail folder i created

       
    • bomanibomani

      bomanibomani - 2005-11-03

      Can the email contain special characters such as "_" ? Maybe that was the issue?

       
    • bomanibomani

      bomanibomani - 2005-11-03

      I ask because when I enter an email that contains the character "_" in the user form for submission, I get an error saying that the email address is invalid.

       
    • TNTEverett

      TNTEverett - 2005-11-03

      If you know your "regular expression syntax" this is the check for valid email addresses:
      if(!eregi("^[a-z0-9]+([_\\.-][a-z0-9]+)*" ."@"."([a-z0-9]+([\.-][a-z0-9]+)*)+"."\\.[a-z]{2,}"."$",$EmailAddress)){
      $error.="<li>Invalid email address entered";
      $errors=1;
      }
      Must begin with any number or letter, can then have _ or . or - followed by any number or letter, then hte @ symbol, then again any number or letter, then _ or . or -, then a ., then any letter. 
      Spaces are bad, but can be stripped using this line just prior to the check:
      $EmailAddress=trim($EmailAddress);

      Hope this helps.

       
      • bomanibomani

        bomanibomani - 2005-11-03

        OK. . . how do I modify that code to accept email addresses such as     bomani_@hotmail.com ?

         
        • TNTEverett

          TNTEverett - 2005-11-03

          Can be done but probably not a good idea to have this as a name anyway.  The email address syntax checking in process.php is "typical".  If you don't want to be excluded by others I suggest you follow the "norm". 
          In any case:
          if(!eregi("^[a-z0-9]+([_\\.-]+)*" ."@"."
          Note the change right after the [_\\.-] part.  Don't forget the rest of the line of course. 
          This should satisfy your example email address anyway. 

           
          • bomanibomani

            bomanibomani - 2005-11-03

            ok thanks. . .i'll probably leave the code alone. . . especially since it's my email addie. I originally came up with that email to minimize spam.

             

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.