Re: Newbie - Setting Up Some Basic Sendmail Scripts

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

 



On Tue, May 5, 2009 at 1:20 PM, revDAVE <Cool@xxxxxxxxxxxxxxxx> wrote:

> [Newbie]
>
> Hi folks,
>
> I'm trying to set up some basic php send mail scripts - and I'm curious of
> the best way to go...
>
>
> I checked these basics out:
>
> http://us.php.net/manual/en/function.mail.php
>
> And got this code below going, but I'll bet I need a bit more - like adding
> authentication - smtp - port - sending user / pass etc.
>
> Any hints how to get this to the next level?
>
> Thanks in advance - dave
>
> --------------------------------
>
> <?php
> $to      = 'nobody@xxxxxxxxxxx';
> $subject = 'the subject';
> $message = 'hello';
> $headers = 'From: webmaster@xxxxxxxxxxx' . "\r\n" .
>     'Reply-To: webmaster@xxxxxxxxxxx' . "\r\n";
>
> mail($to, $subject, $message, $headers);
> ?>
>
>
>
>
> --
> Thanks - RevDave
> Cool @ hosting4days . com
> [db-lists 09]
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
use phpmailer or pear mailer

-- 

Bastien

Cat, the other other white meat

[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