Re: MAIL:: How to send multiple, personalised e-mails?
| From: | Justin Patrin | Date: | Wed, 05 Jan 2005 21:01:48 +0000 |
| Subject: | Re: MAIL:: How to send multiple, personalised e-mails? | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-16696@lists.php.net to get a copy of this message | ||
On Wed, 5 Jan 2005 20:47:36 +0100, bob <junk1@xs4all.nl> wrote:
> What would the advantage then of using MAIL:: over php mail()?
Object oriented-ness.
Multiple backends to use (smtp, sendmail, mail).
e.g. it works when mail() doesn't.
>
>
> On Jan 5, 2005, at 8:40 PM, Justin Patrin wrote:
>
> > On Wed, 5 Jan 2005 20:23:07 +0100, bob <junk1@xs4all.nl> wrote:
> >> Does anyone out there have an example of using MAIL:: to send
> >> multiple,
> >> personalised e-mails?
> >>
> >> I know you can send to multiple recipients by building a
> >> coma-separated
> >> list and passing that to $recipients, but then the $header and $body
> >> are the same for everyone... I'm trying to achieve Dear Bob, Dear
> >> Cindy, Dear Jan (w/ matching headers TO: bob@xxx.com, Dear TO:
> >> cindy@xxx.com, TO: Jan@xxx.com) etc.
> >>
> >> Is there a way to do this w/ MAIL::?
> >>
> >
> > Yes, call send multiple times with each of the recipients and altered
> > messages seperately.
> >
> > --
> > Justin Patrin
> >
> >
--
Justin Patrin