Validate email address (check SMTP)

Hello

When a member joins our website, an email is sent confirming the registration. Few of them are non-existent email addresses.
I would like to know if there is a way to validate an email address in coldfusion (check SMTP) without sending an email to the recipient so that we have legitimate email. This procedure is necessary to prevent our being on the list of spam IP. We have control of the string using regular expressions.

Help much appreciated

Thank you

Mottakutty

Oh hang on, hang on I got to use it:

"I think you misunderstand, Adam" - Note the use of the comma

OP - you say you want to do a check of SMTP (this means to connect to the mail server and verify that the account exists) but then talk about regular expressions to validate the string passed to you according to the RFC? It's two things.

First to have as Adam said, you can validate the e-mail address using CFINPUT and once again on the server side using the isValid(). By the way, isValid ("email") is actually full of bugs, if you read the email address RFC, which unfortunately, I had only once.

However if you really want to test whether or not address exists on the mail server, there is no way to do this using CF. you could (if you were clever enough to Java) write yourself some classes which collect MX records for a domain, and then telnet to it. Basis conversation SMTP would you:

220 remoteserver.something.com Microsoft ESMTP MAIL Service

HELO yourdomain.com

250 remoteserver.something.com Hello

MAIL FROM:[email protected]

250 2.1.0 [email protected]... Sender OK

RCPT TO:[email protected]

550 5.7.1 unable to relay for [email protected]

Unless you get a 250 in response to your RCPT TO command, it is an invalid account.

However.

There really no need to go that far in order to validate the account. Much easier is to send an e-mail of confirmation with a link that you must click to verify their account.

Sending e-mail to a non-existent address is * not * take you spam blocklists. The only thing that you is if you send email to one honeytrap put people like Messagelabs email accounts up. Nobody knows specifically what these are (because that would go against the point), but they are only ever affected if you just choose a domain name and to mass-mail each e-mail address prefix you can think of the hope of the sticks. Nobody will come to your website and enter one of these e-mail addresses.

I suspect that you already do enough to make sure you aren't on blacklists. Usually you only end up one if your mail server sends spam, things are a lot smarter these days.

Tags: ColdFusion

Similar Questions

  • How to validate email address syntax?

    Hello

    I want to check the email address to make sure that users are sign up with an email from a particular area

    i.e. don't allow [email protected] or [email protected] but not [email protected]

    Can someone please tell me how and if this can be achieved by using the MEASUREMENT and PHP?

    Thank you very much

    Gary

    Hello

    Yes, it can be done. At the end of most of the assistants is the possibility for validation. Usually when choosing an email you would choose email address, but that would make [email protected] because you want it to be specific, you need choose the regular Expression, then add your expression to the field.

    Something like this would work as a regular expression.

    [a-zA-Z] [a-zA-Z0-9]*[@]mydomain\.com

    Regular expressions as:

    http://www.regular-expressions.info

  • Name of the SMTP for my email address is incorrect, but I don't know how to correct it. Help!

    Two of my email address appear to have been joined. When I try to send an e-mail to the address of problem asked me my password but the ID in the SMTP application shows jerrhrt27 when the real address is jerryeg27. No idea how it was changed or where I can correct. This is a yahoo email address and I can send emails from there without a problem.

    you have now created a second smtp and they both correct
    Username which is the same as the email address they serve.

    Check the saved passwords to see if there is a saved inccorrect parameter.
    Tools > Options > Security > passwords tab

    • Click on 'Saved password'
    • There should be two entries for smtp. How do you think?
    • Is there a smtp: / / setting for the wrong username?
    • If so, then select it and click on 'Remove' and then click 'close '.

    Then check the config Editor settings.

    • Click on "Advanced" > "Général" tab
    • Click on the button "Config Editor"
    • He will tell you to be careful.
    • At the top of the search page: jerryhrt27
    • What is displayed in the list?
    • Please post a picture of the results.

    Close this window - top right of X.
    Click OK to save and close the Options.

  • Imported contacts have SMTP with the name of the recipient after the email address and cannot be sent.

    I imported my contacts from Outlook, from a CSV file. In the e-mail section, I get the name, sometimes with "and after the email address, I get SMTP and the email again. Of course, it cannot be sent. What I have to go through all my addresses and change each of them, or is there a better way?
    Example: My e-mail address appears as follows: [email protected] SMTP Hoogeveen,.
    In some I get quotes here and there, or.

    I would suggest to edit the CSV file and import again. Much easier than the use of the address book to do. Have a look herewhere I discuss editing CSV in a spreadsheet.

  • Periodically check my email address belongs to me?

    I got an email presumably Apple should I click on "check" to check my email address belongs to me.  He said that if I did not click above and connect with my Apple ID and password, I am not able to use the Apple ID or have access to some Apple systems.  This looks like a phishing scam.   Is it really of Apple, and why is it necessary?

    This looks like a phishing scam.

    This is because it is a phishing scam.

  • Someone uses another SMTP relay and then using my email address to send spam.

    Someone uses another SMTP relay and then using my email address to send spam. They have no access to my hotmail otherwise I see on sent items. I can see the SMTP server on the header. What should do?

    They send SPAM to some of my contacts.

    Someone uses another SMTP relay and then using my email address to send spam. They have no access to my hotmail otherwise I see on sent items. I can see the SMTP server on the header. What should do?

    They send SPAM to some of my contacts.

    Not a question for the forum of Virus and malware/scanning software and removal of threats.

    A moderator will move your post to the Forum Microsoft Account, Hotmail, Skydrive.

    http://ask-Leo.com/my_contact_list_is_getting_spam_from_me_what_do_i_do.html

  • I downloaded and installed creative cloud with an email address, and when I open it, it says that I need to check an old different email address that no longer exists. What should I do

    I downloaded and installed creative cloud with an email address, and when I open it, it says that I need to check an old different email address that no longer exists. What should I do

    Follow the procedure below:


    N ° 1)

    Launch the Task Manager and end all Adobe related tasks such as Creative cloud, CoreSync, AAMUpdater... etc.


    Step 2)

    Press Windows button (located between Ctrl and Alt buttons) with the key R together at once, you will get a command window.

    Type below command and press the enter"" key.

    AppData

    It will open the Appdata folder.

    Then navigate to local > Adobe > OOBE. Open the OOBE folder and delete the file " Opm.db".

    Once you had deleted the Opm.db file, run Adobe Creative Cloud application and check.

  • I opened creative cloud and it says that I must check mi email address... I already checked it!

    So, I'm trying to install Illustrator trial cloud but creative continues to tell me that I need to check the email address of mi, but I already have and in my account page it says that it is verified and it keeps telling me to do and cannot install anything

    I already rebooted the computer...

    < image has been deleted by the moderator >

    Hello

    We've checked your account details, I wish to inform you that all is well with your account.

    I would ask to connect with a correct email address. The area of the screenshot says * @ otmail.comg. However, it is supposed to be hotmail.com.

    Rename the following file to connect to cloud creative app.

    1 Opm.db to Opm.db_old.

    2. location: C:\Users\[Username]\AppData\Local\Adobe\OOBE.

    3. start the creative cloud app, connect to it with correct email.

    Please come back if the problem persists.

    Thank you

    Atul Saini

  • I had my hacked email. I deleted the email address on the SMTP server, but Thunderbird is not allowing me to remove the hacked e-mail address.

    I had my email "[email protected]" pirate. I deleted the email address on the ISP e-mail server and created a new email "[email protected]" - without the H immediately after John.
    Thunderbird, I added the new email address (see table).
    However, every time I try and send an email, Thunderbird ask again me the password to the original email.
    How to make the new e-mail, the primary e-mail address / default and delete old email marked in bold on the seal - which I suppose is the right course of action?

    Concerning

    John Halsted

    Enter the account settings.

    Select the new address to be the default.
    All at the bottom of the list of accounts in the left side is account Actions.
    Under this menu is to set as default.

    FYI: The display of your e-mail is that a public forum is the best way to provider of this info to hackers. I edit this info and refrain from publishing personal information in the future.

  • Why all of a sudden I saw me "email address to verify your Apple ID email address must be verified before you can connect. "Please check the address below or choose another address to use as Apple ID" when I try to log in icloud

    Hi all - can anyone help with this?

    I have not changed anything, and when I try to enter my e-mail address Apple ID it tells me 'this e-mail address is already used as an alternate email address. Delete this e-mail from your e-mail address and try again.

    This is my Apple ID no alternate mail.

    I hope that all makes sense.

    Thanks for your help!

    Many people receive messages updating passwords and others. It seems that Apple has been strengthening security. I had to update my Apple ID and then I received messages whenever I logged on other devices to do the same. Then for weeks, then the system is far from ideal. Just this morning iCloud again requested authentication. Unfortunately there is little you can do. If you have an e-mail address, sign in to iCloud with it. If this does not call the Apple Support and let them guide you through it.

    Contact - Support official Apple

  • Inscription: How could it be pretty darn difficult. The site says: "your email address could not be validated; "Make sure your email is correct and click on register below. I have never validated. S, I register without the possibility to validate. What th

    I tried to register with support, but:
    "Your email address could not be validated; Make sure your email is correct and click on register below. »
    Action: I did.
    Answer: The same. How the H box you confirm if this was not possible.

    This has happened

    Don't know how many times

    is now

    Sign up here and you should be sent a link to the email you provided. If you have not provided an email address valid or an email that has not been used to create a.

  • When you send Send, how can you check the email address that you sent?

    When you send to send 3 people how do you verify the email addresses you sent to? He States × E-mail more example 3 firs

    Simply open/preview of the file. More to the right in played by, you should see all the email addresses to which you sent the file.

    See: Acrobat.com help | With the help of Adobe Send

  • Validate the format of an email address?

    I have a text field in which the user has entered an e-mail address.  Does anyone have a model validation which will ensure that the e-mail address is correctly formatted?   He didn't say if it is a valid email address...

    There is a built-in for this JavaScript method. He called "eMailValidate" and can be used in a custom validation script. If you want an example of script, post again.

  • Thunderbird won't find my new email address of eyelid Media

    Hello

    I use /thunderbird ver 38.3.0

    My first email address is Virgin Media and works very well.

    The other day I created a second VM address - and Thunderbird will not find it. I get this error message indicated in the attached screenshot (the new address works in webmail).

    Any ideas please?

    Regards, Phil Cook

    To set up your new email account:

    File > new > account mail Exisitng
    or
    Icon of the menu > new message > e-mail account

    Enter your name
    Enter full e-mail address @virginmedia
    Enter the password - same one you use to access webmail
    Click on the continue"" button.

    Thunderbird will try to locate the server settings.
    Make sure that IMAP has been selected.
    Check the settings of the server.
    Click "Manual Setup".
    It must be said:
    Entrants: IMAP,
    Name of the server host = imap.virginmedia.com,
    port 993
    Outgoing: SMTP
    Name of the server host = smtp.virginmedia.com,
    Port: 465

    Make sure that the host name of the server is correct.

    Click on're-test '.
    If ok, click 'Done' to create the email account.

  • Why the in email Email Address' infected are hidden

    OK, this is a follow-up question to a previous post entitled "how to see the emails infected."

    After receiving an e-mail usurped supposedly from a friend, I decide to examine the email address the email was sent by.

    So I click 'Reply to all' but have no intention on send to anyone.

    I then double-click each email address and page properties 'add a contact' pulls up (but I have no intention to add the contact to mine)

    All except an email address, there was 1 standard email address which can be seen in the "personal e-mail" field

    But on one of the email, not only is there the standard in the field 'email' personal e-mail, but another in the "work email" field

    The field of work email has the address of: * e-mail address is removed from the privacy *.

    In other words, one e-mail address in the field "To" a 2 address bound to it, while others have only the address of a.

    So I find the work email address and found that her from somewhere in paris france and perhaps the source of identity theft.

    But here's the issue at hand:

    How does a secondary address we hidden?

    So I checked the e-mail property page and the line 'To' only the standard e-mail in it, as in the e-mail message.

    But there is no sign of this secondary "work email" on the line "to".

    The only clue I have is on the E-mail property page:

    Received: from [182.68.206.9] (helo = smtp.online .net)
    by smtpauth - .net vit.online with esmtpa (Exim 4.80)
    (envelope - from <*** email="" address="" is="" removed="" for="" privacy="" ***="">)
    ID 1Yrk7w - 00015t - Er; Monday May 11, 2015 11:35:56 + 0200

    Does anyone have any ideas as to how an e-mail address within the line 'to' can have both a personal and professional but only staff address is visible?

    You may provide me with an example.

    Is your intention to acquire the skills to do it yourself?

    There are a lot more to an e-mail message that you can see in the header block. Each letter has a certain structure which you can study on Wikipedia while searching for keywords such as MIME. Here is an example. By not following the regulatory structure, spammers can generate different effects that can be detected by virus filters so they can mark it as spam. You can examine the raw content of an e-mail message with tools such as getmail.exe. Get ready to devoted considerable time to the effort.

    Return-Path:<*** email="" address="" is="" removed="" for="" privacy="" ***="">
    Delivered-To:<*** email="" address="" is="" removed="" for="" privacy="" ***="">
    Received: from mx3.mail.xcom.com ([212.60.46.102])
    by mbox5.mail.xcom.com (Dovecote) with LMTP id 10ciFvx7RVUkggAAseoyOg
    for <*** email="" address="" is="" removed="" for="" privacy="" ***="">; Sunday May 3, 2015 03:38:34 + 0200
    Received: from mailgw.webways.com (mailgw.webways.com [213.239.249.23])
    by mx3.mail.xcom.com (Postfix) with ESMTP id 72D558054B
    for <*** email="" address="" is="" removed="" for="" privacy="" ***="">; Sunday May 3, 2015 03:38:34 + 0200 (CEST)
    Received: from localhost (localhost [127.0.0.1])
    by mailgw.webways.com (Postfix) with ESMTP id 345513B 19
    for <*** email="" address="" is="" removed="" for="" privacy="" ***="">; Sunday May 3, 2015 03:38:34 + 0200 (CEST)
    X-Virus-analysis: by amavisd to mailgw.webways.com
    Received: from mailgw.webways.com ([127.0.0.1])
    by localhost (mailgw.webways.com [127.0.0.1]) (amavisd-new, port 10024)
    with LMTP id 2725XERy1k2L for <*** email="" address="" is="" removed="" for="" privacy="" ***="">;
    Sunday May 3, 2015 03:38:33 + 0200 (CEST)
    Received: by mailgw.webways.com (Postfix, from userid 500)
    ID 677B43B1B; Sunday May 3, 2015 03:38:33 + 0200 (CEST)
    X - sieve: drawers sieve 0.4.1
    X sieve-redirected-From: * e-mail address is removed from the privacy *.
    Delivered-To: * e-mail address is removed from the privacy *.
    Received: from localhost (localhost [127.0.0.1])
    by mailgw.webways.com (Postfix) with ESMTP id 553BB3B1A
    for <*** email="" address="" is="" removed="" for="" privacy="" ***="">; Sunday May 3, 2015 03:38:33 + 0200 (CEST)
    X-Virus-analysis: by amavisd to mailgw.webways.com
    Received: from mailgw.webways.com ([127.0.0.1])
    by localhost (mailgw.webways.com [127.0.0.1]) (amavisd-new, port 10024)
    with LMTP id 6X1qVxKKEDpl for <*** email="" address="" is="" removed="" for="" privacy="" ***="">;
    Sunday May 3, 2015 03:38:32 + 0200 (CEST)
    X-Original-Helo: wat.watadkitoko.com (iRedMail: http://code.google.com/p/iredmail/)
    Received: from wat.watadkitoko.com (wat.watadkitoko.com [192.254.195.63])
    by mailgw.webways.com (Postfix) with ESMTPS id 3B9813B19
    for <*** email="" address="" is="" removed="" for="" privacy="" ***="">; Sunday May 3, 2015 03:38:32 + 0200 (CEST)
    Received: from [188.207.81.194] (port = 19237 helo = User)
    by wat.watadkitoko.com with esmtpa (Exim 4.85)
    (envelope - from <*** email="" address="" is="" removed="" for="" privacy="" ***="">)
    ID 1YoirL - 00020Q - YEAR; Saturday, may 2, 2015 20:38:21-0500
    Reply-To:<*** email="" address="" is="" removed="" for="" privacy="" ***="">
    From: rates Chehabi «»<*** email="" address="" is="" removed="" for="" privacy="" ***="">
    Re: * SPAM * Important!
    Date: Sunday 3 may 2015 03:38:09 + 0200
    MIME-Version: 1.0
    Content-Type: text/html;
    charset = "Windows-1251".
    Content-Transfer-Encoding: 7 bit
    X-Priority: 3
    X-MSMail-Priority: Normal
    X-Mailer: Microsoft Outlook Express 6.00.2600.0000
    X-MimeOLE: Produced by Microsoft MimeOLE V6.00.2600.0000
    X anti-abuse: this header was added to track abuse, please attach it to any report of abuse
    X anti-abuse: primary Hostname - wat.watadkitoko.com
    X anti-abuse: field Original - stone.com
    X anti-abuse: author/caller UID/GID - [47 12] / [47 12]
    X anti-abuse: sender address domain - pawpetstore.com
    X Get-Message-Expéditeur-Via: wat.watadkitoko.com: authenticated_id: * e-mail address is removed from the privacy *.
    Message-Id:<*** email="" address="" is="" removed="" for="" privacy="" ***="">
    X-Spam-Flag: YES
    X FCMA-Score: 100
    X FCMA-analysis: v = 2,1 cv = Nafy1gz4 c = 0 sm = 1 tr = 0 p = Os_Rm99zqn0A:10
    a = Z2k1iAh4l3CSraD9SQOBOg ==: 117 == a = Z2k1iAh4l3CSraD9SQOBOg: 17
    a = 9cW_t1CCXrUA:10 a = Dyoqhi_TatcA:10




    Greetings to you,


    Good day to you. I'm sorry to bother you, but I have a great proposal for you. My name is

    Rates Chehabi, I am of the Syria.

    Can you allow me to inform you of my desire to enter into a business relationship with you personally

    or from your company for a lucrative investment in the broad partnership owned by me and my Syrian

    childhood best friend.

    There was bad situation of things in Syria and the deterioration of things here day after day.

    A lot of damage is still ongoing because I think're you aware of this fact.

    I would like to know more about you and enter into a business relationship with you, our intention in

    This issue is to have investments offshore project in your country because of lack of stability, subject to

    change and political instability in Syria. I think you must have heard and seen a few about

    these difficult times on CNN that happened for some time.

    Your position in this arrangement will be as follows:

    Best regards,

    Rates Chehabi.

Maybe you are looking for