cfpop will work fine, but you have to know the username and password in advance. You
can use cfusion_verifymail() to determine if an address is a mail server in the first
place, but that isn't quite what the guy asked for.
I think he's looking for a CF-based way to do an SMTP VRFY. If there's a way to do
that I'm curious to see it myself - although I agree its shut off on a lot of servers
these days. I certainly switched it off on mine.
<CFTRY>
<CFPOP
SERVER="#attributes.TestURL#"
USERNAME="#attributes.UserName#"
PASSWORD="#attributes.PassWord#"
ACTION="GETHEADERONLY"
NAME="GetHeaders">
<CFCATCH TYPE="Any"><!---Don't throw an error---></CFCATCH>
</CFTRY>
<CFIF isdefined ("GetHeaders.RecordCount")>
... mail acct found. do stuff...
---------------------------------------
Matt Robertson [EMAIL PROTECTED]
MSB Designs, Inc., www.mysecretbase.com
---------------------------------------
---------- Original Message ----------------------------------
from: "Shawn Grover" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
date: Thu, 28 Mar 2002 14:42:12 -0700
why not just use the pop services? Most servers allow you to query for mail
headers without downloading the actual message itself. You might be able to
do this through CFPOP (never used it, so I'm not sure). If not, then you
will need to look into the POP or SMTP protocols, or another tool/component.
hth
Shawn Grover
-----Original Message-----
From: Tracy Bost [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 2:13 PM
To: CF-Talk
Subject: Re: Checking an email
Depends on the Email Server's Configuration. Its not as common to be able to
do
that nowadays as it used to be. Most of the time Email Administrators are
going
to have the vrfy command disabled on the email server.
Quoting Jeff Green <[EMAIL PROTECTED]>:
> Hi all,
>
> Is it possible to check to see if an email exists without sending the
> email
> address an actual email?
>
> TIA,
> jeff
>
______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists