I wasn't sure which forum to put this in - and figured this was as good as any.
I downloaded and installed MAMP. Seems to be working fine.
I've written a .php form. It displays fine. I keep it in MAMP/htdocs just like MAMP requires.
When I click submit, the email() function returns TRUE, but the mail never goes out.
Researching this some, I found the error log (the bounced email) in /var/mail/ in a file named toddburch (my machine name). The error says this:
(I edited my email address to say "myuserid")
So, the error says my domain is not valid, and I have to agree. Searching the net, I found a few hits about this, and found one approach that suggested I sudo pico etc/hostconfig to add a HOSTNAME=myuserid@mac.com.
I tried that, and got another error (It's all getting foggy now - this was done late last night). I backed that change out, as I noticed the info was 5 years old (circa 2002, and for Panther - I'm running Tiger).
Before doing the pico to hostconfig, I tried a sudo hostname=myuserid@mac.com and if I remember correctly, both this and the hostconfig change added the needed FROM: info in the email. But, I also changed my .php file to add an additional "From: " header at the same time. So... who knows.
Can anyone help straighten this out for me? It's not overwhelming, but there's a whole lot of config going on here that is untrodden turf for me.
Thanks, Todd
(If needed, I can supply my .php file and the php.ini file as well)
EDIT - I typed email() and I should have typed mail(), referring to the PHP builtin function.
I downloaded and installed MAMP. Seems to be working fine.
I've written a .php form. It displays fine. I keep it in MAMP/htdocs just like MAMP requires.
When I click submit, the email() function returns TRUE, but the mail never goes out.
Researching this some, I found the error log (the bounced email) in /var/mail/ in a file named toddburch (my machine name). The error says this:
(I edited my email address to say "myuserid")
Code:
From MAILER-DAEMON Thu Aug 16 12:57:24 2007
Return-Path: <>
X-Original-To: toddburch@todd-burchs-computer.local
Delivered-To: toddburch@todd-burchs-computer.local
Received: by todd-burchs-computer.local (Postfix)
id 1EACB20B460; Thu, 16 Aug 2007 12:57:24 -0500 (CDT)
Date: Thu, 16 Aug 2007 12:57:24 -0500 (CDT)
From: MAILER-DAEMON@todd-burchs-computer.local (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: toddburch@todd-burchs-computer.local
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="30CF720B45A.1187287044/todd-burchs-computer.local"
Message-Id: <20070816175724.1EACB20B460@todd-burchs-computer.local>
This is a MIME-encapsulated message.
--30CF720B45A.1187287044/todd-burchs-computer.local
Content-Description: Notification
Content-Type: text/plain
This is the Postfix program at host todd-burchs-computer.local.
I'm sorry to have to inform you that your message could not be
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to <postmaster>
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The Postfix program
<myuserid@mac.com>: host smtp-mx5.mac.com[17.250.244.61] said: 553 5.1.8
<toddburch@todd-burchs-computer.local>... Domain of sender address
toddburch@todd-burchs-computer.local does not exist (in reply to MAIL FROM
command)
--30CF720B45A.1187287044/todd-burchs-computer.local
Content-Description: Delivery report
Content-Type: message/delivery-status
Reporting-MTA: dns; todd-burchs-computer.local
X-Postfix-Queue-ID: 30CF720B45A
X-Postfix-Sender: rfc822; toddburch@todd-burchs-computer.local
Arrival-Date: Thu, 16 Aug 2007 12:57:22 -0500 (CDT)
Final-Recipient: rfc822; myuserid@mac.com
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; host smtp-mx5.mac.com[17.250.244.61] said: 553
5.1.8 <toddburch@todd-burchs-computer.local>... Domain of sender address
toddburch@todd-burchs-computer.local does not exist (in reply to MAIL FROM
command)
--30CF720B45A.1187287044/todd-burchs-computer.local
Content-Description: Undelivered Message
Content-Type: message/rfc822
Received: by todd-burchs-computer.local (Postfix, from userid 501)
id 30CF720B45A; Thu, 16 Aug 2007 12:57:22 -0500 (CDT)
To: myuserid@mac.com
Subject: Membership
From: myuserid@mac.com
Reply-To: myuserid@mac.com
X-Mailer: PHP/5.2.3
Message-Id: <20070816175722.30CF720B45A@todd-burchs-computer.local>
Date: Thu, 16 Aug 2007 12:57:22 -0500 (CDT)
Sign me up!
Todd Burch
myuserid@mac.com
This is a textarea box.
line 2
line 3.
Thanks! Connie.
--30CF720B45A.1187287044/todd-burchs-computer.local--
So, the error says my domain is not valid, and I have to agree. Searching the net, I found a few hits about this, and found one approach that suggested I sudo pico etc/hostconfig to add a HOSTNAME=myuserid@mac.com.
I tried that, and got another error (It's all getting foggy now - this was done late last night). I backed that change out, as I noticed the info was 5 years old (circa 2002, and for Panther - I'm running Tiger).
Before doing the pico to hostconfig, I tried a sudo hostname=myuserid@mac.com and if I remember correctly, both this and the hostconfig change added the needed FROM: info in the email. But, I also changed my .php file to add an additional "From: " header at the same time. So... who knows.
Can anyone help straighten this out for me? It's not overwhelming, but there's a whole lot of config going on here that is untrodden turf for me.
Thanks, Todd
(If needed, I can supply my .php file and the php.ini file as well)
EDIT - I typed email() and I should have typed mail(), referring to the PHP builtin function.