Re: [PHP] retrieve email address
- Date: Mon, 5 May 2008 18:19:25 +0900
- From: "Yui Hiroaki" <hiroakiyui@xxxxxxxxx>
- Subject: Re: [PHP] retrieve email address
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 <richardh@xxxxxxxxxxx>:
>
>
> > I would like to retrieve email address from email with regular expression.
> >
> > ------email------------
> > .
> > .
> > .
> > From: testaddress@xxxxxxxxx
> > .
> > .
> > .
> > ------------------------------
> >
> > 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 |
> +----------------------------------------+
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php