Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Email Conditions Reject Emails with Hyphen

  1. #11
    Join Date
    Apr 2009
    Location
    Fort Worth, Texas
    Posts
    2

    Default Re: Email Conditions Reject Emails with Hyphen

    I was able to get it to work by putting the "-" at the end of every list in the [ ... ] , instead of at the beginning as recommended previously.

    Here is how I edited it, note the red below:


    <input type="hidden" name="conditions" value=":# #IF#email#email ~ /^[a-z0-9_.-]+@[a-z0-9_-]+\.([a-z0-9_.-]+)*[a-z0-9_.-]$/i ## Please enter a valid email address.#">

  2. #12
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Email Conditions Reject Emails with Hyphen

    that's weird.

    wot version of PHP are u running?

    and wot error mesg were u getting with the - at the beginning?

  3. #13
    Join Date
    May 2013
    Posts
    1

    Default Re: Email Conditions Reject Emails with Hyphen

    I tried Outofnowhere's code and instead of an email validation error, I got a vague error message:

    The following error occurred in FormMail :
    mail_failed
    **********
    Error=Failed to send email

    I'm quite stumped by it, I've tried different ways of inserting the hyphen and I always get this error message.

    Thanks in advance for any insight on this issue.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. sending me two emails
    By srolls in forum FormMail Subscription Support
    Replies: 2
    Last Post: 20-Sep-2004, 11:15 PM
  2. no emails being sent
    By dunn123 in forum FormMail Subscription Support
    Replies: 1
    Last Post: 13-Sep-2004, 12:19 PM
  3. Help with mail_options and conditions
    By wufpack00 in forum FormMail Subscription Support
    Replies: 2
    Last Post: 06-Jul-2004, 12:49 AM
  4. only two emails every ten minutes?
    By vynsane in forum FormMail Subscription Support
    Replies: 4
    Last Post: 26-May-2004, 09:00 PM
  5. not receiving emails
    By ctpiper in forum FormMail Subscription Support
    Replies: 1
    Last Post: 22-Apr-2004, 09:29 PM

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
  •