HI Guys, I tried out putting 'localhost' as the SMTP server and it didn't work.
I know this might sound stupid, but I have to ask this learn if I want to learn. How do I find out my the SMTP server of my website? as both phpmailer and the SMTP class Craig suggested needs this. Henson On May 20, 3:47 pm, Jevon Wright <[email protected]> wrote: > 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 -- 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] -~----------~----~----~----~------~----~------~--~---
