error on finding email domain

Ask a Question related to PERL Beginners, Design and Development.

  1. #1

    Default error on finding email domain

    Two ISPs are blocking email from a community service webiste and I
    need to alert users to not sign up using an address at one of these
    ISPs. My program creates errors unless a condition exists. This
    particular error would use this code snippet but I do not know how to
    tell it to read the email address after the @ sign only. Here is what
    I have:

    unless ($form{'EMAIL'} != verizon.net || gte.net);

    Will this work or must I some how chomp off everything from the @ sign
    to the beginning?


    Butch
    Butch Guest

  2. Similar Questions and Discussions

    1. error finding files
      Warning: main(../includes/topNav.inc): failed to open stream: No such file or directory in...
    2. Domain error
      I'm receiving a domain error while processing the following query. I am using CFMX 6.1 and MS SQL 2005. Any help is greatly appreciated. -Andy ...
    3. Can't email to same domain?
      I am using the CF admin to email from my app using CFMAIL just fine, unless I email to the same domain my email server is on. Then the email just...
    4. Looking for module that will expands domain/username to email address
      Hi, Is that any perl module that If I enter domain/username that will return that user email address/ expands to the user email address? For...
    5. Error finding 'System.Web.UI.Page"
      Hi All, I've successsfully installed VS.net 2003 and when i execute any ASP.NETR application it gives following error. Visual Studio was...
  3. #2

    Default Re: error on finding email domain

    You could use a regex and do something like this.

    unless ($form{'EMAIL'} !~ /^[a-z0-9\.-]+\@verizon.net$/ || $form{'EMAIL'} !~
    /^[a-z0-9\.-]+\@gte.net$/
    ....

    The better solution would be fix the reason they are blocking the site.

    -Shawn


    "Butch" <webmaster@2clones.com> wrote in message
    news:1921f571.0401131500.3ccdef59@posting.google.c om...
    > Two ISPs are blocking email from a community service webiste and I
    > need to alert users to not sign up using an address at one of these
    > ISPs. My program creates errors unless a condition exists. This
    > particular error would use this code snippet but I do not know how to
    > tell it to read the email address after the @ sign only. Here is what
    > I have:
    >
    > unless ($form{'EMAIL'} != verizon.net || gte.net);
    >
    > Will this work or must I some how chomp off everything from the @ sign
    > to the beginning?
    >
    >
    > Butch

    Shawn Scott Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139