Re: [PHP] retrieve email address

[email protected] ("Yui Hiroaki")
Newsgroups php.general
Message-ID <[email protected]>
HI!

I do not use PEARm then find email address from email.
Dose anyone know how to get it??

It does noe blow;

ereg("^From: \s+ .*", $data) ;

Regards,
yui

2008/5/5 Richard Heyes <[email protected]>:
>
>
> > I would like to retrieve email address from email with regular expression.
> >
> > ------email------------
> > .
> > .
> > .
> > From: [email protected]
> > .
> > .
> > .
> > ------------------------------
> >
> > if anybody know how to do it,  please send me email.
> >
>
>  Can, worms, everywhere. Try looking at the Mail::RFC822 package in PEAR.
> There's also a shortcut function for just matching an Interweb email
> address.
>
>  --
>  Richard Heyes
>
>  +----------------------------------------+
>  | Access SSH with a Windows mapped drive |
>  |    http://www.phpguru.org/sftpdrive    |
>  +----------------------------------------+
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.