473,226 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

'Nobody' disallowed from sending email with PHP

Hi.

My host decided to disallow mails from 'nobody' ('nobody' is the user
of PHP+Apache) due to spam problems.

I use the PHP mail function to send out a confirmation email for new
users, and it doesn't work. If I access shell with my user+passwd, I
can execute PHP
scripts ok and emails are delivered.

Any similar problem? Thx.

Sep 14 '05 #1
6 1739
In article <11**********************@g14g2000cwa.googlegroups .com>,
fr**********@usa.com wrote:
Hi.

My host decided to disallow mails from 'nobody' ('nobody' is the user
of PHP+Apache) due to spam problems.

I use the PHP mail function to send out a confirmation email for new
users, and it doesn't work. If I access shell with my user+passwd, I
can execute PHP
scripts ok and emails are delivered.

Any similar problem? Thx.


Switch to perl and call it via CGI. The mail functions you can get from
CPAN are more robust and you have more control. If you run the script
using CGIwrap (google for it), you can run as yourself on the ISP's
shared server. Of course, if your ISP won't setup CGIwrap for you, I'd
look for another ISP...

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Sep 14 '05 #2
Proposed solution:

Create a MySQL table to queue the emails. Then write a PHP script that
will check the queue, and send any emails in it (and then delete them).

Add a line to your crontab to call this script every minute, and you
should be set.

Sep 14 '05 #3
Can't you just change the from address and make it your own?

It's part of the mail() function.

Sep 15 '05 #4
On Wed, 14 Sep 2005 16:48:20 -0700, Michael Vilain
<vi****@spamcop.net> wrote:
In article <11**********************@g14g2000cwa.googlegroups .com>,
fr**********@usa.com wrote:
Hi.

My host decided to disallow mails from 'nobody' ('nobody' is the user
of PHP+Apache) due to spam problems.

I use the PHP mail function to send out a confirmation email for new
users, and it doesn't work. If I access shell with my user+passwd, I
can execute PHP
scripts ok and emails are delivered.

Any similar problem? Thx.


Switch to perl and call it via CGI.


Fortunately, perl wouldn't over-ride the user and group so if it
doesn't work for php it won't work for perl.
--
gburnore@databasix dot com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ۳ݳ޳ݳۺݳ޳ݳݳ޳ݳ۳
| ۳ݳ޳ݳۺݳ޳ݳݳ޳ݳ۳
DataBasix | ۳ݳ޳ݳۺݳ޳ݳݳ޳ݳ۳
| ۳ 3 4 1 4 2 ݳ޳ 6 9 0 6 9 ۳
Black Helicopter Repair Svcs Division | Official Proof of Purchase
================================================== =========================
Want one? GET one! http://signup.databasix.com
================================================== =========================
Sep 15 '05 #5
In article <dg**********@pookiehead.databasix.com>,
Gary L. Burnore <gb******@databasix.com> wrote:
On Wed, 14 Sep 2005 16:48:20 -0700, Michael Vilain
<vi****@spamcop.net> wrote:
In article <11**********************@g14g2000cwa.googlegroups .com>,
fr**********@usa.com wrote:
Hi.

My host decided to disallow mails from 'nobody' ('nobody' is the user
of PHP+Apache) due to spam problems.

I use the PHP mail function to send out a confirmation email for new
users, and it doesn't work. If I access shell with my user+passwd, I
can execute PHP
scripts ok and emails are delivered.

Any similar problem? Thx.


Switch to perl and call it via CGI.


Fortunately, perl wouldn't over-ride the user and group so if it
doesn't work for php it won't work for perl.


Actually, if you read the _rest_ of my post where I recommended CGIwrap,
it does. Check out

http://cgiwrap.sourceforge.net/

for more details. Now that wasn't hard, was it?

--
DeeDee, don't press that button! DeeDee! NO! Dee...

Sep 15 '05 #6
On Thu, 15 Sep 2005 00:54:31 -0700, Michael Vilain
<vi****@spamcop.net> wrote:
In article <dg**********@pookiehead.databasix.com>,
Gary L. Burnore <gb******@databasix.com> wrote:
On Wed, 14 Sep 2005 16:48:20 -0700, Michael Vilain
<vi****@spamcop.net> wrote:
>In article <11**********************@g14g2000cwa.googlegroups .com>,
> fr**********@usa.com wrote:
>
>> Hi.
>>
>> My host decided to disallow mails from 'nobody' ('nobody' is the user
>> of PHP+Apache) due to spam problems.
>>
>> I use the PHP mail function to send out a confirmation email for new
>> users, and it doesn't work. If I access shell with my user+passwd, I
>> can execute PHP
>> scripts ok and emails are delivered.
>>
>> Any similar problem? Thx.
>
>Switch to perl and call it via CGI.
Fortunately, perl wouldn't over-ride the user and group so if it
doesn't work for php it won't work for perl.


Actually, if you read the _rest_ of my post where I recommended CGIwrap,
it does.


He's not talking about permissions. He's talking about the ID.
Someone else gave the correct answer: Use a different ID.
Check out

http://cgiwrap.sourceforge.net/

for more details. Now that wasn't hard, was it?


Perhaps you misread his post? Naw, that couldn't be, could it?
--
gburnore@databasix dot com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ۳ݳ޳ݳۺݳ޳ݳݳ޳ݳ۳
| ۳ݳ޳ݳۺݳ޳ݳݳ޳ݳ۳
DataBasix | ۳ݳ޳ݳۺݳ޳ݳݳ޳ݳ۳
| ۳ 3 4 1 4 2 ݳ޳ 6 9 0 6 9 ۳
Black Helicopter Repair Svcs Division | Official Proof of Purchase
================================================== =========================
Want one? GET one! http://signup.databasix.com
================================================== =========================
Sep 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Zbigniew Lisiecki | last post by:
Hi, i'd like to send an email from a html form, but i want nobody to see the address, where i send it. how can i acomplish this with php ? is a reference to a function in another document enough...
4
by: Peter Afonin | last post by:
Hello, I installed osCommerce on Apache server. By default it sends out e-mails from the account 'nobody'. However, this option is turned off by the hosting provider. Is there a way to make it...
0
by: praba kar | last post by:
Dear All, I have doubt regarding mail sending smtplib module. The below code is I used to send a mail. ########################################## import email.Message import email.Utils...
4
by: RJ Dake | last post by:
Having problems with uploaded Database and SharePoint sites. At least one of the errors is mentioned below. Sites do not allow access to DB entry or results. Email feedback is MOST appreciated!...
3
by: Ant | last post by:
Hi, I'm using the MailMessage & smtpMail classes in System.Web.Mail to send mail, however it's not sending any emails. I'm using it on a Windows 2003 server. The simplest way to use this is...
1
by: Eric Sheu | last post by:
Greetings, I have been searching the web like mad for a solution to my SMTP problem. I am using Windows Server 2003 and ASP.NET 2.0 w/ C# to send out e-mails from a web site I have created to...
4
by: Jason | last post by:
I'm troubleshooting a program that I didn't build, so forgive me on this one. It's called email.php, and it looks like a program that the original developer must have downloaded from somewhere. ...
9
by: JoeP | last post by:
Hi All, How can I find the reason for such an error: Failure sending mail. Some Code... oMailMessage.IsBodyHtml = False oMailMessage.Body = cEmailBody Dim oSMTP As New SmtpClient...
4
by: Fro | last post by:
Hi, the operating system (Unix) considers a php-server as a user with name "nobody". For example, if my php-script saves a file uploaded by a user, the owner of the file will be "nobody". I...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.