Keith,

Here is a UDF from cflib.org that will return the email address from your string:

===================================

<cfscript>
/**
 * Searches a string for email addresses.
 * Based on the idea by Gerardo Rojas and the isEmail UDF by Jeff Guillaume.
 *
 * @param str    String to search. (Required)
 * @return Returns a list.
 * @author Raymond Camden (
[EMAIL PROTECTED])
 * @version 1, May 13,
2003
 */
function getEmails(str) {
        var email =
"(['_a-z0-9-]+(\.['_a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]+)*\.(([a-z]{2,3})|(aero|coop|info|museum|name)))";
        var res =
"";
        var marker = 1;
        var matches =
"";
        
        matches = reFindNoCase(email,str,marker,marker);

        while(matches.len[1] gt
0) {
                res = listAppend(res,mid(str,matches.pos[1],matches.len[1]));
                marker = matches.pos[1] + matches.len[1];
                matches = reFindNoCase(email,str,marker,marker);                
        }
        return res;
}
</cfscript>

===================================

From http://www.cflib.org/udf.cfm?ID=928


At 09:00 AM 7/15/2003 -0500, you wrote:
Also, I forgot to show this line of the POST log:

07/15/2003 08:47:29 AM [001] WARNING: RCPT failed (<"Keith L. Miller"
[EMAIL PROTECTED]>: 501 Invalid address
07/15/2003 08:33:04 AM [001] MAILSERVERRESPONSE=501 Invalid address

What is interseting about this is the brackets.  They have been moved from
around the email address to be around the entire string.  Why is that?

Keith

----- Original Message -----
From: "Keith L. Miller" <[EMAIL PROTECTED]>
To: "inFusion Support List" <[EMAIL PROTECTED]>
Sent: Tuesday, July 15, 2003 8:41 AM
Subject: Re: [iMS] Server Stopped?


> Ok, yes it shows in Task Manager so I tried the POST test console.  That
> returned the following (Truncate to show only important info) error in the
> POST log for the address I tried to send to "Keith L. Miller"
> <[EMAIL PROTECTED]>  :
>
> 07/15/2003 08:33:04 AM [001] MAILSERVERRESPONSE=501 Invalid address
>
> So, I tried sending to just [EMAIL PROTECTED] and all went well.
So,
> my question is why can't I send to an ameail address formatted like the
> orginal one.  That is the format of the incoming email address so why
can't
> I just send it as the reply address?  If it is true that iMS does not
allow
> emails to be sent out eith the address in that format, then I would have
to
> prse apart the incoming address into it's individaul pieces.  Does anyone
> know af a Reg Ex that can parse an email in that format to give me each
> element?
>
>
> Keith
>
> ----- Original Message -----
> From: "Howie Hamlin" <[EMAIL PROTECTED]>
> To: "inFusion Support List" <[EMAIL PROTECTED]>
> Sent: Tuesday, July 15, 2003 8:21 AM
> Subject: Re: [iMS] Server Stopped?
>
>
> > Does the post service show in the Windows task manager?  If so, could
you
> try sending a mail with the post test console?
> >
> > Thanks,
> >
> > Howie
> >
> > ----- Original Message -----
> > From: "Keith L. Miller" <[EMAIL PROTECTED]>
> > To: "inFusion Support List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, July 15, 2003 9:07 AM
> > Subject: Re: [iMS] Server Stopped?
> >
> >
> > yes
> >
> > ----- Original Message -----
> > From: "Howie Hamlin" <[EMAIL PROTECTED]>
> > To: "inFusion Support List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, July 15, 2003 7:52 AM
> > Subject: Re: [iMS] Server Stopped?
> >
> >
> > > Are there any files in "c:\ims\out\"?
> > >
> > > Regards,
> > >
> > > Howie
> > >
> >
==^=======================================================
     This list server is Powered by iMS
   "The Swiss Army Knife of Mail Servers"
   --------------------------------------
To leave this list please complete the form at
http://www.coolfusion.com/Support/
Need an iMS Developer license?  Sign up for a free license here:
http://www.coolfusion.com/Developers/
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
Note: You are subscribed as [EMAIL PROTECTED]
==^=======================================================

This list server is Powered by iMS
"The Swiss Army Knife of Mail Servers"

To leave this list please complete the form at http://www.coolfusion.com/Support/
Need an iMS Developer license? Sign up for a free license here: http://www.coolfusion.com/Developers/
List archives: http://www.mail-archive.com/infusion-email%40eoscape.com/
Note: You are subscribed as [EMAIL PROTECTED]

Reply via email to