[PHP] Sendmail question

2008-03-14 Thread nihilism machine
I have a link that i want to use as the  body of an html email. here  
is the code i use:


// Notify about comments
public function emailComment($Link, $ID) {
$mail = new SendMail();
$mail->SetCharSet("ISO-8859-1");
$mail->from("someone", "[EMAIL PROTECTED]");
$mail->to("[EMAIL PROTECTED]");
$mail->subject("New Comment!");
	$str = 'http://www.mysite.com/permalink.php?ID='. 
$Link.'">Comment ID #'.$ID.'';

$mail->text($str);
//$mail->attachment($fileName);
$mail->send();

Where link = a number.

the email that i get is:

So the email should be a link to: http://www.mysite.com/permalink.php?ID=120
but instead links to: http://www.mysite.com/permalink.php?ID%120

Here is the php sendmail library =

textboundary = uniqid(time());
$this->emailboundary = uniqid(time());
$this->charset = "ISO-8859-1";
}

public function SetCharSet($char) {
$this->charset = $char;
}

public function Validate_Email($emailAddress) {
	if(!preg_match("/[a-z0-9_-]+(\.[a-z0-9_-]+)*@([0-9a-z][0-9a- 
z-]*[0-9a-z]\.)+([a-z]{2,4})/i", $emailAddress)) {

die('Invalid Email Address: '.$emailAddress);
}
return $emailAddress;
}

public function from($name, $email) {
$this->emailheader .= 'From: '.$name.'<'.$email.'>'."\r\n";
}

public function to($to) {
$this->empfaenger = $this->Validate_Email($to);
}

public function cc($cc) {
$this->cc[] = $cc;
}

public function bcc($cc) {
$this->bcc[] = $cc;
}

public function makeMimeMail() {
if(count($this->cc) > 0) {
$this->emailheader .= 'Cc: ';
for($i=0; $icc); $i++) {
if($i > 0) $this->emailheader .= ',';
$this->emailheader .= 
$this->Validate_Email($this->cc[$i]);
}
$this->emailheader .= "\r\n";
}
if(count($this->bcc) > 0) {
$this->emailheader .= 'Bcc: ';
for($j=0;$jbcc);$j++) {
if($j > 0) $this->emailheader .= ',';
$this->emailheader .= 
$this->Validate_Email($this->bcc[$j]);
}
$this->emailheader .= "\r\n";
}
$this->emailheader .= 'MIME-Version: 1.0'."\r\n";
}

public function subject($subject) {
$this->subject = $subject;
}

public function text($text) {
	$this->textheader .= 'Content-Type: multipart/alternative;  
boundary="'.$this->textboundary.'"'."\r\n\r\n";

$this->textheader .= '--'.$this->textboundary."\r\n";
	$this->textheader .= 'Content-Type: text/plain; charset="'.$this- 
>charset.'"'."\r\n";
	$this->textheader .= 'Content-Transfer-Encoding: quoted- 
printable'."\r\n\r\n";

$this->textheader .= strip_tags($text)."\r\n\r\n";
$this->textheader .= '--'.$this->textboundary."\r\n";
	$this->textheader .= 'Content-Type: text/html; charset="'.$this- 
>charset.'"'."\r\n";
	$this->textheader .= 'Content-Transfer-Encoding: quoted- 
printable'."\r\n\r\n";
	$this->textheader .= ''.$text.''."\r\n 
\r\n";

$this->textheader .= '--'.$this->textboundary.'--'."\r\n\r\n";
}

public function attachment($fileName) {
if(is_file($fileName)) {
$attachment_header = '--'.$this->emailboundary."\r\n" ;
			$attachment_header .= 'Content-Type: application/octet-stream;  
name="'.basename($fileName).'"'."\r\n";

$attachment_header .= 'Content-Transfer-Encoding: 
base64'."\r\n";
			$attachment_header .= 'Content-Disposition: attachment;  
filename="'.basename($fileName).'"'."\r\n\r\n";

$file['inhalt'] = 
fread(fopen($fileName,"rb"),filesize($fileName));
$file['inhalt'] = base64_encode($file['inhalt']);
$file['inhalt'] = chunk_split($file['

Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-21 Thread dan1

On Fri, April 20, 2007 10:27 am, dan1 wrote:

I would simply like the script to be executed, when passed as a
symlink as
argument, instead of a hardlink.
The problem is that when I specify the script to be executed
(ecardbounce.php) as being a symlink, in the /etc/aliases like this:
ecard-bounce: "|/usr/bin/php /etc/smrsh/ecardbounce.php",
then the script isn't executed. However, when I replace the symlink by
a
hardlink to the same located script, then it works fine with no
problems.


I don't think you should be allowing the php binary to be run like
that...

It's just too easy for some hacker email to run arbitrary PHP code on
your box this way, as I understand it...

At least that's my recollection of how you do NOT want to set up:
sendmail | smrsh | php

The "Right Way" to make sure that only the script you WANT to run is
run is to put the actual PHP script in the /etc/smrsh directory, use
#! at the top of it, and sendmail pipe the data to the executable .php
script.




I don't understand what you mean. A lot of people are using the 
smrsh/sendmail combination to run scripts on their site. more often they use 
cgi instead of PHP, and now it seems that you are saying that PHP is not a 
good thing to use with sendmail/smrsh.
You are saying that it is not safe to use smrsh/php, yet smrsh has been 
specifically designed to use sendmail/scripts in a secure way (it stands for 
restricted shell).
How do you explain that the 'sympa' production level bulk email program does 
use symlinks with sendmail and smrsh the exact same way I do, wouldn't they 
know that this would be a potential security breach?
Also, I did follow exactly the recommendation of smrsh on how to setup 
symlinks with sendmail and interpreters:

http://www.faqs.org/docs/securing/chap22sec182.html

I think that I do things the right way, just as many other who use phpp 
scrits with sendmail to handle e-mail bounces do it, because putting the 
real file in /etc/smrsh or putting a link to the file in the same diretory 
doesn't present any security difference, as the script will be exectued 
exactly the same way, and if a hacker can have access to the symlink, then 
he will also be able to have access to the real file.


Else, I have the safe mode set to off, so the php.ini configuration should 
not be the problem.


Anyway, thanks for your answers Richard, because it helped me to develop my 
understanding about this problem.

I will try to put it in the bug database.

Thanks again for your support.

Regards,
Daniel 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-20 Thread Richard Lynch
On Fri, April 20, 2007 10:27 am, dan1 wrote:
> I would simply like the script to be executed, when passed as a
> symlink as
> argument, instead of a hardlink.
> The problem is that when I specify the script to be executed
> (ecardbounce.php) as being a symlink, in the /etc/aliases like this:
> ecard-bounce: "|/usr/bin/php /etc/smrsh/ecardbounce.php",
> then the script isn't executed. However, when I replace the symlink by
> a
> hardlink to the same located script, then it works fine with no
> problems.

I don't think you should be allowing the php binary to be run like
that...

It's just too easy for some hacker email to run arbitrary PHP code on
your box this way, as I understand it...

At least that's my recollection of how you do NOT want to set up:
sendmail | smrsh | php

The "Right Way" to make sure that only the script you WANT to run is
run is to put the actual PHP script in the /etc/smrsh directory, use
#! at the top of it, and sendmail pipe the data to the executable .php
script.

> This is why there might be a problem with the php interpreter refusing
> to
> execute a file which is a symlink, and requires the input file to be a
> real
> file or a hardlink. I thought that we would be able to pass a symlink,
> but
> maybe this is not allowed by php?

PHP may not allow a symlink, I guess, based on various php.ini
settings such as open_basedir or safe_mode or whatever...

And I guess the permissions/ownership of the symlink and or the .php
file would matter.

You could probably dink around with php.ini to "fix" all this, if you
insist on running an insecure setup...

But it would make a LOT more sense to do it the Right Way, as I
understand it.  You could probably get away with having a symlink (or
hard link) in whatever other directory you want to be able to edit the
PHP script...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] sendmail loop

2007-04-20 Thread WeberSites LTD
Would something like this help?

http://www.weberdev.com/get_example-4616.html 

-Original Message-
From: John Pillion [mailto:[EMAIL PROTECTED] 
Sent: Saturday, April 14, 2007 12:54 AM
To: php-general@lists.php.net
Subject: [PHP] sendmail loop

I have a sendmail script that loops through an array of email addresses. the
problem is, the list can sometimes be fairly long, and the page does not
finish loading until the loop has completed.  Currently, I have the majority
of the page loading, including text that says "messages sending, please
wait.", with a "completed" message after the loop.  Though that gives an
appearance of working (and lets the patient user know what is going on), if
the user leaves the page, or the page times out before the loop has
finished, not all the emails will be sent.

 

Is there a way to trigger a script to run on the server (in the background)?

 

I had the thought to save the notice to the DB, and then have a cron check
every few minutes to send it, but that could be too much load on the
servers.  Any other alternatives?

 

Thanks!

 

~J

 

Ps.  No, this is not a spam application - it is a notice/announcement form
for directors/administrators of an organization

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-20 Thread dan1

However, if I put a hardlink instead of the symlink, all works
fine!
The permissions of the symlink and the file linekd are all 777.

Has anyone already had this problem before, or would anyone have an
idea of
the cause?


smrsh itself may disallow symlinks.  Wouldn't surprise me.

Why not just use #!/usr/bin/php -q at the top of your PHP script?



I cannot do this, because the script itself is not executed.


What exactly do you want to happen then?



I would simply like the script to be executed, when passed as a symlink as 
argument, instead of a hardlink.
The problem is that when I specify the script to be executed 
(ecardbounce.php) as being a symlink, in the /etc/aliases like this:

ecard-bounce: "|/usr/bin/php /etc/smrsh/ecardbounce.php",
then the script isn't executed. However, when I replace the symlink by a 
hardlink to the same located script, then it works fine with no problems.


This is why there might be a problem with the php interpreter refusing to 
execute a file which is a symlink, and requires the input file to be a real 
file or a hardlink. I thought that we would be able to pass a symlink, but 
maybe this is not allowed by php?


Also, I am using the version 4.3.9-3.22.4 on my server (default centos 4.4 
version)


Thanks,
Daniel

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-19 Thread Richard Lynch
On Thu, April 19, 2007 1:33 pm, dan1 wrote:
> This is a poor place to find an answer, because the one thing that
> stands out is that this is a problem with php, not Sendmail, and this
> is
> a Sendmail newsgroup not a php newsgroup.  Your  dangerously outdated
> version of php is running and emitting an error ("No input file
> specified.") that doesn't make sense outside of php, but probably
> indicates special handling done by php when given a symlink instead of
> a
> regular file.


"No input specified" is pretty self explanatory...

You ran PHP, but didn't give it a PHP script as input.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-19 Thread Richard Lynch
On Thu, April 19, 2007 1:23 pm, dan1 wrote:
>>> However, if I put a hardlink instead of the symlink, all works
>>> fine!
>>> The permissions of the symlink and the file linekd are all 777.
>>>
>>> Has anyone already had this problem before, or would anyone have an
>>> idea of
>>> the cause?
>>
>> smrsh itself may disallow symlinks.  Wouldn't surprise me.
>>
>> Why not just use #!/usr/bin/php -q at the top of your PHP script?
>>
>
> I cannot do this, because the script itself is not executed.

What exactly do you want to happen then?

> The
> e-mail I
> sent from within this script does not arrive when it is failing.

If it's not executed, it would be very difficult for it to send an
email from within the script.

> But it works well with a hardlink.
> I didn't expect smrsh to prevent symlinks.
> When I contact sendmail people, they tell me it is a PHP problem.
> Would you
> agree that this is not the case, and merely to have to do with smrsh?

At this point, I don't have any idea what you're trying to do, much
less what is going wrong with it.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-19 Thread dan1

smrsh itself may disallow symlinks.  Wouldn't surprise me.

Why not just use #!/usr/bin/php -q at the top of your PHP script?


Something else to my previous answer.
Here is the answer of the sendmail guys. Maybe they are still right? Would 
PHP have a problem to handle symlinked input files? I have the security mode 
disabled in the php.ini file.

Thanks,
Daniel



This is a poor place to find an answer, because the one thing that
stands out is that this is a problem with php, not Sendmail, and this is
a Sendmail newsgroup not a php newsgroup.  Your  dangerously outdated
version of php is running and emitting an error ("No input file
specified.") that doesn't make sense outside of php, but probably
indicates special handling done by php when given a symlink instead of a
regular file.

Looking at the output there, I'd *guess* that you have php set up wrong
for this sort of use. I'm not a php expert, so I won't try to guess at a
fix.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-19 Thread dan1

However, if I put a hardlink instead of the symlink, all works fine!
The permissions of the symlink and the file linekd are all 777.

Has anyone already had this problem before, or would anyone have an
idea of
the cause?


smrsh itself may disallow symlinks.  Wouldn't surprise me.

Why not just use #!/usr/bin/php -q at the top of your PHP script?



I cannot do this, because the script itself is not executed. The e-mail I 
sent from within this script does not arrive when it is failing.

But it works well with a hardlink.
I didn't expect smrsh to prevent symlinks.
When I contact sendmail people, they tell me it is a PHP problem. Would you 
agree that this is not the case, and merely to have to do with smrsh?


Thanks,
Daniel 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sendmail smrsh symlinks not working against php scripts

2007-04-18 Thread Richard Lynch
On Wed, April 18, 2007 11:20 am, dan1 wrote:
> I am trying to forward the e-mails received to one address towards a
> php
> script, under CentOS 4 (RHEL).
> I am trying all I can but nothing does.
>
> I have edited my /etc/aliases file and added this line.
> ecard-bounce: "|/usr/bin/php /etc/smrsh/ecardbounce.php"
>
> Then, of course I do a 'newaliases'.
> In my /etc/smrsh I have placed the symbolic link defined above, which
> has
> been created this way:
> ln -s /home/my/scripts/ecardbounce.php /etc/smrsh/ecardbounce.php
>
> When using this configuration, I get the following error back by
> email:
>
>- The following addresses had permanent fatal errors -
> "|/usr/bin/php /etc/smrsh/ecardbounce.php"
> (reason: 255)
> (expanded from: <[EMAIL PROTECTED]>)
>
>- Transcript of session follows -
> Status: 404
> Content-type: text/html
> X-Powered-By: PHP/4.3.9
>
> No input file specified.
> 554 5.3.0 unknown mailer error 255
>
>
>
> However, if I put a hardlink instead of the symlink, all works fine!
> The permissions of the symlink and the file linekd are all 777.
>
> Has anyone already had this problem before, or would anyone have an
> idea of
> the cause?

smrsh itself may disallow symlinks.  Wouldn't surprise me.

Why not just use #!/usr/bin/php -q at the top of your PHP script?

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] sendmail smrsh symlinks not working against php scripts

2007-04-18 Thread dan1
Hello.

I am trying to forward the e-mails received to one address towards a php
script, under CentOS 4 (RHEL).
I am trying all I can but nothing does.

I have edited my /etc/aliases file and added this line.
ecard-bounce: "|/usr/bin/php /etc/smrsh/ecardbounce.php"

Then, of course I do a 'newaliases'.
In my /etc/smrsh I have placed the symbolic link defined above, which has
been created this way:
ln -s /home/my/scripts/ecardbounce.php /etc/smrsh/ecardbounce.php

When using this configuration, I get the following error back by email:

   - The following addresses had permanent fatal errors -
"|/usr/bin/php /etc/smrsh/ecardbounce.php"
(reason: 255)
(expanded from: <[EMAIL PROTECTED]>)

   - Transcript of session follows -
Status: 404
Content-type: text/html
X-Powered-By: PHP/4.3.9

No input file specified.
554 5.3.0 unknown mailer error 255



However, if I put a hardlink instead of the symlink, all works fine!
The permissions of the symlink and the file linekd are all 777.

Has anyone already had this problem before, or would anyone have an idea of
the cause?

Thanks,
Daniel




Re: [PHP] sendmail loop

2007-04-14 Thread tedd

At 4:54 PM -0600 4/13/07, John Pillion wrote:

I have a sendmail script that loops through an array of email addresses. the
problem is, the list can sometimes be fairly long, and the page does not
finish loading until the loop has completed.  Currently, I have the majority
of the page loading, including text that says "messages sending, please
wait.", with a "completed" message after the loop.  Though that gives an
appearance of working (and lets the patient user know what is going on), if
the user leaves the page, or the page times out before the loop has
finished, not all the emails will be sent.



Is there a way to trigger a script to run on the server (in the background)?


Google cron and php.

tedd
--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sendmail loop

2007-04-13 Thread Tijnema !

On 4/13/07, John Pillion <[EMAIL PROTECTED]> wrote:

I have a sendmail script that loops through an array of email addresses. the
problem is, the list can sometimes be fairly long, and the page does not
finish loading until the loop has completed.  Currently, I have the majority
of the page loading, including text that says "messages sending, please
wait.", with a "completed" message after the loop.  Though that gives an
appearance of working (and lets the patient user know what is going on), if
the user leaves the page, or the page times out before the loop has
finished, not all the emails will be sent.



Is there a way to trigger a script to run on the server (in the background)?



I had the thought to save the notice to the DB, and then have a cron check
every few minutes to send it, but that could be too much load on the
servers.  Any other alternatives?



Thanks!



~J

With set_time_limit you could set the timeout value higer:
http://www.php.net/set_time_limit
So that your script won't timeout when it takes too long.
Also, when the user closes his browser, the script will continue!

Tijnema




Ps.  No, this is not a spam application - it is a notice/announcement form
for directors/administrators of an organization




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] sendmail loop

2007-04-13 Thread John Pillion
I have a sendmail script that loops through an array of email addresses. the
problem is, the list can sometimes be fairly long, and the page does not
finish loading until the loop has completed.  Currently, I have the majority
of the page loading, including text that says "messages sending, please
wait.", with a "completed" message after the loop.  Though that gives an
appearance of working (and lets the patient user know what is going on), if
the user leaves the page, or the page times out before the loop has
finished, not all the emails will be sent.

 

Is there a way to trigger a script to run on the server (in the background)?

 

I had the thought to save the notice to the DB, and then have a cron check
every few minutes to send it, but that could be too much load on the
servers.  Any other alternatives?

 

Thanks!

 

~J

 

Ps.  No, this is not a spam application - it is a notice/announcement form
for directors/administrators of an organization



[PHP] PHP sendmail proxy (using xinetd)

2006-11-26 Thread Kelly Jones

I'm trying to write a sendmail proxy in PHP: people would connect to
my proxy running on port 25 (via xinetd), and the proxy would connect
to sendmail (tweaked to run on port 26).

Currently, the proxy is 100% transparent, but I plan to tweak it to
intercept sendmail's replies and substitute its own. My ultimate goal
is to implement sender-recipient-based greylisting (not IP-based
greylisting, which can be done without a proxy).

My problem: the proxy works fine when I test it, but seems to cutoff
some clients. I send the clients a "message accepted for delivery"
message and close the connection, but the client thinks it's been
cutoff and tries to deliver the mail again a little later (ironically,
this is the behavior I'll want when I start greylisting, but not
now!). This happens w/ legitimate ISP SMTP clients, not just spammers.

I suspect I'm doing something wrong with buffering or flushing. I made
both STDIN and the socket connection (to port 26, where sendmail's
running for real) nonblocking, since it's hardish to tell which one's
going to "speak" next.

Is there any generic proxy code I could use? An existing PHP sendmail
proxy would be even better.

Note: I realize that using a proxy means that *all* sendmail
connections appear to come from localhost, which is dangerous. Once in
production, my proxy will handle this situation by using xinetd's
REMOTE_HOST environment variable.

--
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Sendmail issue

2006-03-02 Thread t20040727 . 1430
> > -Original Message-
> > From: Dave Goodchild [mailto:[EMAIL PROTECTED] 
> > Sent: Thursday, March 02, 2006 1:07 PM
> > To: php-general@lists.php.net
> > Subject: [PHP] Sendmail issue
> > 
> > 
> > Hi all, I am trying to trigger a php script by sending an 
> > email to it. The
> > script commences with
> > 
> > #!/usr/local/bin/php
> > 
> > to run as a general cgi, and then proceeds to access the 
> > email by opening
> > php://stdin. I get all that.
> > 
> > However, I am editing the /etc/aliases file to create an 
> > email alias for the
> > script by inserting the following line:
> > 
> > agecon "/|/home/agecon/dm/ac_incomingphp"
> > 
> > ...as per the usual process, the user where my files are is 
> > called agecon,
> > so I expect that when I send an email to [EMAIL PROTECTED] it 
> > will be passed
> > the the script. I ran sendmail -bi to update the alias after 
> > editing but
> > when I send the email nothing happens. Am I missing something.
> > 
> > I understand that this is a php/Linux question rather than a pure php
> > inquiry but wonder if anyone has tried to do the same thing.
> > 
> > Thanks in advance, dave goodchild (web-buddha.co.uk)


Hi Dave,

ensure, that your script has sufficent permissons in sight of the MTA
daemon.
Lets say your sendmail daemon is running under user name "sendmail".
Then make shure, that /home/agecon/dm/ac_incomingphp also is owned by user
sendmail an has the
chmod u+rx /home/agecon/dm/ac_incomingphp
execute permission set, so the #!. in the first line of your script can
get involved.

Maybe this helps.
Ciao.

-- 
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sendmail issue

2006-03-02 Thread John Nichel

Dave Goodchild wrote:

Hi all, I am trying to trigger a php script by sending an email to it. The
script commences with

#!/usr/local/bin/php

to run as a general cgi, and then proceeds to access the email by opening
php://stdin. I get all that.

However, I am editing the /etc/aliases file to create an email alias for the
script by inserting the following line:

agecon "/|/home/agecon/dm/ac_incomingphp"

...as per the usual process, the user where my files are is called agecon,
so I expect that when I send an email to [EMAIL PROTECTED] it will be passed
the the script. I ran sendmail -bi to update the alias after editing but
when I send the email nothing happens. Am I missing something.

I understand that this is a php/Linux question rather than a pure php
inquiry but wonder if anyone has tried to do the same thing.


if your script isn't even getting accessed, it's more of a 
sendmail/Linux question.  I do this for automating quite a few tasks, 
but with qmail...


.qmail-theaddress
|/path/to/php/script.php

You can read the contents of the email, line for line with...

while ( $line = fgets ( STDIN ) ) {
//  do stuff
}

--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sendmail issue

2006-03-02 Thread Stut

Dave Goodchild wrote:


However, I am editing the /etc/aliases file to create an email alias for the
script by inserting the following line:

agecon "/|/home/agecon/dm/ac_incomingphp"
 



Shouldn't this read...

agecon: "| /home/agecon/dm/ac_incomingphp"


I'm not an expert at this stuff, but that's how mine look.

-Stut

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Sendmail issue

2006-03-02 Thread Dave Goodchild
Hi all, I am trying to trigger a php script by sending an email to it. The
script commences with

#!/usr/local/bin/php

to run as a general cgi, and then proceeds to access the email by opening
php://stdin. I get all that.

However, I am editing the /etc/aliases file to create an email alias for the
script by inserting the following line:

agecon "/|/home/agecon/dm/ac_incomingphp"

...as per the usual process, the user where my files are is called agecon,
so I expect that when I send an email to [EMAIL PROTECTED] it will be passed
the the script. I ran sendmail -bi to update the alias after editing but
when I send the email nothing happens. Am I missing something.

I understand that this is a php/Linux question rather than a pure php
inquiry but wonder if anyone has tried to do the same thing.

Thanks in advance, dave goodchild (web-buddha.co.uk)


Re: [PHP] sendmail crash

2005-01-21 Thread Michiel van der Blonk
Hi

New results: This problem does not seem to be Smarty related, although it
did occur when
Smarty tried to read from memory. Probable cause: PEAR was missing a field
in the ini file where the email address was defined, which resulted in empty
addresses being given to sendmail. Sendmail doesn't return an error, but
does cause apache to crash later on. I will take this up with PEAR
DB_DataObject people.

Michiel
*
Michiel van der Blonk
CaribMedia Marketing & Consultancy N.V.
Oranjestad, Aruba
Tel: (297) 583-4144 Fax: (297) 582-6102
http://www.caribmedia.com
 
Website Design, Web Application Development,
Web Hosting, Internet Marketing
 
Operators of:
Visit Aruba - http://www.VisitAruba.com
Aruba Links - http://www.ArubaLinks.com
Aruba Business Directory - http://www.visitaruba.com/business/
Aruba Real Estate Locator - http://www.arubarealestate.com
Aruba Bulletin Board - http://bb.visitaruba.com/
Aruba Trip Reports - http://tripreports.visitaruba.com
Aruba Chat - http://chat.visitaruba.com
The VisitAruba Plus SAVINGS CARD - http://www.visitaruba.com/plus/
Contents of this communication are confidential and legally privileged. This
document is intended solely for use of the individual(s) or entity/entities
to whom it is addr
"Michiel van der Blonk" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
>
> >  > Is the above the ACTUAL email you are sending?
> Haha. That would be a funny email. No, this is just sample text. The
actual
> email is 8KB and contains no images/attachments.
>
> > (I just tried googling the problem but the only thing that seemed
> > related that I came up with were Michiel posts :-S )
> Yeah I tried that too... I feel so alone..
>
> Anyway, some new information: I found a workaround. I am using the Smarty
> template engine. When I delete all smarty variables from the template I do
> get a page, instead of the 404. So, it must mean that Smarty trips over
> something that either sendmail or the PEAR code does. When I take out the
> sendmail line everything also works fine, so it's a combination of things.
>
> The only remaining problem is this pain in the back of my head in the
> 'Mental Frustration' lobe.
>
> Any new insights are welcome. I'll post the problem to the Smarty list.
>
> Michiel
>
> -- 
> *
> Michiel van der Blonk
> CaribMedia Marketing & Consultancy N.V.
> Oranjestad, Aruba
> Tel: (297) 583-4144 Fax: (297) 582-6102
> http://www.caribmedia.com
>  
> Website Design, Web Application Development,
> Web Hosting, Internet Marketing
>  
> Operators of:
> Visit Aruba - http://www.VisitAruba.com
> Aruba Links - http://www.ArubaLinks.com
> Aruba Business Directory - http://www.visitaruba.com/business/
> Aruba Real Estate Locator - http://www.arubarealestate.com
> Aruba Bulletin Board - http://bb.visitaruba.com/
> Aruba Trip Reports - http://tripreports.visitaruba.com
> Aruba Chat - http://chat.visitaruba.com
> The VisitAruba Plus SAVINGS CARD - http://www.visitaruba.com/plus/
> Contents of this communication are confidential and legally privileged.
This
> document is intended solely for use of the individual(s) or
entity/entities
> to whom it is addr
> "Jochem Maas" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Richard Lynch wrote:
> >  > Michiel van der Blonk wrote:
> >  >
> >
> > ...
> >
> >  >
> >  > Is the above the ACTUAL email you are sending?
> >  >
> >  > Or merely a demonstrative sample?
> >  >
> >  > Cuz, like, if the email you are REALLY sending is *HUGE* then I'd not
> be
> >  > surprised by the messages above...
> >  >
> >
> > Richard, what do you consider huge. I mean people (read: some of my
> > idiot co-worker) happily send 10Meg attachments via sendmail all day
> > long (okay so its not via PHP, but I sometimes use the phpMailer script
> > to send emails using PHP/sendmail and I have successfully done so with
> > 10+ Megs of files attached).
> >
> > is it possible he is hitting a PHP memory limit?
> >
> > (I just tried googling the problem but the only thing that seemed
> > related that I came up with were Michiel posts :-S )

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sendmail crash

2005-01-14 Thread Michiel van der Blonk
Hi

>  > Is the above the ACTUAL email you are sending?
Haha. That would be a funny email. No, this is just sample text. The actual
email is 8KB and contains no images/attachments.

> (I just tried googling the problem but the only thing that seemed
> related that I came up with were Michiel posts :-S )
Yeah I tried that too... I feel so alone..

Anyway, some new information: I found a workaround. I am using the Smarty
template engine. When I delete all smarty variables from the template I do
get a page, instead of the 404. So, it must mean that Smarty trips over
something that either sendmail or the PEAR code does. When I take out the
sendmail line everything also works fine, so it's a combination of things.

The only remaining problem is this pain in the back of my head in the
'Mental Frustration' lobe.

Any new insights are welcome. I'll post the problem to the Smarty list.

Michiel

-- 
*
Michiel van der Blonk
CaribMedia Marketing & Consultancy N.V.
Oranjestad, Aruba
Tel: (297) 583-4144 Fax: (297) 582-6102
http://www.caribmedia.com
 
Website Design, Web Application Development,
Web Hosting, Internet Marketing
 
Operators of:
Visit Aruba - http://www.VisitAruba.com
Aruba Links - http://www.ArubaLinks.com
Aruba Business Directory - http://www.visitaruba.com/business/
Aruba Real Estate Locator - http://www.arubarealestate.com
Aruba Bulletin Board - http://bb.visitaruba.com/
Aruba Trip Reports - http://tripreports.visitaruba.com
Aruba Chat - http://chat.visitaruba.com
The VisitAruba Plus SAVINGS CARD - http://www.visitaruba.com/plus/
Contents of this communication are confidential and legally privileged. This
document is intended solely for use of the individual(s) or entity/entities
to whom it is addr
"Jochem Maas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Richard Lynch wrote:
>  > Michiel van der Blonk wrote:
>  >
>
> ...
>
>  >
>  > Is the above the ACTUAL email you are sending?
>  >
>  > Or merely a demonstrative sample?
>  >
>  > Cuz, like, if the email you are REALLY sending is *HUGE* then I'd not
be
>  > surprised by the messages above...
>  >
>
> Richard, what do you consider huge. I mean people (read: some of my
> idiot co-worker) happily send 10Meg attachments via sendmail all day
> long (okay so its not via PHP, but I sometimes use the phpMailer script
> to send emails using PHP/sendmail and I have successfully done so with
> 10+ Megs of files attached).
>
> is it possible he is hitting a PHP memory limit?
>
> (I just tried googling the problem but the only thing that seemed
> related that I came up with were Michiel posts :-S )

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] sendmail crash

2005-01-12 Thread Jochem Maas
Richard Lynch wrote:
> Michiel van der Blonk wrote:
>
...
>
> Is the above the ACTUAL email you are sending?
>
> Or merely a demonstrative sample?
>
> Cuz, like, if the email you are REALLY sending is *HUGE* then I'd not be
> surprised by the messages above...
>
Richard, what do you consider huge. I mean people (read: some of my 
idiot co-worker) happily send 10Meg attachments via sendmail all day 
long (okay so its not via PHP, but I sometimes use the phpMailer script 
to send emails using PHP/sendmail and I have successfully done so with 
10+ Megs of files attached).

is it possible he is hitting a PHP memory limit?
(I just tried googling the problem but the only thing that seemed 
related that I came up with were Michiel posts :-S )

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] sendmail crash

2005-01-12 Thread Richard Lynch
Michiel van der Blonk wrote:
> I am having a problem with sendmail. It gives me a segfault when I use the
> Mail and Mail_Mime package right when I call sendmail.
>
> I am using the following params
> Array
> (
> [host] => localhost
> [port] => 25
> [auth] => 1
> [username] => account
> [password] => secret
> [sendmail_path] => /path/to/sendmail
> )
>
> Then I prepare and call the send command
> $hdrs = array(
> 'From'=> $from,
> 'Subject' => "Confirmation for $person->FIRST_NAME
> $person->LAST_NAME",
> 'Bcc' => [EMAIL PROTECTED]
> );
>
> $mime = new Mail_mime($crlf);
> $text="text";
> $html="text";
> $mime->setTXTBody($text);
> $mime->setHTMLBody($html);
> $mail =& Mail::factory('sendmail', $params);
> return $mail->send($person->EMAIL, $hdrs, $body);
>
> Result: Apache error messages:
> emalloc: cannot allocate ... bytes
> and also
> erealloc: cannot allocate ... bytes

Is the above the ACTUAL email you are sending?

Or merely a demonstrative sample?

Cuz, like, if the email you are REALLY sending is *HUGE* then I'd not be
surprised by the messages above...

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] sendmail crash

2005-01-12 Thread Michiel van der Blonk
Hi

I am having a problem with sendmail. It gives me a segfault when I use the
Mail and Mail_Mime package right when I call sendmail.

I am using the following params
Array
(
[host] => localhost
[port] => 25
[auth] => 1
[username] => account
[password] => secret
[sendmail_path] => /path/to/sendmail
)

Then I prepare and call the send command
$hdrs = array(
'From'=> $from,
'Subject' => "Confirmation for $person->FIRST_NAME
$person->LAST_NAME",
'Bcc' => [EMAIL PROTECTED]
);

$mime = new Mail_mime($crlf);
$text="text";
$html="text";
$mime->setTXTBody($text);
$mime->setHTMLBody($html);
$mail =& Mail::factory('sendmail', $params);
return $mail->send($person->EMAIL, $hdrs, $body);

Result: Apache error messages:
emalloc: cannot allocate ... bytes
and also
erealloc: cannot allocate ... bytes

I just upgraded to php 4.3.10 on FreeBSD.

any ideas?

Michiel
-- 


Kind regards,
Michiel
*
Michiel van der Blonk
CaribMedia Marketing & Consultancy N.V.
Oranjestad, Aruba
Tel: (297) 583-4144 Fax: (297) 582-6102
http://www.caribmedia.com
 
Website Design, Web Application Development,
Web Hosting, Internet Marketing
 
Operators of:
Visit Aruba - http://www.VisitAruba.com
Aruba Links - http://www.ArubaLinks.com
Aruba Business Directory - http://www.visitaruba.com/business/
Aruba Real Estate Locator - http://www.arubarealestate.com
Aruba Bulletin Board - http://bb.visitaruba.com/
Aruba Trip Reports - http://tripreports.visitaruba.com
Aruba Chat - http://chat.visitaruba.com
The VisitAruba Plus SAVINGS CARD - http://www.visitaruba.com/plus/
Contents of this communication are confidential and legally privileged. This
document is intended solely for use of the individual(s) or entity/entities
to whom it is addr

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sendmail Return-Path

2004-07-27 Thread Enda Nagle - Lists
Hi Justin,

I just tried this code:

$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: Webstore <[EMAIL PROTECTED]>\n";
$headers .= "To: $email_address\n";
$headers .= "Bcc: [EMAIL PROTECTED]";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: My Website\n";
$headers .= "X-Return-path: ME <[EMAIL PROTECTED]>\n";
$subject = "Your Order";
$from = "[EMAIL PROTECTED]";

$message .="xx";

mail($to, $subject, $message, $from, $headers)
 or print "Could not send mail to customer";

But I get a SAFE MODE error, so I guess I¹ll just have to try that PEAR
package.

Regards

Enda
--

On 27/07/2004 22:25, "Justin Patrin" <[EMAIL PROTECTED]> wrote:

> On Tue, 27 Jul 2004 22:07:52 +0100, Enda Nagle - Lists
> <[EMAIL PROTECTED]> wrote:
>> > Hi Guys,
>> > 
>> > I¹m using PHP¹s mail() function on several sites, but have difficulty
>> > sometimes with the mails being tagged as SPAM.
>> > 
>> > I want to have the Return-Path set to the site admin, but can¹t see where
>> to
>> > do this.
>> > 
>> > I know that it can be done at server root level but I can¹t really do that
>> > as its a shared server.
>> > 
>> > I do have my own php.ini file for my site, but can only see the following
>> > vars:
>> > 
>> > mail function]
>> > ; For Win32 only.
>> > SMTP = localhost
>> > 
>> > ; For Win32 only.
>> > sendmail_from = [EMAIL PROTECTED]
>> > 
>> > ; For Unix only.  You may supply arguments as well (default: "sendmail -t
>> > -i").
>> > sendmail_path = /usr/sbin/sendmail -t -i
>> > 
>> > I¹m working off a Linux box, so presumably I can¹t use the sendmail_from
>> > variable?
> 
> Nope, that's only for windows.
> 
>> > 
>> > I also tried to set the following variable in the headers for the mail:
>> > 
>> > $headers .= "X-Return-path: ME <[EMAIL PROTECTED]>\r\n";
> 
> This should work if you put it in the right place in the call. Try
> just \n as well. If it doesn't work, try using a mailing class such
> as:
> 
> http://pear.php.net/package/Mail
> 
>> > 
>> > Any help appreciated,
>> > 
>> > Thanks
>> > 
>> > Enda
>> > --
>> > 
>> > - + - + - + - + - + - + - + - + - + - + - + - + -
>> > 
>> > Enda Nagle
>> > +353 86 168 0774
>> > [EMAIL PROTECTED]
>> > www.category9.com
>> > 
>> > - + - + - + - + - + - + - + - + - + - + - + - + -
>> > 
>> > !DSPAM:4106c542182671082813648!
>> > 
> 




Re: [PHP] Sendmail Return-Path

2004-07-27 Thread Curt Zirzow
* Thus wrote Enda Nagle - Lists:
> Hi Guys,
> 
> I¹m using PHP¹s mail() function on several sites, but have difficulty
> sometimes with the mails being tagged as SPAM.
> 
> I want to have the Return-Path set to the site admin, but can¹t see where to
> do this.
> 
> I know that it can be done at server root level but I can¹t really do that
> as its a shared server.
> 
> ...
> 
> I¹m working off a Linux box, so presumably I can¹t use the sendmail_from
> variable?
> 
> I also tried to set the following variable in the headers for the mail:
> 
> $headers .= "X-Return-path: ME <[EMAIL PROTECTED]>\r\n";

use the 5th parameter to mail();

  mail(..., '-f "ME <[EMAIL PROTECTED]>"');


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sendmail Return-Path

2004-07-27 Thread Justin Patrin
On Tue, 27 Jul 2004 22:07:52 +0100, Enda Nagle - Lists
<[EMAIL PROTECTED]> wrote:
> Hi Guys,
> 
> I¹m using PHP¹s mail() function on several sites, but have difficulty
> sometimes with the mails being tagged as SPAM.
> 
> I want to have the Return-Path set to the site admin, but can¹t see where to
> do this.
> 
> I know that it can be done at server root level but I can¹t really do that
> as its a shared server.
> 
> I do have my own php.ini file for my site, but can only see the following
> vars:
> 
> mail function]
> ; For Win32 only.
> SMTP = localhost
> 
> ; For Win32 only.
> sendmail_from = [EMAIL PROTECTED]
> 
> ; For Unix only.  You may supply arguments as well (default: "sendmail -t
> -i").
> sendmail_path = /usr/sbin/sendmail -t -i
> 
> I¹m working off a Linux box, so presumably I can¹t use the sendmail_from
> variable?

Nope, that's only for windows.

> 
> I also tried to set the following variable in the headers for the mail:
> 
> $headers .= "X-Return-path: ME <[EMAIL PROTECTED]>\r\n";

This should work if you put it in the right place in the call. Try
just \n as well. If it doesn't work, try using a mailing class such
as:

http://pear.php.net/package/Mail

> 
> Any help appreciated,
> 
> Thanks
> 
> Enda
> --
> 
> - + - + - + - + - + - + - + - + - + - + - + - + -
> 
> Enda Nagle
> +353 86 168 0774
> [EMAIL PROTECTED]
> www.category9.com
> 
> - + - + - + - + - + - + - + - + - + - + - + - + -
> 
> !DSPAM:4106c542182671082813648!
> 


-- 
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder

paperCrane --Justin Patrin--

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Sendmail Return-Path

2004-07-27 Thread Enda Nagle - Lists
Hi Guys,

I¹m using PHP¹s mail() function on several sites, but have difficulty
sometimes with the mails being tagged as SPAM.

I want to have the Return-Path set to the site admin, but can¹t see where to
do this.

I know that it can be done at server root level but I can¹t really do that
as its a shared server.

I do have my own php.ini file for my site, but can only see the following
vars:

mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]

; For Unix only.  You may supply arguments as well (default: "sendmail -t
-i").
sendmail_path = /usr/sbin/sendmail -t -i

I¹m working off a Linux box, so presumably I can¹t use the sendmail_from
variable?

I also tried to set the following variable in the headers for the mail:

$headers .= "X-Return-path: ME <[EMAIL PROTECTED]>\r\n";

Any help appreciated,

Thanks

Enda
--


- + - + - + - + - + - + - + - + - + - + - + - + -

Enda Nagle
+353 86 168 0774
[EMAIL PROTECTED]
www.category9.com

- + - + - + - + - + - + - + - + - + - + - + - + -




[PHP] Sendmail wrapper

2004-02-02 Thread Federico Petronio
Hi all... I have a chrooted Apache/PHP on Solaris 8 working fine except 
for one PHP function, mail(). I read that in Unix environments there is 
not possible to make PHP use a remote SMTP and it needs to find a 
sendmail executable un the path.

Since including Postfix in the chrooted env. does not look very nice, I 
try to use a wapper (local_FS->remote_SMTP), but I am not happy with the 
one I found. It does not handle well the CC, nor the BCC so I change it 
a little, but still have issues (for explample if the SMTP does not 
responds, it don't try angain and the mail is lost).

Do you know some sendmail wrapper to recomend?

Any help is welcome... Bye!
--
Federico Petronio
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] sendmail vs smpt

2003-12-02 Thread David T-G
Pablo --

...and then Pablo Gosse said...
% 
% Hi all.  I'm curious as to the performance difference between scripts
% that use sendmail vs. smtp for their mailing abilities.

Using sendmail will almost always be very very much faster because

  - you're talking to the local machine
  - you're offloading the mail process to something else

and so if you can do so -- even if your machine is only set up with a
"dumb" mailer that only knows how to talk to your U's smarthost -- I
would recommend that you run, not walk, to do so :-)


HTH & HAND

:-D
-- 
David T-G  * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/  Shpx gur Pbzzhavpngvbaf Qrprapl Npg!



pgp0.pgp
Description: PGP signature


[PHP] sendmail vs smpt

2003-12-02 Thread Pablo Gosse
Hi all.  I'm curious as to the performance difference between scripts
that use sendmail vs. smtp for their mailing abilities.

 

I use the following class for delivering emails,
http://phpmailer.sourceforge.net  ,
and since I don't have sendmail running on my local machine I'm using
the smtp server of the university where I work to deliver my messages.
However, it seems to be a bit sluggish.

 

I'm going to run a test of switching the mail handler from smtp to
sendmail once the application is in its permanent home in a few weeks,
but for now does anyone have any opinions on this, and is there any
advantage to using one over the other?

Thanks in advance,

Pablo



Re: [PHP] Sendmail Problem

2003-06-15 Thread Don Read

On 10-Jun-2003 Uma Shankari T. wrote:
> 
> Hello,
> 
>   I am having some problem in sendmail using this code.
> 
>  $MP = "/usr/sbin/sendmail -t -f  [EMAIL PROTECTED]";
> 



> by main server id name..because of this outside mails are bouncing back..
> 
> Can any one pls tell me where is the problem ??
> 

What does the bounce say ?

> Is there any configuration need to do for this ??
> 

Probably. The -f option sets the envelope 'From:' and can be restricted to
only 'trusted' users. I don't think this has ever been used to specify a
gateway.

The following is *wrong* -but one of them might get you out:

To: @mainservername:<[EMAIL PROTECTED]>
 -- or --
To: <[EMAIL PROTECTED]>@mainservername

 ... and the sysadmin will probably whack your pee-pee for doing that. 

So let him/her know beforehand so they don't TOS you. 

And the last resort is fsockopen(mainservername, 25)


Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Sendmail Problem

2003-06-09 Thread Uma Shankari T.

Hello,

  I am having some problem in sendmail using this code.

 $MP = "/usr/sbin/sendmail -t -f  [EMAIL PROTECTED]";

i am running this program in one of the server not in the main server..

actually mail will go from this server to  mainserver which will 
deliver the mails outside..but using this server only internal mails will 
go..if i send mail using this code mails will go from this server id not 
by main server id name..because of this outside mails are bouncing back..

Can any one pls tell me where is the problem ??

Is there any configuration need to do for this ??


Regards,
Uma


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Sendmail function

2003-01-25 Thread Chris Hewitt
Christian Ista wrote:


Hello,

A friend would like to know how to check on the server (dedicated) if the
function sendmail is enable or not, how ? if not activated how activate ?

Thanks,



If I understand your question correctly (and I may not):

Assuming RedHat linux, then as root "which sendmail" should return you 
something like "/usr/sbin/sendmail". This would tell you that it is 
installed. "ps ax | grep sendmail" should give you "sendmail: accepting 
connections". This would mean that it is running.

If it is installed but not running, then "chkconfig --list sendmail" 
will list the runlevels that it is set to run under. Normally it is 2, 
3, 4 and 5. "chkconfig --level 2345 sendmail on" will set it to run at 
those runlevels, and "service sendmail start" will start it up 
immediately if it is not running.

Hope this helps

Chris



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Sendmail function

2003-01-25 Thread Christian Ista
Hello,

A friend would like to know how to check on the server (dedicated) if the
function sendmail is enable or not, how ? if not activated how activate ?

Thanks,



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] RE: php/sendmail/apache/linux...

2003-01-24 Thread Bruce Douglas
Brian

The following information is what I have...

I created the following PHP app I'm running it from the command line.

-
#! /usr/bin/php -q

-

The response was:
---

mail = false

---


As you can see, the mail app failed.. The information from the
/var/spool/clientmqueue/ dir is:


[root@lserver2 savannah]# more < /var/spool/clientmqueue/dfh0P2qeLE006055

This is a MIME-encapsulated message

--h0P2qeLE006055.1043463166/lserver2.mesa.com

The original message was received at Fri, 24 Jan 2003 18:52:40 -0800
from root@localhost

   - The following addresses had permanent fatal errors -
[EMAIL PROTECTED]
(expanded from: [EMAIL PROTECTED])

   - Transcript of session follows -
550 5.1.2 [EMAIL PROTECTED] Host unknown (Name server: [localhost]:
host not found)

--h0P2qeLE006055.1043463166/lserver2.mesa.com
Content-Type: message/delivery-status

Reporting-MTA: dns; lserver2.mesa.com
Arrival-Date: Fri, 24 Jan 2003 18:52:40 -0800

Final-Recipient: RFC822; [EMAIL PROTECTED]
Action: failed
Status: 5.1.2
Remote-MTA: DNS; [localhost]
Last-Attempt-Date: Fri, 24 Jan 2003 18:52:45 -0800

--h0P2qeLE006055.1043463166/lserver2.mesa.com
Content-Type: message/rfc822

Return-Path: 
Received: (from root@localhost)
  by lserver2.mesa.com (8.12.5/8.12.5/Submit) id h0P2qeLD006055;
  Fri, 24 Jan 2003 18:52:40 -0800
Date: Fri, 24 Jan 2003 18:52:40 -0800
From: root 
Message-Id: <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: test

Name: www
E-mail Address: [EMAIL PROTECTED]


--h0P2qeLE006055.1043463166/lserver2.mesa.com--

==

[root@lserver2 savannah]# more < /var/spool/clientmqueue/Qfh0P2qeLE006055
V6
T1043463166
K0
N0
P31120
I3/2/1991420
Fr
$_localhost
$r
$slocalhost
${daemon_flags}c u
SMAILER-DAEMON
C:root
rRFC822; [EMAIL PROTECTED]
RPF:root
H?P?Return-Path: 
H??Received: from localhost (localhost)
  by lserver2.mesa.com (8.12.5/8.12.5/Submit) id h0P2qeLE006055;
  Fri, 24 Jan 2003 18:52:46 -0800
H?D?Date: Fri, 24 Jan 2003 18:52:46 -0800
H?F?From: Mail Delivery Subsystem 
H?x?Full-Name: Mail Delivery Subsystem
H?M?Message-Id: <[EMAIL PROTECTED]>
H??To: root
H??MIME-Version: 1.0
H??Content-Type: multipart/report; report-type=delivery-status;
  boundary="h0P2qeLE006055.1043463166/lserver2.mesa.com"
H??Subject: Returned mail: see transcript for details
H??Auto-Submitted: auto-generated (failure)
.



The above files are pretty much greek to me!! Other than telling me it can't
seem to handle the [EMAIL PROTECTED] address... which is odd... As a
test, I changed the email address.. I get the same response...

Is there something that I'm missing that has to be set for this to work

I have Linux Redhat 8.0, PHP 4.2.2...

I have the sendmail RPM and the PHP RPMs from the Redhat 8.0 installation
disks

Any help/assistance will be appreciated

Thanks...

Bruce
[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Brian Schmidt
Sent: Friday, January 24, 2003 6:04 PM
To: [EMAIL PROTECTED]
Subject: RE: php/sendmail/apache/linux...


On Fri, 24 Jan 2003, Bruce Douglas wrote:

> However, as I stated, I'm fairly sure that the Sendmail app is working
given
> that I was able to send an email from the command line when i did a telnet
> localhost 25
>
> I'm just not certain as to how to do it through PHP

Bruce,
How about trying something really simple like this. I know it works.
It's part of an HTML form I've used, so you'll need one with a $name,
$email, and $morestuff input section:

  $toaddress = "[EMAIL PROTECTED]";
  $subject = "My Subject";
  $mailcontent = "Name: ".$name."\n"
 ."E-mail Address: ".$email."\n"
 ."Additional Information: \n".$morestuff."\n";
  mail($toaddress, $subject, $mailcontent);

>
> thanks
>
> bruce
> [EMAIL PROTECTED]
>
>
> -----Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Lucas Albers
> Sent: Friday, January 24, 2003 4:12 PM
> To: [EMAIL PROTECTED]
> Subject: RE: php/sendmail/apache/linux...
>
>
> Test the mailserver with the command
>
> cat message.txt | mail -f [EMAIL PROTECTED]
>
> User the Perl sendmail mail wrapper to send the mail.
> http://search.cpan.org/src/MIVKOVIC/Mail-Sendmail-0.78_5/README
>
>
> > --Luke
> > --Computer Science Sysadmin, MSU Bozeman
> > --admin(AT)cs.montana.edu 994-3931
>
> > -Original M

[PHP] php/sendmail/apache/linux...

2003-01-24 Thread Bruce Douglas
hey...

I'm sure the question has been answered a 1000 times!!! I'm trying to create
a simple app to send email via PHP, using the "mail" function.

I'm using RedHat(Linux 8.0 , Sendmail), PHP(4.2.2), Apache (2.0.40).

I'm using the following piece of code:

===
//test mail
$to = "[EMAIL PROTECTED]";
$subject = "savannah registration";
$message = " testing mail";
$reply = "From: [EMAIL PROTECTED]\r\n"
."Reply-To: [EMAIL PROTECTED]\r\n";

echo"
 to = " . $to . "";

echo"
 subject = " . $subject . "";

echo"
 msg = " . $message . "";

echo"
 reply = " . $reply . "";

 $q1 = mail($to, $subject, $message, $reply);
echo"
 return val  = " . $q1 . "";


===

Pretty simple eh... The problem that I have is that the mail doesn't appear
to get sent. When I look in the /var/spool/clientmqueue directory, I see a
great deal of what look to be error msgs They appear to be telling me
that the mail couldn't be delivered, but I can't tell why

I was able to successfully send a test msg via Sendmail from the command
line by telnet. So I know the Sendmail engine/daemon seems to be
performing... The PHP.ini file appears to be setup correctly, with the
sendmail_path pointing to sendamil.

Any ideas as to what I need to do, or should be checking

Any pointers/assistance would be greatly appreciated.


Thanks

-Bruce
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP sendmail configuration

2003-01-07 Thread Petre Agenbag
The problem you are having took me a while to grasp. Basically, what
happens is that sendmail sends the mail as the user php/apache was
installed as (usually nobody@ or apache@ yourdomain.com).
Setting the Return-Path does not work, as you cannot override the
Return-Path set by the server in this way, that's why messages bounce to
your root account when sent with a php mail() function. If you only host
one domain on a server, you can fix this by editing the sendmail.cf file
and setting the Return-Path: to something more meaningful: However, most
people don't have the luxury of having a "one domain" hosting solution.

Your only other option is to invoke sendmail with the -f switch:
sendmail -f sender@address recipient@address  richard check your php.ini & the mail stuff in there .. it's most likely
> using the address either there or ur web server config file
> 
> > -Original Message-
> > From: Richard Baskett [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, 7 January 2003 10:49 AM
> > To: PHP General
> > Subject: [PHP] PHP sendmail configuration
> >
> >
> > Ok I know it's off topic, but I've been working on this for over
> > 5 hours now
> > and I almost have it configured, but something is definitely wrong!
> > Basically I can send email using sendmail by this command:
> >
> > echo "Just a test" | mail -s "test" [EMAIL PROTECTED]
> >
> > Now [EMAIL PROTECTED] receives the email, but the From address is
> > [EMAIL PROTECTED] and I have no idea where it is getting that
> > address from!  Does anyone know how I can change that from address?
> >
> > And what would stop the above command from delivering to certain
> > valid email
> > addresses?
> >
> > This is definitely causing problems with my php server also when trying to
> > send emails...
> >
> > Rick
> >
> > "Only a life lived for others is worth living." - Albert Einstein
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
> >
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP sendmail configuration

2003-01-06 Thread Peter Houchin
richard check your php.ini & the mail stuff in there .. it's most likely
using the address either there or ur web server config file

> -Original Message-
> From: Richard Baskett [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 7 January 2003 10:49 AM
> To: PHP General
> Subject: [PHP] PHP sendmail configuration
>
>
> Ok I know it's off topic, but I've been working on this for over
> 5 hours now
> and I almost have it configured, but something is definitely wrong!
> Basically I can send email using sendmail by this command:
>
> echo "Just a test" | mail -s "test" [EMAIL PROTECTED]
>
> Now [EMAIL PROTECTED] receives the email, but the From address is
> [EMAIL PROTECTED] and I have no idea where it is getting that
> address from!  Does anyone know how I can change that from address?
>
> And what would stop the above command from delivering to certain
> valid email
> addresses?
>
> This is definitely causing problems with my php server also when trying to
> send emails...
>
> Rick
>
> "Only a life lived for others is worth living." - Albert Einstein
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP sendmail configuration

2003-01-06 Thread Richard Baskett
Ok I know it's off topic, but I've been working on this for over 5 hours now
and I almost have it configured, but something is definitely wrong!
Basically I can send email using sendmail by this command:

echo "Just a test" | mail -s "test" [EMAIL PROTECTED]

Now [EMAIL PROTECTED] receives the email, but the From address is
[EMAIL PROTECTED] and I have no idea where it is getting that
address from!  Does anyone know how I can change that from address?

And what would stop the above command from delivering to certain valid email
addresses?

This is definitely causing problems with my php server also when trying to
send emails...

Rick

"Only a life lived for others is worth living." - Albert Einstein


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sendmail Security

2002-12-28 Thread Timothy Hitchens (HiTCHO)
Regardless if mail() takes precautions you should also
check input prior to trusting it.

Note:  If mail does or doesn't if it changes in the future you
are covered if you always check.

I would suggest a simple addslashes and the (shell/sendmail)
will be fine OR better still do an array with  a callback
either removal or addslashes equiv.



Timothy Hitchens (HiTCHO)
[EMAIL PROTECTED]


If you need PHP hosting with an experienced
support team 24/7 then email me today.

On Sat, 28 Dec 2002, Beth Gore wrote:

> Hi,
>
> If I'm taking an URL as user input from in a form, and then emailing
> that URL back to them as part of a larger message, how do I ensure that
> no-one sends anything strange to run shell commands through sendmail?
>
> Could anyone confirm that mail() or even sendmail does take precautions
> against shell commands being executed in the message body of the email?
>
> If not, is there an easy way to remove everything except
> ":","/",".","a-Z","0-9"? I've written very complicated things in the
> past and I'm sure there must be an easier way!!!
>
> I've already made sure it's not possible to abuse sendmail with the
> user's email address, but I'm still nervous.
>
> Thanks!
>
> --
> Beth Gore
> http://www.habitformer.co.uk
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Sendmail Security

2002-12-28 Thread Beth Gore
Hi,

If I'm taking an URL as user input from in a form, and then emailing 
that URL back to them as part of a larger message, how do I ensure that 
no-one sends anything strange to run shell commands through sendmail?

Could anyone confirm that mail() or even sendmail does take precautions 
against shell commands being executed in the message body of the email?

If not, is there an easy way to remove everything except 
":","/",".","a-Z","0-9"? I've written very complicated things in the 
past and I'm sure there must be an easier way!!!

I've already made sure it's not possible to abuse sendmail with the 
user's email address, but I'm still nervous.

Thanks!

--
Beth Gore
http://www.habitformer.co.uk


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Sendmail

2002-12-10 Thread Peter Houchin
check out sendmail.org

> -Original Message-
> From: Kris [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 11 December 2002 6:03 PM
> To: PHP List
> Subject: [PHP] Sendmail
> 
> 
> Hey Guys
> 
> I know this is off subject but you people seem to be the only 
> people on the net that know anything :)
> 
> I'm running Solaris 8 and the version of sendmail that comes with that.
> I was sending a batch of emails before with sendmail. I got an 
> error message:
> Sendmail [5899]: gBB1Eov05899: SYSERR(nobody): deliver: for k 1: 
> Not enough space
> 
> Do you know how I can get around this and make it run??
> 
> Thanks 
> 
> Kris
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Sendmail

2002-12-10 Thread Kris
Hey Guys

I know this is off subject but you people seem to be the only people on the net that 
know anything :)

I'm running Solaris 8 and the version of sendmail that comes with that.
I was sending a batch of emails before with sendmail. I got an error message:
Sendmail [5899]: gBB1Eov05899: SYSERR(nobody): deliver: for k 1: Not enough space

Do you know how I can get around this and make it run??

Thanks 

Kris



[PHP] Sendmail

2002-12-10 Thread Kris
Hey Guys

I know this is off subject but you people seem to be the only people on the net that 
know anything :)

I'm running Solaris 8 and the version of sendmail that comes with that.
I was sending a batch of emails before with sendmail. I got an error message:
Sendmail [5899]: gBB1Eov05899: SYSERR(nobody): deliver: for k 1: Not enough space

Do you know how I can get around this and make it run??

Thanks 

Kris



[PHP] sendmail problem!

2002-11-27 Thread Siamak
hi
I use PEAR to send mails to my users through "sendmail", my mails sometimes
are delivered immediately, sometimes after some minutes and sometimes after
some hours and sometimes never! I tried to identify the cause but I wasn't
successful, is there someone out there who can help me? I want to send an
immediate message to my newly signed up users.
Tanks a lot before




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] sendmail problem

2002-11-14 Thread Jeff Bluemel
OK - I got the rasmail codes from Zend.com's code library.  it is working
perfectly for my application except for one problem.  the email I am using
to send has a .pdf file attachment.

I can open that PDF file up directly from the site after it is created, but
I cannot open the file attachment up.  it seems the coding is wrong of
something like that so that the attachment is getting corrupted.

I have emailed the author for assistance, but haven't receive a response.
I'm hoping somebody here can assist me.

here is the part of code;

function Attachment($attachedfile) {
  if ($attachedfile) {
  $pf=@fopen($attachedfile,"r") or die($this->ErrorOutput(9));
  $bytes=fread($pf,filesize($attachedfile));
  $file=chunk_split(base64_encode($bytes));
  fclose($pf);
  }



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Sendmail "return-path" from my virtual webhost

2002-07-29 Thread Al

Emails sent from my php scripts, using sendmail, all have a goofy 
"return-path" variable in the header.

Is there a way I can correct this, or does it require a change to the 
sendmail config file that I can't get to?

Thanks...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sendmail doesn't send...

2002-06-26 Thread Jason Wong

On Wednesday 26 June 2002 21:52, Nightshade wrote:

> [mail function]
> SMTP=   localhost   ;for win32
> only
> sendmail_from   =   [EMAIL PROTECTED];for win32 only
> sendmail_path   =   /usr/sbin/  ;for unix
> only,
> may supply arguments as well (default is sendmail -t)
>
> what's wrong on my config?

Are you using unix/linux? If so, then IIRC the sendmail_path is misleading, it 
actually wants the path and file. Thus:

sendmail_path   =   /usr/sbin/sendmail

Usually if your sendmail is in the standard place then leaving sendmail_path 
empty is fine.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Only a fool fights in a burning house.
-- Kank the Klingon, "Day of the Dove", stardate unknown
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sendmail doesn't send...

2002-06-26 Thread Analysis & Solutions

On Wed, Jun 26, 2002 at 03:52:48PM +0200, Nightshade wrote:
> SMTP=   localhost   ;for win32 
> sendmail_from   =   [EMAIL PROTECTED];for win32 only
> sendmail_path   =   /usr/sbin/  ;for unix 

Try commenting out the sendmail_path line with a ";" at the beginning of 
the line.

Also, mail() only works for me when I'm connected to the internet.  Are 
you?

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sendmail doesn't send...

2002-06-26 Thread Chris Hewitt

I don't have the /usr/sbin in mine (I left it at the default blank) and 
it works. Can an ordinary user send emails to the destinations you are 
trying to get to with PHP? If not, then you have a sendmail 
configuration issue.

HTH
Chris

Nightshade wrote:

>[mail function]
>SMTP=   localhost   ;for win32 
>only
>sendmail_from   =   [EMAIL PROTECTED];for win32 only
>sendmail_path   =   /usr/sbin/  ;for unix 
>only,
>may supply arguments as well (default is sendmail -t)
>
>what's wrong on my config?
>tnx
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sendmail doesn't send...

2002-06-26 Thread Nightshade

Adi wrote:

> Look in var/log/maillog or similar for errors
> 
> - Original Message -
> From: "Nightshade" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 26, 2002 3:18 PM
> Subject: [PHP] Sendmail doesn't send...
> 

[mail function]
SMTP=   localhost   ;for win32 
only
sendmail_from   =   [EMAIL PROTECTED];for win32 only
sendmail_path   =   /usr/sbin/  ;for unix 
only,
may supply arguments as well (default is sendmail -t)

what's wrong on my config?
tnx

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sendmail doesn't send...

2002-06-26 Thread adi

Look in var/log/maillog or similar for errors

- Original Message -
From: "Nightshade" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 26, 2002 3:18 PM
Subject: [PHP] Sendmail doesn't send...


> Hi, that's my configuration:
> I've Mdk 8.2
> Today I've installed sendmail for 1st time...
> I tryed to use mail() function, but effectively works only when I send
mail
> to [EMAIL PROTECTED]
> no mails go to the other local user, and specially to external user:
> i.e.
> mail("[EMAIL PROTECTED]",$subj,$msg");
> Any idea?
> tnx
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Sendmail doesn't send...

2002-06-26 Thread Nightshade

Hi, that's my configuration:
I've Mdk 8.2
Today I've installed sendmail for 1st time...
I tryed to use mail() function, but effectively works only when I send mail
to [EMAIL PROTECTED]
no mails go to the other local user, and specially to external user:
i.e.
mail("[EMAIL PROTECTED]",$subj,$msg");
Any idea?
tnx


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] sendmail return-path (not 4 newbies)

2002-05-03 Thread Stuart Dallas

On 3 May 2002 at 12:48, Anthony Rodriguez wrote:
> PROBLEM
> 
> When a php script uses mail() and sendmail, if the e-mail address is
> not right, the e-mail is returned to the envelope sender (the hosting
> provider), NOT to the "From", "Reply-To",  "Return-Path", or any other
> additional headers included in mail().
> 
> Apparently, this problem is faced by any user who utilizes a hosting
> provider.

The envelope address can be set on a per script basis by setting the sendmail_from 
value 
using ini_set(). Alternatively, if you are using Apache, you can set it in a .htaccess 
file.

-- 
Stuart

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] sendmail return-path (not 4 newbies)

2002-05-03 Thread Anthony Rodriguez

PROBLEM

When a php script uses mail() and sendmail, if the e-mail address is not 
right, the e-mail is returned to the envelope sender (the hosting 
provider), NOT to the "From", "Reply-To",  "Return-Path", or any other 
additional headers included in mail().

Apparently, this problem is faced by any user who utilizes a hosting provider.

SOLUTION

I've found 2 php classes (developed by Manuel Lemo) that address this problem.

The first, email_message.php was built to send MIME-encoded messages.

The second, sendmail_message extends the first by addressing the 
return-path problem.

Unfortunately, the first parses the message to allow sending MIME-encoded 
messages.  For many who are only sending plain text messages, this is 
unnecessary processing.

HELP NEEDED

I would like to consolidate these 2 classes and eliminate the 
parsing.  Unfortunately, I'm a newbie and need help from the pros.

If anyone is interested in participating in this project, please e-mail me 
directly at [EMAIL PROTECTED]

After completion this "new" class would be submitted to www.phpclasses.org 
for everyone to use.

Thanks!

Anthony F. Rodriguez
([EMAIL PROTECTED])


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Return path (php/sendmail)

2002-04-12 Thread Analysis & Solutions

Hi Anthony:

On Fri, Apr 12, 2002 at 03:27:14AM -0400, Anthony Rodriguez wrote:
>
> My Web hosting provider runs php (4.1.1) / sendmail (8.10.2) / apache
> (1.3.20) / linux red hat (6.2) and I don't get bounced e-mails.
 
Put a from line in the additional headers argument:
   
   mail($To, $Subject, $Body, "From: $From");

Enjoy,

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Return path (php/sendmail)

2002-04-12 Thread Anthony Rodriguez

Does "Reply-To" works for you?

My Web hosting provider runs php (4.1.1) / sendmail (8.10.2) / apache 
(1.3.20) / linux red hat (6.2) and I don't get bounced e-mails.

Any suggestions?

Tony
([EMAIL PROTECTED])


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sendmail 8.10.2 headers

2002-04-08 Thread Jason Wong

On Monday 08 April 2002 15:44, Anthony Rodriguez wrote:
> As you may know, headers included in the 4th argument of PHP's mail() are
> sent to the outgoing mail server.
>
> What header(s) can I send to sendmail 8.10.2 (running under Linux Redhat
> 6.2) in order for invalid e-mails be returned to my e-mail address rather
> than my hosting provider's default address?

"Return-Path: <[EMAIL PROTECTED]>\r\n";


-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Pound for pound, the amoeba is the most vicious animal on earth.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Sendmail 8.10.2 headers

2002-04-08 Thread Anthony Rodriguez

As you may know, headers included in the 4th argument of PHP's mail() are 
sent to the outgoing mail server.

What header(s) can I send to sendmail 8.10.2 (running under Linux Redhat 
6.2) in order for invalid e-mails be returned to my e-mail address rather 
than my hosting provider's default address?

Thank you!

Tony Rodriguez
([EMAIL PROTECTED])



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Sendmail

2002-02-23 Thread Uma Shankari T.



 Hello,

   
 Can anyone help me in solving this problem..

 For sending mail using sendmail i have written the code like this but it
is giving some error messages in the From address instead of address

 $TO=Me;
 $[EMAIL PROTECTED];


$fd = popen("/usr/sbin/sendmail -t","w");
fputs($fd, "To: $user\n");
fputs($fd, "From: $TO\n");
fputs($fd, "Subect: Feedback\n");
$ver = phpversion();
fputs($fd, "X-Mailer: PHP/FI $ver\n\n");
fputs($fd, "Hii $user,\n $body \n");
pclose($fd);


  Can anyone tell the solution for this.


-Uma


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sendmail, I've had enough of it!

2002-02-22 Thread James Taylor

Ha, I shouldn't even bother posting this as it's pretty irrelevant for this 
list but...

forget qmail, go with Postfix :)  Qmail doesn't have one centralized config 
file, and it gets annoying having to edit this one, then this one, then make 
this file, etc.

Plus, I usually try to avoid Dan Bernstein projects!

On Friday 22 February 2002 11:51 am, you wrote:
> Go with QMAIL
>
> Lots of support (mailing lists, web-sites).  Several books written on it.
> Easier to set-up than sendmail. Very configurable.
> Written by same gent that wrote ezmlm mailing list application (ezmlm
> handles the PHP mailing lists).
>
> goto:  http://cr.yp.to/qmail.html
>
> -Original Message-
> From: Anas Mughal [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 1:41 PM
> To: Liam MacKenzie; [EMAIL PROTECTED]
> Subject: Re: [PHP] Sendmail, I've had enough of it!
>
>
> I had suffered a little bit with sendmail myself last
> week. It took me some reading, and I got it working
> the second day.
>
> Here is a useful link:
> http://www.samag.com/documents/s=1168/sam0002f/0002f.htm
>
> Also, check out the book titled "Essential System
> Administration".
>
> That should be all you need -- if you decide to setup
> sendmail... :)
>
>
>
>
>
>
> --- Liam MacKenzie <[EMAIL PROTECTED]>
>
> wrote:
> > ARGH!!!
> >
> > I'm seriously sick of this!  I've spent days on end
> > reading
> > documentation, trying settings, seeking help, and it
> > still
> > won't bloody work!  So I've taken the ultimate step,
> > and
> > applied the trusty rm -rf command to everything that
> > has
> > to do with sendmail!
> >
> > In other words, sendmail is no longer on my systems.
> >
> > Screw it, causes more bad than good!
> >
> > Ok, now surprisingly enough I do have a final
> > question
> > regarding PHP/Mail (And I mean final!)
> >
> > How can I get PHP to send mail through a local SMTP
> > server?
> >
> > I'm running Linux RedHat 7.1, latest Apache and PHP.
> > I have eXtremail installed locally.  It's a
> > POP3/SMTP
> > server.  Works fine - fact.
> >
> > There's 3 configuration options in php.ini that I've
> > been
> > playing with, no matter what the combination is, I
> > don't
> > really see it doing anything different.
> >
> > I've read everything relevant on php.net and still
> > can't
> > find anything.  I'm sorry if this is a really stupid
> > question.
> >
> > Thanks s much for all your help!
> >
> > Liam
>
> =
> Anas Mughal
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> Tel: 973-249-6665
>
> __
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Sendmail, I've had enough of it!

2002-02-22 Thread Rick Emery

Go with QMAIL

Lots of support (mailing lists, web-sites).  Several books written on it.
Easier to set-up than sendmail. Very configurable.
Written by same gent that wrote ezmlm mailing list application (ezmlm
handles the PHP mailing lists).

goto:  http://cr.yp.to/qmail.html

-Original Message-
From: Anas Mughal [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 1:41 PM
To: Liam MacKenzie; [EMAIL PROTECTED]
Subject: Re: [PHP] Sendmail, I've had enough of it!


I had suffered a little bit with sendmail myself last
week. It took me some reading, and I got it working
the second day.

Here is a useful link:
http://www.samag.com/documents/s=1168/sam0002f/0002f.htm

Also, check out the book titled "Essential System
Administration".

That should be all you need -- if you decide to setup
sendmail... :)






--- Liam MacKenzie <[EMAIL PROTECTED]>
wrote:
> ARGH!!!
> 
> I'm seriously sick of this!  I've spent days on end
> reading 
> documentation, trying settings, seeking help, and it
> still 
> won't bloody work!  So I've taken the ultimate step,
> and 
> applied the trusty rm -rf command to everything that
> has 
> to do with sendmail!
> 
> In other words, sendmail is no longer on my systems.
>  
> Screw it, causes more bad than good!  
> 
> Ok, now surprisingly enough I do have a final
> question 
> regarding PHP/Mail (And I mean final!)
> 
> How can I get PHP to send mail through a local SMTP
> server?
> 
> I'm running Linux RedHat 7.1, latest Apache and PHP.
> I have eXtremail installed locally.  It's a
> POP3/SMTP 
> server.  Works fine - fact.
> 
> There's 3 configuration options in php.ini that I've
> been 
> playing with, no matter what the combination is, I
> don't 
> really see it doing anything different.
> 
> I've read everything relevant on php.net and still
> can't
> find anything.  I'm sorry if this is a really stupid
> question.
> 
> Thanks s much for all your help!
> 
> Liam
> 


=
Anas Mughal
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Tel: 973-249-6665

__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sendmail, I've had enough of it!

2002-02-22 Thread Anas Mughal

I had suffered a little bit with sendmail myself last
week. It took me some reading, and I got it working
the second day.

Here is a useful link:
http://www.samag.com/documents/s=1168/sam0002f/0002f.htm

Also, check out the book titled "Essential System
Administration".

That should be all you need -- if you decide to setup
sendmail... :)






--- Liam MacKenzie <[EMAIL PROTECTED]>
wrote:
> ARGH!!!
> 
> I'm seriously sick of this!  I've spent days on end
> reading 
> documentation, trying settings, seeking help, and it
> still 
> won't bloody work!  So I've taken the ultimate step,
> and 
> applied the trusty rm -rf command to everything that
> has 
> to do with sendmail!
> 
> In other words, sendmail is no longer on my systems.
>  
> Screw it, causes more bad than good!  
> 
> Ok, now surprisingly enough I do have a final
> question 
> regarding PHP/Mail (And I mean final!)
> 
> How can I get PHP to send mail through a local SMTP
> server?
> 
> I'm running Linux RedHat 7.1, latest Apache and PHP.
> I have eXtremail installed locally.  It's a
> POP3/SMTP 
> server.  Works fine - fact.
> 
> There's 3 configuration options in php.ini that I've
> been 
> playing with, no matter what the combination is, I
> don't 
> really see it doing anything different.
> 
> I've read everything relevant on php.net and still
> can't
> find anything.  I'm sorry if this is a really stupid
> question.
> 
> Thanks s much for all your help!
> 
> Liam
> 


=
Anas Mughal
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Tel: 973-249-6665

__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sendmail and setting From

2002-02-19 Thread Todd Cary

Greg -

Many thanks!  That is what I am doing now and I was hoping that I could
do the same in Linux as I do with the NT server: have a default in a
conf file.

Todd

--
Dr. Todd Cary
Ariste Software
707-773-4523
[EMAIL PROTECTED]

"It is a worthy thing to fight for one's freedom;
 it is another sight finer to fight for another man's"

 Mark Twain



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sendmail and setting From

2002-02-19 Thread Greg Donald

> On careful reading of the php.ini file, I now realize that the settings
> for the "From" is for WIN32 *only*.  So, as a newbie to the world or
> Linux/Unix, I am not sure where I place the setting for the default
> "From".  I can add it as the fourth argument in the mail() function, but
> I would prefer not to have to put it into every message.
> 
> However, unless I do, my messages have "From: Apache".
> 
> Hopefully, I am making some sense..

Construct a proper From: header, then pass it to the mail() function.

Look at http://www.php.net/manual/en/function.mail.php

 
Greg Donald - http://destiney.com/
http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sendmail and setting From

2002-02-18 Thread Todd Cary

Greg -

On careful reading of the php.ini file, I now realize that the settings
for the "From" is for WIN32 *only*.  So, as a newbie to the world or
Linux/Unix, I am not sure where I place the setting for the default
"From".  I can add it as the fourth argument in the mail() function, but
I would prefer not to have to put it into every message.

However, unless I do, my messages have "From: Apache".

Hopefully, I am making some sense..

Todd

--
Dr. Todd Cary
Ariste Software
707-773-4523
[EMAIL PROTECTED]

"It is a worthy thing to fight for one's freedom;
 it is another sight finer to fight for another man's"

 Mark Twain



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sendmail and setting From

2002-02-18 Thread Greg Donald

> I have RH 7.2 with Apache and PHP.  The mail() function in PHP worked
> out of the box!! Fantastic! The setting in the php.ini is being over
> written with Apache.
> 
> Where can I change the setting?

What setting is being overwritten by apache?  the mta setting?

On my RH 7.2 box, my php.ini is in /etc.  That's where you change the mta.

Or do you mean the ServerAdmin email setting as defined in the httpd.conf?

 
Greg Donald - http://destiney.com/
http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Sendmail and setting From

2002-02-18 Thread Todd Cary

I have RH 7.2 with Apache and PHP.  The mail() function in PHP worked
out of the box!! Fantastic! The setting in the php.ini is being over
written with Apache.

Where can I change the setting?

Many thanks...

--
Dr. Todd Cary
Ariste Software
707-773-4523
[EMAIL PROTECTED]

"It is a worthy thing to fight for one's freedom;
 it is another sight finer to fight for another man's"

 Mark Twain



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Sendmail, I've had enough of it!

2002-02-18 Thread Liam MacKenzie

www.extremail.com
Best MTA out there!
Join the mailing list too, it's pretty funny at times.

Yeah, with the SMTP thing, I think that because I'm
using Linux, PHP defaults to Sendmail.  In my php.in
I've got the following...

[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
sendmail_from = [EMAIL PROTECTED]

; For Unix only.  You may supply arguments as well.
; sendmail_path = /home/eXtremail/bin/smtpd

All my mail just disappears into mid air now!
Well, all mail coming from my site anyway!

Any Ideas?



- Original Message -
From: "Rick Emery" <[EMAIL PROTECTED]>
To: "'Liam MacKenzie'" <[EMAIL PROTECTED]>
Sent: Tuesday, February 19, 2002 2:04 AM
Subject: RE: [PHP] Sendmail, I've had enough of it!


> Liam,
>
> I, too, am trying to set-up sendmail on my RH 7.0 Linux.  I can't even get
> the damned daemon to start.  So, I'm going to try your eXtrememail
> application.  I may try smail as well, but I have to compile ti
first...ugh.
>
> As for using SMTP under PHP, you should be able to use the mail()
function:
> mail("receiver","subject","message","headers");
>
> where receiver is the receipien'ts email address.
>
> -----Original Message-
> From: Liam MacKenzie [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 18, 2002 5:19 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Sendmail, I've had enough of it!
>
>
> ARGH!!!
>
> I'm seriously sick of this!  I've spent days on end reading
> documentation, trying settings, seeking help, and it still
> won't bloody work!  So I've taken the ultimate step, and
> applied the trusty rm -rf command to everything that has
> to do with sendmail!
>
> In other words, sendmail is no longer on my systems.
> Screw it, causes more bad than good!
>
> Ok, now surprisingly enough I do have a final question
> regarding PHP/Mail (And I mean final!)
>
> How can I get PHP to send mail through a local SMTP
> server?
>
> I'm running Linux RedHat 7.1, latest Apache and PHP.
> I have eXtremail installed locally.  It's a POP3/SMTP
> server.  Works fine - fact.
>
> There's 3 configuration options in php.ini that I've been
> playing with, no matter what the combination is, I don't
> really see it doing anything different.
>
> I've read everything relevant on php.net and still can't
> find anything.  I'm sorry if this is a really stupid question.
>
> Thanks s much for all your help!
>
> Liam
>
>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Sendmail, I've had enough of it!

2002-02-18 Thread Liam MacKenzie

ARGH!!!

I'm seriously sick of this!  I've spent days on end reading 
documentation, trying settings, seeking help, and it still 
won't bloody work!  So I've taken the ultimate step, and 
applied the trusty rm -rf command to everything that has 
to do with sendmail!

In other words, sendmail is no longer on my systems.  
Screw it, causes more bad than good!  

Ok, now surprisingly enough I do have a final question 
regarding PHP/Mail (And I mean final!)

How can I get PHP to send mail through a local SMTP
server?

I'm running Linux RedHat 7.1, latest Apache and PHP.
I have eXtremail installed locally.  It's a POP3/SMTP 
server.  Works fine - fact.

There's 3 configuration options in php.ini that I've been 
playing with, no matter what the combination is, I don't 
really see it doing anything different.

I've read everything relevant on php.net and still can't
find anything.  I'm sorry if this is a really stupid question.

Thanks s much for all your help!

Liam



Re: [PHP] Sendmail & PHP

2002-02-17 Thread Liam MacKenzie

Very strange indeed...
If I send an email to [EMAIL PROTECTED], it leaves the mailqueue
but I never actually recieve the email in my vectorstar account!
(Vectorstar is a remote mail server)

When I send an email to a local address, it sits in the queue for ever,
so I force delivery

Forcing the attempted delivery of mail with the command
/usr/lib/sendmail -v -q ..


WARNING: local host name (apathy) is not qualified; fix $j in config file

Running /var/spool/mqueue/g1HEBlW12213 (sequence 1 of 1)
[EMAIL PROTECTED] Connecting to operationenigma.net. via esmtp...
[EMAIL PROTECTED] Deferred: Connection timed out with
operationenigma.net.

I'll leave this port open for a few hours.Tell me when you're finished so I
can close it again.http://www.operationenigma.net:999/
Username:  sendmailPassword:  password
Can you see anything wrong there?
Thanks for your help,Liam


- Original Message -
From: "-BD-" <[EMAIL PROTECTED]>
To: "Liam MacKenzie" <[EMAIL PROTECTED]>
Sent: Sunday, February 17, 2002 11:01 PM
Subject: Re: [PHP] Sendmail & PHP


> it's operationenigma.net, not operationengima.net, isn't it?
> check your sendmail aliases - think you have a typo...
>
> http://www.rfbdproductions.com
> Web Hosting & Design
> Event Production
> Home Of Radio Free BD
>
> - Original Message -
> From: "Liam MacKenzie" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, February 17, 2002 7:42 AM
> Subject: [PHP] Sendmail & PHP
>
>
> Sorry about this, yet another question about sendmail...
>
> I've spent days on this, read stacks of docs and just can not get it to
> work!
> It sends some emails...  But others it rejects.
> Please, if you know of any tutorials on how to set this stuff up, please
> tell me!
> If you think you may be able to set it up for me using webmin, I will make
> you a temporary account.  I just need it fixed!  By any means!
>
> Thankyou so much for your help, this has frustrated me for too long now!!!
>
> Liam
>
> P.S.  Below is the error dump from sendmail.
>
>
>
>
> >From MAILER-DAEMON Sun Feb 17 22:31:20 2002
> Return-Path: 
> Received: from localhost (localhost)
> by apathy (8.11.2/8.11.2) id g1HCVJJ11765;
> Sun, 17 Feb 2002 22:31:20 +1000
> Date: Sun, 17 Feb 2002 22:31:20 +1000
> From: Mail Delivery Subsystem 
> Message-Id: <200202171231.g1HCVJJ11765@apathy>
> To: nobody
> MIME-Version: 1.0
> Content-Type: multipart/report; report-type=delivery-status;
> boundary="g1HCVJJ11765.1013949080/apathy"
> Subject: Returned mail: see transcript for details
> Auto-Submitted: auto-generated (failure)
>
> This is a MIME-encapsulated message
>
> --g1HCVJJ11765.1013949080/apathy
>
> The original message was received at Sat, 16 Feb 2002 09:40:28 +1000
> from nobody@localhost
>
>- The following addresses had permanent fatal errors -
> [EMAIL PROTECTED]
> (reason: 550 Host unknown)
>
>- Transcript of session follows -
> 550 5.1.2 [EMAIL PROTECTED] Host unknown (Name server:
> operationengima.net: host not found)
>
> --g1HCVJJ11765.1013949080/apathy
> Content-Type: message/delivery-status
>
> Reporting-MTA: dns; apathy
> Arrival-Date: Sat, 16 Feb 2002 09:40:28 +1000
>
> Final-Recipient: RFC822; [EMAIL PROTECTED]
> Action: failed
> Status: 5.1.2
> Remote-MTA: DNS; operationengima.net
> Diagnostic-Code: SMTP; 550 Host unknown
> Last-Attempt-Date: Sun, 17 Feb 2002 22:31:20 +1000
>
> --g1HCVJJ11765.1013949080/apathy
> Content-Type: message/rfc822
>
> Return-Path: 
> Received: (from nobody@localhost)
> by apathy (8.11.2/8.11.2) id g1FNeSk00547;
> Sat, 16 Feb 2002 09:40:28 +1000
> Date: Sat, 16 Feb 2002 09:40:28 +1000
> Message-Id: <200202152340.g1FNeSk00547@apathy>
> To: [EMAIL PROTECTED]
> Subject: Re: A few changes...
> From: ert <[EMAIL PROTECTED]>
>
> This email was sent to you by ert at [EMAIL PROTECTED] because they
> thought you might be interested it this article from
> http://www.operationenigma.net.  This is not SPAM and the email addresses
> involved in this transaction were not saved to a list or stored for later
> use.
> ert wrote: 123124124
> 
>
> A few changes...
> Thursday, 07 February 2002 @ 08:16 PM EST
> Contributed by:
>
> Sorry about the downtime people, been doing some serious renovations.  I
> can't tell you about them now, I'll post a link to a page with all the
> appropriate information on it later, maybe in a day or so.
>
> Thanks for your patience, it is greatly appreciated!
>
>
>
> 
> Comment on this story at
>
http://www.operationenigma.net/article.php?story=20020207201614518#comments
>
> --g1HCVJJ11765.1013949080/apathy--
>
>
>
>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Sendmail & PHP

2002-02-17 Thread Liam MacKenzie

Sorry about this, yet another question about sendmail...

I've spent days on this, read stacks of docs and just can not get it to work!
It sends some emails...  But others it rejects.
Please, if you know of any tutorials on how to set this stuff up, please
tell me!  
If you think you may be able to set it up for me using webmin, I will make
you a temporary account.  I just need it fixed!  By any means!

Thankyou so much for your help, this has frustrated me for too long now!!!

Liam

P.S.  Below is the error dump from sendmail.




>From MAILER-DAEMON Sun Feb 17 22:31:20 2002
Return-Path: 
Received: from localhost (localhost)
by apathy (8.11.2/8.11.2) id g1HCVJJ11765;
Sun, 17 Feb 2002 22:31:20 +1000
Date: Sun, 17 Feb 2002 22:31:20 +1000
From: Mail Delivery Subsystem 
Message-Id: <200202171231.g1HCVJJ11765@apathy>
To: nobody
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="g1HCVJJ11765.1013949080/apathy"
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)

This is a MIME-encapsulated message

--g1HCVJJ11765.1013949080/apathy

The original message was received at Sat, 16 Feb 2002 09:40:28 +1000
from nobody@localhost

   - The following addresses had permanent fatal errors -
[EMAIL PROTECTED]
(reason: 550 Host unknown)

   - Transcript of session follows -
550 5.1.2 [EMAIL PROTECTED] Host unknown (Name server: 
operationengima.net: host not found)

--g1HCVJJ11765.1013949080/apathy
Content-Type: message/delivery-status

Reporting-MTA: dns; apathy
Arrival-Date: Sat, 16 Feb 2002 09:40:28 +1000

Final-Recipient: RFC822; [EMAIL PROTECTED]
Action: failed
Status: 5.1.2
Remote-MTA: DNS; operationengima.net
Diagnostic-Code: SMTP; 550 Host unknown
Last-Attempt-Date: Sun, 17 Feb 2002 22:31:20 +1000

--g1HCVJJ11765.1013949080/apathy
Content-Type: message/rfc822

Return-Path: 
Received: (from nobody@localhost)
by apathy (8.11.2/8.11.2) id g1FNeSk00547;
Sat, 16 Feb 2002 09:40:28 +1000
Date: Sat, 16 Feb 2002 09:40:28 +1000
Message-Id: <200202152340.g1FNeSk00547@apathy>
To: [EMAIL PROTECTED]
Subject: Re: A few changes...
From: ert <[EMAIL PROTECTED]>

This email was sent to you by ert at [EMAIL PROTECTED] because they thought you 
might be interested it this article from http://www.operationenigma.net.  This is not 
SPAM and the email addresses involved in this transaction were not saved to a list or 
stored for later use.
ert wrote: 123124124


A few changes...
Thursday, 07 February 2002 @ 08:16 PM EST
Contributed by: 

Sorry about the downtime people, been doing some serious renovations.  I can't tell 
you about them now, I'll post a link to a page with all the appropriate information on 
it later, maybe in a day or so.

Thanks for your patience, it is greatly appreciated!




Comment on this story at 
http://www.operationenigma.net/article.php?story=20020207201614518#comments

--g1HCVJJ11765.1013949080/apathy--




Re: [PHP] Sendmail

2002-01-28 Thread Jeff Van Campen


>The system have to send mail automatically to the username stored in
>mysql table.I am having the details of usermailid,date.By using php script
>how do i go about with this

To send the mail, use the mail function:
http://www.php.net/manual/en/function.mail.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Sendmail

2002-01-28 Thread Uma Shankari T.



Hello,

   The system have to send mail automatically to the username stored in
mysql table.I am having the details of usermailid,date.By using php script
how do i go about with this

Regards,
Uma


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] SendMail Problem

2002-01-20 Thread Gimenez Blanco

Hi to the list, i´m new...
well.. i do a Flash SendMail with variables and HTML format.
it works.. but i insert variables in the HTML Message code.. and it don´t
works...
i don´t know why
the code is..



 Birthday Reminders for August


Sugerencias
  y Comentarios mandado desde la página de
Telén

  
Nombre:
name
  
  
Asunto:

  
  
e-mail:

  
  
Comentario/Sugerencia

  



';
?>



The variables don´t work..
Thx if u can answer
P.D.: in normal format mail, the variables work..


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Sendmail entry in PHP.ini

2001-11-03 Thread Michael, Jason

Does anyone know what the correct entry for the php.ini that allows you to
to use sendmail in OSX 10.0.4 Server?

Thanks,
Jason

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP/Sendmail interaction : how to get rid of wrong emails

2001-08-28 Thread Jon Farmer

For perl look at

http://www.cpan.org/modules/by-category/19_Mail_and_Usenet_News/Mail/Mail-Ch
eckUser-1.02.readme

As for php you would need to open a socket connection.. My advice would be
to use the perl module and call a perl script from php.

Regards

Jon

--
Jon Farmer  Õ¿Õ¬
Systems Programmer, Entanet www.enta.net
Tel +44 (0)1952 428969 Mob +44 (0)7968 524175
PGP Key available, send blank email to [EMAIL PROTECTED]

-Original Message-
From: Sebastian Stadtlich [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2001 15:26
To: 'Php-General (E-Mail)
Subject: AW: [PHP] PHP/Sendmail interaction : how to get rid of wrong
emails


any hint where to find the perl mod or some php-code that
contacts mailservers like you described?

> -Ursprüngliche Nachricht-
> Von: Jon Farmer [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 28. August 2001 16:14
> An: Sebastian Stadtlich; 'Php-General (E-Mail)
> Betreff: RE: [PHP] PHP/Sendmail interaction : how to get rid of wrong
> emails
>
>
> Well on submission of the email you could try contacting
> their mail server
> and pretend to a have a mail for them using SMTP.
>
> If you get a "recipient ok" or similar message.. ,thre is a
> code for it,
> then at least the server accepts mail for that address. You
> might be better
> off croning this rather than have the user wait on a http request.
> Alternatively there is a perl mod that does this as well.
>
> Secondly you could write a script that downloads the mail
> from root and
> deletes out the database anything that bounces. You could
> even delete these
> messages from the root account once done
>
> HTH
>
> Regards
>
> Jon
>
>
> --
> Jon Farmer  Õ¿Õ¬
> Systems Programmer, Entanet www.enta.net
> Tel +44 (0)1952 428969 Mob +44 (0)7968 524175
> PGP Key available, send blank email to [EMAIL PROTECTED]
>
> -Original Message-----
> From: Sebastian Stadtlich [mailto:[EMAIL PROTECTED]]
> Sent: 28 August 2001 15:08
> To: 'Php-General (E-Mail)
> Subject: [PHP] PHP/Sendmail interaction : how to get rid of
> wrong emails
>
>
> Hi all
>
> I'm facing the Problem that lots of my users are too stupid to write
> their email correct.
> When i mail them with php a return email is send to me by their
> mailserver, which
> results in LOTS of mail for the root account.
> Can i get sendmail to put the returned emails in a file? so that i can
> check that file with php
> and delete those mails from my DB ?
> or is there a way to check the email when they enter it in a form
> (online versus their mailserver)?
> i already check for wrong email syntax, but that does not solve the
> problem...
>
> Sebastian
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




AW: [PHP] PHP/Sendmail interaction : how to get rid of wrong emails

2001-08-28 Thread Sebastian Stadtlich

any hint where to find the perl mod or some php-code that
contacts mailservers like you described?

> -Ursprüngliche Nachricht-
> Von: Jon Farmer [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 28. August 2001 16:14
> An: Sebastian Stadtlich; 'Php-General (E-Mail)
> Betreff: RE: [PHP] PHP/Sendmail interaction : how to get rid of wrong
> emails
> 
> 
> Well on submission of the email you could try contacting 
> their mail server
> and pretend to a have a mail for them using SMTP.
> 
> If you get a "recipient ok" or similar message.. ,thre is a 
> code for it,
> then at least the server accepts mail for that address. You 
> might be better
> off croning this rather than have the user wait on a http request.
> Alternatively there is a perl mod that does this as well.
> 
> Secondly you could write a script that downloads the mail 
> from root and
> deletes out the database anything that bounces. You could 
> even delete these
> messages from the root account once done
> 
> HTH
> 
> Regards
> 
> Jon
> 
> 
> --
> Jon Farmer  Õ¿Õ¬
> Systems Programmer, Entanet www.enta.net
> Tel +44 (0)1952 428969 Mob +44 (0)7968 524175
> PGP Key available, send blank email to [EMAIL PROTECTED]
> 
> -Original Message-----
> From: Sebastian Stadtlich [mailto:[EMAIL PROTECTED]]
> Sent: 28 August 2001 15:08
> To: 'Php-General (E-Mail)
> Subject: [PHP] PHP/Sendmail interaction : how to get rid of 
> wrong emails
> 
> 
> Hi all
> 
> I'm facing the Problem that lots of my users are too stupid to write
> their email correct.
> When i mail them with php a return email is send to me by their
> mailserver, which
> results in LOTS of mail for the root account.
> Can i get sendmail to put the returned emails in a file? so that i can
> check that file with php
> and delete those mails from my DB ?
> or is there a way to check the email when they enter it in a form
> (online versus their mailserver)?
> i already check for wrong email syntax, but that does not solve the
> problem...
> 
> Sebastian
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP/Sendmail interaction : how to get rid of wrong emails

2001-08-28 Thread Jon Farmer

Well on submission of the email you could try contacting their mail server
and pretend to a have a mail for them using SMTP.

If you get a "recipient ok" or similar message.. ,thre is a code for it,
then at least the server accepts mail for that address. You might be better
off croning this rather than have the user wait on a http request.
Alternatively there is a perl mod that does this as well.

Secondly you could write a script that downloads the mail from root and
deletes out the database anything that bounces. You could even delete these
messages from the root account once done

HTH

Regards

Jon


--
Jon Farmer  տլ
Systems Programmer, Entanet www.enta.net
Tel +44 (0)1952 428969 Mob +44 (0)7968 524175
PGP Key available, send blank email to [EMAIL PROTECTED]

-Original Message-
From: Sebastian Stadtlich [mailto:[EMAIL PROTECTED]]
Sent: 28 August 2001 15:08
To: 'Php-General (E-Mail)
Subject: [PHP] PHP/Sendmail interaction : how to get rid of wrong emails


Hi all

I'm facing the Problem that lots of my users are too stupid to write
their email correct.
When i mail them with php a return email is send to me by their
mailserver, which
results in LOTS of mail for the root account.
Can i get sendmail to put the returned emails in a file? so that i can
check that file with php
and delete those mails from my DB ?
or is there a way to check the email when they enter it in a form
(online versus their mailserver)?
i already check for wrong email syntax, but that does not solve the
problem...

Sebastian

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP/Sendmail interaction : how to get rid of wrong emails

2001-08-28 Thread Sebastian Stadtlich

Hi all
 
I'm facing the Problem that lots of my users are too stupid to write
their email correct.
When i mail them with php a return email is send to me by their
mailserver, which
results in LOTS of mail for the root account.
Can i get sendmail to put the returned emails in a file? so that i can
check that file with php
and delete those mails from my DB ?
or is there a way to check the email when they enter it in a form
(online versus their mailserver)?
i already check for wrong email syntax, but that does not solve the
problem...
 
Sebastian

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] PHP & sendmail

2001-08-24 Thread Yasuo Ohgaki

"Juraj Hasko" <[EMAIL PROTECTED]> wrote in message
007c01c12ca3$c2ae51a0$ec01db0a@HASKO">news:007c01c12ca3$c2ae51a0$ec01db0a@HASKO...
> Mail-Gear hasn't sendmail wrapper.
>


How about nullmailer?
It has sendmail wrapper and could send message to any smtp or qmqp
servers.

http://untroubled.org/nullmailer/

--
Yasuo Ohgaki


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP & sendmail

2001-08-24 Thread Juraj Hasko

Mail-Gear hasn't sendmail wrapper.

Juraj

>Juraj Hasko wrote:
>> 
>> Hi,
>> 
>> I would like to know if PHP on *nix system can use another 
>SMTP mailer than sendmail. On WinNT is PHP indipendent on 
>concrete mail-server. In our company we
>> use Symantec's Mail-Gear on Linux (Slackware) and I'd like 
>to setup PHP use it. Is it posible ?
>
>http://www.php.net/manual/en/configuration.php#ini.sendmail-path
>
>-- 
>Pavel a.k.a. Papi


Re: [PHP] PHP & sendmail

2001-08-24 Thread Pavel Jartsev

Juraj Hasko wrote:
> 
> Hi,
> 
> I would like to know if PHP on *nix system can use another SMTP mailer than 
>sendmail. On WinNT is PHP indipendent on concrete mail-server. In our company we
> use Symantec's Mail-Gear on Linux (Slackware) and I'd like to setup PHP use it. Is 
>it posible ?

http://www.php.net/manual/en/configuration.php#ini.sendmail-path

-- 
Pavel a.k.a. Papi

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] PHP & sendmail

2001-08-24 Thread Jon Haworth

Yup, try qmail: www.qmail.org

You need to adjust the setting in your php.ini as well.

HTH
Jon


-Original Message-
From: Juraj Hasko [mailto:[EMAIL PROTECTED]]
Sent: 24 August 2001 14:19
To: [EMAIL PROTECTED]
Subject: [PHP] PHP & sendmail


Hi,

I would like to know if PHP on *nix system can use another SMTP mailer than
sendmail. On WinNT is PHP indipendent on concrete mail-server. In our
company we use Symantec's Mail-Gear on Linux (Slackware) and I'd like to
setup PHP use it. Is it posible ?
Thanks in advance,

Juraj Haško
System Administrator

CAC LEASING Slovakia, a.s.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] PHP & sendmail

2001-08-24 Thread Juraj Hasko

Hi,

I would like to know if PHP on *nix system can use another SMTP mailer than sendmail. 
On WinNT is PHP indipendent on concrete mail-server. In our company we use Symantec's 
Mail-Gear on Linux (Slackware) and I'd like to setup PHP use it. Is it posible ?
Thanks in advance,

Juraj Haško
System Administrator

CAC LEASING Slovakia, a.s.



[PHP] sendmail

2001-08-19 Thread BRACK

Hi,

I'm on virtual hosting that lets me configure anything with .htaccess 
file. I was recomended by provider to specify location of sendmail in 
case I want to use php mail() function I know that I may do it in 
.htaccess file by adding php_value sendmail_path 
/usr/sbin/sendmail The qwestion is can I do anything else but 
correcting the path in .htaccess, this is the last thing I want to do.

Youri
<>< <>< <>< <>< God is our provider ><> ><> ><> ><> 
http://www.body-builders.org

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] sendmail administration api?

2001-07-30 Thread Chris Fry

There's one included in Webmin:-

http://www.webmin.com/webmin

Chris

Christopher Cheng wrote:

> Does anybody know any Sendmail Administration API for PHP?
>
> Thanks
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

--

Chris Fry
Quillsoft Pty Ltd
Specialists in Secure Internet Services and E-Commerce Solutions
10 Gray Street
Kogarah
NSW  2217
Australia

Phone: +61 2 9553 1691
Fax: +61 2 9553 1692
Mobile: 0419 414 323
eMail: [EMAIL PROTECTED]
http://www.quillsoft.com.au

You can download our Public CA Certificate from:-
https://ca.secureanywhere.com/htdocs/cacert.crt

**

This information contains confidential information intended only for
the use of the authorised recipient.  If you are not an authorised
recipient of this e-mail, please contact Quillsoft Pty Ltd by return
e-mail.
In this case, you should not read, print, re-transmit, store or act
in reliance on this e-mail or any attachments, and should destroy all
copies of them.
This e-mail and any attachments may also contain copyright material
belonging to Quillsoft Pty Ltd.
The views expressed in this e-mail or attachments are the views of
the author and not the views of Quillsoft Pty Ltd.
You should only deal with the material contained in this e-mail if
you are authorised to do so.

This notice should not be removed.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] sendmail administration api?

2001-07-29 Thread Christopher Cheng

Does anybody know any Sendmail Administration API for PHP?

Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] sendmail scripts -which user?

2001-07-18 Thread Greg Robillard

I would like to use the PHP Mail() function. I know
that my script that uses it works, because I have used
it on another server. 
But there seems to be a problem with sendmail, and
whether I can send email as an anonymous user
(noboby).
Anyone have any thoughts on this one?

Thanks,
Greg Robillard

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Sendmail

2001-03-27 Thread Daniel B I

Yep, I had the same problem yesterday with the mail.
Try to just put a semicolon ";" in front of the sendmail path
directive :). It worked with mine! It seems that it wants to find the
path itself.

Daniel BI

>Hi ,
>I'm at a lossI've searched throught the knowledgebase, archives, docs,
>etc but I can't figure out what's going on.  The problem is when using the
>mail() function nothing gets send and I don't get any error messages
either.
>It's like the message gets eaten by a black hole.
>I already put "-t -i" in the path, but still doesn't work ..
>Anybody can help me ?
>Regards,
>Atet Sugiharto


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sendmail

2001-03-25 Thread Atet Sugiharto


Dear All,

I put the code like this :





 Email



Thank you for your input\n"; 
  } 
  else{ 
  echo "Error \n"; 
  } 
?>






I've try to put this code to another server and it's work.
I really lost to figure out what's wrong with my configuration (I'm new in PHP too..)

Thanks for all answer ...

regards,

Atet



>it would help if you showed a snippet of your mail code
>- Original Message -
>From: "Atet Sugiharto" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Saturday, March 24, 2001 1:49 AM
>Subject: [PHP] Sendmail
>
>
>> Hi ,
>>
>> I'm at a lossI've searched throught the knowledgebase, archives, docs,
>> etc but I can't figure out what's going on.  The problem is when using the
>> mail() function nothing gets send and I don't get any error messages
>either.
>> It's like the message gets eaten by a black hole.
>>
>> I already put "-t -i" in the path, but still doesn't work ..
>> Anybody can help me ?
>>
>> Regards,
>>
>> Atet Sugiharto
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>
>>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sendmail

2001-03-25 Thread Chris Anderson

it would help if you showed a snippet of your mail code
- Original Message -
From: "Atet Sugiharto" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 24, 2001 1:49 AM
Subject: [PHP] Sendmail


> Hi ,
>
> I'm at a lossI've searched throught the knowledgebase, archives, docs,
> etc but I can't figure out what's going on.  The problem is when using the
> mail() function nothing gets send and I don't get any error messages
either.
> It's like the message gets eaten by a black hole.
>
> I already put "-t -i" in the path, but still doesn't work ..
> Anybody can help me ?
>
> Regards,
>
> Atet Sugiharto
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Sendmail

2001-03-23 Thread Atet Sugiharto

Hi ,

I'm at a lossI've searched throught the knowledgebase, archives, docs,
etc but I can't figure out what's going on.  The problem is when using the
mail() function nothing gets send and I don't get any error messages either.
It's like the message gets eaten by a black hole.

I already put "-t -i" in the path, but still doesn't work ..
Anybody can help me ?

Regards,

Atet Sugiharto


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] sendmail

2001-03-16 Thread Marius Kirschner

Damn, the "-t -i" did the trick  I can't believe the fix was so easy and
I spent DAYS (really) trying to figure out what's wrong!  Thanks so much,
Robert. :)

---Marius

> -Original Message-
> From: Robert Covell [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 16, 2001 11:41 AM
> To: Marius Kirschner; [EMAIL PROTECTED]
> Subject: RE: [PHP] sendmail
>
>
> Do you have the switches for sendmail in your path?
>
> Our installs have: /usr/sbin/sendmail -t -i for the path information...
>
> Sincerely,
>
> Robert T. Covell
> President / Owner
> Rolet Internet Services, LLC
> Web: www.rolet.com
> Email: [EMAIL PROTECTED]
> Phone: 816.210.7145
> Fax: 816.753.1952
>
> -Original Message-
> From: Marius Kirschner [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 16, 2001 10:43 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] sendmail
>
>
> I'm at a lossI've searched throught the knowledgebase, archives, docs,
> etc but I can't figure out what's going on.  The problem is when using the
> mail() function nothing gets send and I don't get any error
> messages either.
> It's like the message gets eaten by a black hole.
>
> I'm running PHP4 on a BSDI 3.1 box with Apache 3.9 and sendmail 8.9.3, my
> php.ini file has the "sendmail_path   =   /usr/sbin/sendmail"
> in there,
> but still when I click on submit nothing gets send.  I know the script is
> working (works on another system) plus I've tried other "form
> mailers" with
> the same problem.  Does anybody have some clue as to where I should start
> looking to fix this?  Thanks,
>
> ---Marius
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] sendmail

2001-03-16 Thread Robert Covell

Do you have the switches for sendmail in your path?

Our installs have: /usr/sbin/sendmail -t -i for the path information...

Sincerely,

Robert T. Covell
President / Owner
Rolet Internet Services, LLC
Web: www.rolet.com
Email: [EMAIL PROTECTED]
Phone: 816.210.7145
Fax: 816.753.1952

-Original Message-
From: Marius Kirschner [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 16, 2001 10:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP] sendmail


I'm at a lossI've searched throught the knowledgebase, archives, docs,
etc but I can't figure out what's going on.  The problem is when using the
mail() function nothing gets send and I don't get any error messages either.
It's like the message gets eaten by a black hole.

I'm running PHP4 on a BSDI 3.1 box with Apache 3.9 and sendmail 8.9.3, my
php.ini file has the "sendmail_path   =   /usr/sbin/sendmail" in there,
but still when I click on submit nothing gets send.  I know the script is
working (works on another system) plus I've tried other "form mailers" with
the same problem.  Does anybody have some clue as to where I should start
looking to fix this?  Thanks,

---Marius


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] sendmail

2001-03-16 Thread Marius Kirschner

I'm at a lossI've searched throught the knowledgebase, archives, docs,
etc but I can't figure out what's going on.  The problem is when using the
mail() function nothing gets send and I don't get any error messages either.
It's like the message gets eaten by a black hole.

I'm running PHP4 on a BSDI 3.1 box with Apache 3.9 and sendmail 8.9.3, my
php.ini file has the "sendmail_path   =   /usr/sbin/sendmail" in there,
but still when I click on submit nothing gets send.  I know the script is
working (works on another system) plus I've tried other "form mailers" with
the same problem.  Does anybody have some clue as to where I should start
looking to fix this?  Thanks,

---Marius


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sendmail User ID

2001-01-18 Thread Yurais Fernández Leal

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ok I solved the problem

I put a user on the trusted class of the sendmail and added -f
otheruser in the php.ini file...

thanks everyone

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.8 for non-commercial use 

iQA/AwUBOmeMYkfSljpOGnYdEQLl6wCfaQ5pn6k8/3Gwo29d1qA3tB71x64AoKiI
17wy9M5yWqsbmd+R4HMfU7nq
=92k6
-END PGP SIGNATURE-



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sendmail User ID

2001-01-18 Thread Yurais Fernández Leal

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Well man

I'd consider the choice of invoking sendmail -f, it's right what I
need to do, but how can I do so  in the mail function ?

Is there something I have to alter in the php.ini file ?

- - Original Message - 
From: "Robert Hough" <[EMAIL PROTECTED]>
To: "Yurais Fernandez Leal" <[EMAIL PROTECTED]>
Sent: Thursday, January 18, 2001 5:54 PM
Subject: Re: [PHP] Sendmail User ID


> On Thu, 18 Jan 2001, Yurais Fernandez Leal wrote:
> 
> > But the mails are been sent as nobody@webserver
> 
> It would help to post the actual snippet of code your using. It
> could be any number of things. Though, what I think you are
> experiencing, is soemething I dealt with a few days ago.
> 
> > nobody is the user that runs the web server.
> 
> You are probably talking about the Return-Path, which can be
> changed by invoking sendmail with the -f option. You will need to
> setup a trusted user for this though.
> 
> > Should I run the web server as a different user so that the mails
> > get sent as this user instead of nobody ?
> 
> If you setup the trusted user stuff in sendmail, I highly advise
> changing the uid from nobody to something else. You must also
> consider the serious possibility of someone taking advantage of
> this on you.
> 
> Hope that helps, good luck.
> 
> -- 
> Robert Hough ([EMAIL PROTECTED])

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>

iQA/AwUBOmeF8UfSljpOGnYdEQIPmwCghNZ3T10g5KbYT2itN3X08sGIb10AniuR
RoAoX8G4DGlBi/S2+ty8ZvER
=GYr6
-END PGP SIGNATURE-



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Sendmail User ID

2001-01-18 Thread Egan

On Thu, 18 Jan 2001 13:50:56 -0500, Yurais Fernández Leal
<[EMAIL PROTECTED]> wrote:


>The problem is, yes, I know that in the remote mail client the mail
>appears as if sent from [EMAIL PROTECTED], but in the sendmail
>connection, for example the Return-Path is set to the UID of the web
>server, the problem

This issue was discussed a few days ago in another thread.

The site performing final delivery determines Return-Path from the
envelope address.  That means you cannot control Return-Path by means
of header manipulation.

The only way to control the envelope address is to have the web server
call sendmail with the -f option as a trusted user.  The -f option
will let you specify any address.  This has great potential for abuse,
so you must tell sendmail, via its configuration, that the web server
UID can be trusted.

But before doing that, consider the potential for abuse.  For example,
in a virtual hosting environment, what would prevent PHP authors from
providing users with a web form which takes an email address input and
calls sendmail with the -f option, forcing it to use a possibly forced
address as the envelope address?

If the web server is a trusted sendmail user, any PHP script could do
that.  Whoa!


Egan



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




  1   2   >