/    Sign up×
Community /Pin to ProfileBookmark

more email not sent from php script

apache php and sendmail
Hi,
At home I’ve been making a webpage. The contact page should accept input from the user, then mail it to me. I am trying this out on my laptop before I put it on a host.
I have apache2 running on my laptop, configured to use php. Both work fine, I can tell php is working by using a webpage with

<?php
phpinfo(); I get lots and lots of info. Among the data is: sendmail_path /usr/sbin/sendmail -t -i , which is where my sendmail is, and the value in php.ini.
pedro@pedro-bedro:~$ whereis sendmail
sendmail: /usr/sbin/sendmail /usr/lib/sendmail /usr/share/man/man1/sendmail.1.gz
pedro@pedro-bedro:~$

I have a script, send_mail.php The part that sends the info is:

mail( “$webmaster_email”, “Feedback Form Results”,
$comments, “From: $email_address” );
header( “Location: $thankyou_page” );
}

Unfortunately, I never receive any mail. Yesterday morning I tried again, here is /var/log/mail

status=bounced (gmail.com)
Jul 17 07:08:05 pedro-bedro postfix/cleanup[2820]: B21136C2148: message-id=<20120716230805.B21136C2148@pedro-bedro>
Jul 17 07:08:05 pedro-bedro postfix/bounce[2823]: 61FF96C2144: sender non-delivery notification: B21136C2148
Jul 17 07:08:05 pedro-bedro postfix/qmgr[1772]: 61FF96C2144: removed
Jul 17 07:08:05 pedro-bedro postfix/qmgr[1772]: B21136C2148: from=<>, size=2024, nrcpt=1 (queue active)
Jul 17 07:08:05 pedro-bedro postfix/local[2824]: B21136C2148: to=<www-data@pedro-bedro>, relay=local, delay=0.23, delays=0.07/0.02/0/0.15, dsn=2.0.0, status=sent (delivered to mailbox)
Jul 17 07:08:05 pedro-bedro postfix/qmgr[1772]: B21136C2148: removed

Does anyone have any idea why the mail is not sent?

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @Pedroski spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...