Re: [PHP] php mail() function

2009-11-25 Thread James Prentice
It looks like using XAMPP wasn't strictly necessary. I tried running this example again using my previous versions of mysql and apache and it worked fine. So the key is to configure Sendmail as described at the URL I gave. On Wed, Nov 25, 2009 at 10:58 AM, James Prentice wrote: > Afte

Re: [PHP] php mail() function

2009-11-25 Thread James Prentice
Thanks for all your help. On Mon, Oct 26, 2009 at 4:37 AM, Bob McConnell wrote: > From: James Prentice > >> I have tried setting both $to and $email to be the same shaw address >> since I assumed it should be recognized by the mail server, but it's >> still gettin

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
; ... mail($to, $subject, $msg, 'From:' . $email); I have tried setting both $to and $email to be the same shaw address since I assumed it should be recognized by the mail server, but it's still getting bounced. So why is 'www-d...@homemade' being listed as the sender? Any i

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
olof Ljungmark wrote: > James Prentice wrote: >> >> It sends the bounced message to /var/mail/www-data and I get this: >> >> --19BE8A70109.1256417846/homemade >> Content-Description: Delivery report >> Content-Type: message/delivery-status >> >

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
, from userid 33) id 19BE8A70109; Sat, 24 Oct 2009 13:57:26 -0700 (PDT) To: x...@shaw.ca I will investigate how to change the loglevel of postfix, because right now the error messages don't seem very helpful (at least to me). Cheers On Sat, Oct 24, 2009 at 1:27 PM, John Black wrote: &g

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
Thanks, John. I set up the sasl_passwd file as per your instructions but am still getting status=bounced. I'm wondering, what should the values in main.cf be for 'myhostname' and 'mydestination'? These pages give some info on the Shaw mail servers, but I'm not certain which I should be using: htt

Re: [PHP] php mail() function

2009-10-23 Thread James Prentice
A7010A: to=, relay=none, delay=0.03, delays=0.02/0/0/0.01, dsn=5.0.0, status=bounced ([shawmail.vc.shawcable.net]) Oct 23 21:00:31 homemade postfix/qmgr[7045]: 75517A7010A: removed Have I edited main.cf incorrectly, or are there other values that need to be edited? Cheers On Thu, Oct 22, 2009 at

Re: [PHP] php mail() function

2009-10-22 Thread James Prentice
 You should also be able to setup PHP > to use your ISP's SMTP server and never touch the SMTP service on your > local machine (if you don't feel like playing with Postfix). > > On Thu, Oct 22, 2009 at 3:56 PM, James Prentice > wrote: >> I'm trying to use th

[PHP] php mail() function

2009-10-22 Thread James Prentice
I'm trying to use the php mail() function to send a mail within a php script. This is using PHP 5.2.4 and Ubuntu Hardy Heron linux. The script runs fine and the return value of the mail function is TRUE, but the mail is never received. I'm trying to send an email to my gmail account via the local s