Re: retrieve email address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux