[ubuntu-za] php sendmail
David Rubin
davidrub at gmail.com
Wed Jul 15 08:24:28 BST 2009
On Wed, Jul 15, 2009 at 8:15 AM, Raoul Snyman <
raoul.snyman at saturnlaboratories.co.za> wrote:
> On Tue, 14 Jul 2009 22:58:03 +0200, Charl Wentzel
> <charl.wentzel at vodamail.co.za> wrote:
> > I want to use PHP to send an e-mail using my personal e-mail account.
> > Getting the right PHP modules as well as writing the PHP code is as easy
> > as can be.
>
> Are you trying to use your own computer to send an e-mail, or are you
> trying to send an e-mail from a web server?
What does a Webserver have to do with a mail-transport? Maybe they have
installed Webserver but not set up a mail-transport?
>
>
> If the latter, <?php mail("you at yourdomain.com", "I am the walrus", "goob,
> goob, gachoob", "From: me at mydomain.com"); ?>
>
I have always used a nice wrapper class for sending emails in which you can
spesifiy an external mail server (For small simple things makes
configuration much easier).
http://www.phpclasses.org/browse/file/919.html
This ins't the best way of sending out many emails but does the job for a
few emails, with out having to have a mail transport set up and installed.
Also this wrapper can be changed to use the localmail transport with a
change in config. :P
--
David Rubin
Email : davidrub[ at ]gmail[ dot ]com
cell : +27(0)720405455
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/ubuntu-za/attachments/20090715/1c3ab8ae/attachment.htm
More information about the ubuntu-za
mailing list