Try phpmailer, it's much, much easier than dealing with mail().

Jevon

On Wed, May 20, 2009 at 10:03 AM, Craig Anderson <[email protected]>wrote:

>
> Hi.
> Ran across this one:
> http://snipplr.com/view/5147/php--smtp-mail-class/
> Which looks quite good. You should be able to replace
> "mail.yourserver.com" with "localhost".
> -Craig
>
> On 20/05/2009, at 9:27 AM, henson wrote:
>
> >
> > HI Craig,
> >
> > I've tried adding the date to the headers,  Could you send me the php
> > mail() replacement code that uses SMTP.
> > Thanks
> > -Henson
> >
> > On May 20, 6:44 am, Craig Anderson <[email protected]> wrote:
> >> Hi.
> >> Oh yes, one other thing.  You should include an RFC822 date in the
> >> headers.  So add something like:
> >>          $mdate = gmdate("r", time());
> >>          $headers .= "Date: $mdate\r\n";
> >> Mail will be rejected from some mail servers if this date is missing.
> >> -Craig
> >>
> >> On 19/05/2009, at 5:54 PM, henson wrote:
> >>
> >>
> >>
> >>> I'm having this problem with sending HTML mail to my yahoo.com
> >>> email.- Hide quoted text -
> >>
> >> - Show quoted text -
> > >
>
>
> >
>
>

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to