Re: real simple regex
| From: | Frank M. Kromann | Date: | Wed, 19 Sep 2001 05:46:09 +0000 |
| Subject: | Re: real simple regex | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-67792@lists.php.net to get a copy of this message | ||
The imap_mail() function connects to a SMTP the same way mail() does. It just takes a few paremeters
more allowing you to set Reply-To and other headers normaly defined in PHP.INI.
In general the imap functions can be used with IMAP¤ and POP3 servers to read mails.
- Frank
> but can imap replace my old mail() calls? Don't I have to get a server that
> supports it or something??
>
> the regex thing I already got working...
>
> thanks...
>
> At 21:53 17/9/2001 -0700, Frank M. Kromann wrote:
> >Take a look at
> >http://php.net/manual/en/function.imap-rfc822-parse-adrlist.php
> >
> >This function will do the trick. You can also have a look at
> >http://php.net/manual/en/function.imap-mail.php. This is an
> >extended mail
> >function and it works on both WIndows and *nix.
> >
> >- Frank
> >
> > > I had to write my own mail() function cuz PHP's does not work in Windows
> > > very well..
> > >
> > > But I suck at regex and I need to get the email address from the field
> > from
> > > that can be something like:
> > > $from = "Christian Dechery <cdechery@easynet.com.br>";
> > >
> > > so what I want is:
> > > the string between '<' and '>' or the last 'word'
> > > of the 'sentence' (for
> > > something like "\"Christian Dechery\" cdechery@easynet.com.br").
> > >
> > > thanks...
> > >
> > > p.s: meu novo email é cdechery@easynet.com.br
> > > ____________________________
> > > . Christian Dechery (lemming)
> > > . http://www.tanamesa.com.br
> > > . Gaita-L Owner / Web Developer
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > > For additional commands, e-mail: php-general-help@lists.php.net
> > > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> > >
> > >
> > >
>
>
> _____________________________
> . Christian Dechery
> . . Gaita-L Owner / Web Developer
> . . http://www.webstyle.com.br
> . . http://www.tanamesa.com.br
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>