Re: [PHP] php mail() function

2009-10-23 Thread James Prentice
? Cheers On Thu, Oct 22, 2009 at 6:24 PM, James Prentice prentice@gmail.com wrote: How would I determine my ISP's SMPT server ID? And do I need to edit main.cf in order to use that server? Also, is there a way to test the script just sending an email locally? I tried sending the email

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:

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
-technologies.org wrote: James Prentice wrote:   Also, I notice that in the mail.log file, the 'from:' value is 'www-d...@homemade'. The actual 'from:' value is provided to the php mail() function via a web form, so should be somebody's email address (e.g. my own in this case). I think PHP

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
Ljungmark p...@bsdlabs.com 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 Reporting-MTA: dns; homemade X-Postfix-Queue-ID: 19BE8A70109

Re: [PHP] php mail() function

2009-10-24 Thread James Prentice
, '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 ideas? On Sat, Oct 24, 2009 at 9:17 PM, James Prentice

Re: [PHP] php mail() function

2009-11-25 Thread James Prentice
, Oct 26, 2009 at 4:37 AM, Bob McConnell r...@cbord.com 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 getting bounced. So why is 'www-d...@homemade' being listed

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 prentice@gmail.com