Re: [PHP-DB] mail() and sendmail configuration

2004-02-23 Thread dpgirago
Jason,

Thanks for the suggestions.

In regard to your question, no. A simple mail() invocation without the 
attachment does not work, hence my sense that the problem is the sendmail 
config.
I'm in the process of checking the logs and will repost if anything looks 
promising.

David





Jason Wong <[EMAIL PROTECTED]>

02/23/2004 11:10 AM



 

To:
[EMAIL PROTECTED]
cc:





Subject:
Re: [PHP-DB] mail() and sendmail configuration



On Tuesday 24 February 2004 00:18, [EMAIL PROTECTED] wrote:

> This post is somewhat OT -- please forgive me. I've spent over 3 days
> trying to get sendmail configured and I've lost some patience and
> reasoning ability in the process.
>
> I have a Linux (RH9), Apache 2.0.48, PHP 4.3.4, MySQL GUI that creates a

[snip]

> If anyone has suggestions or knows of helpful links or
> tutorials, I'd be deeply obliged.

0) Does the simplest mail() invocation work at all?

1) Check the php logs
2) Check the sendmail logs
3) Ask on the RedHat list
4) Ask on the sendmail list

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
--
/*
To craunch a marmoset.
 -- Pedro Carolino, "English as She is 
Spoke"
*/

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





Re: [PHP-DB] mail() and sendmail configuration

2004-02-23 Thread Jason Wong
On Tuesday 24 February 2004 00:18, [EMAIL PROTECTED] wrote:

> This post is somewhat OT -- please forgive me. I've spent over 3 days
> trying to get sendmail configured and I've lost some patience and
> reasoning ability in the process.
>
> I have a Linux (RH9), Apache 2.0.48, PHP 4.3.4, MySQL GUI that creates a

[snip]

> If anyone has suggestions or knows of helpful links or
> tutorials, I'd be deeply obliged.

0) Does the simplest mail() invocation work at all?

1) Check the php logs
2) Check the sendmail logs
3) Ask on the RedHat list
4) Ask on the sendmail list

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-db
--
/*
To craunch a marmoset.
-- Pedro Carolino, "English as She is Spoke"
*/

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



[PHP-DB] mail() and sendmail configuration

2004-02-23 Thread dpgirago
Good Morning,

This post is somewhat OT -- please forgive me. I've spent over 3 days 
trying to get sendmail configured and I've lost some patience and 
reasoning ability in the process.

I have a Linux (RH9), Apache 2.0.48, PHP 4.3.4, MySQL GUI that creates a 
PDF document on the server for web access. We would also like to have the 
document emailed to several folks within the company. So I essentially 
have to get the PDF attached to an email and routed to our SMTP server. I 
have webmin installed and have tried to use it to configure sendmail. When 
I execute  /etc/rc.d/init.d/sendmail status  ---  Linux says that sendmail 
is running. 

I'm using this method for creating emails with attachments (which was 
posted on the PHP-WIN list several months ago ), but it is failing:

The file was successfully sent!";

} else { 
die("Sorry but the email could not be sent. Please go back and try
again!"); 
} 
?>

I've examined the content of the variables in this expression (from above) 
[[$ok = @mail($email_to, $email_subject, $email_message, $headers) ]] and 
it looks ok, though I'm no expert, so I'm guessing that the problem lies 
within the sendmail configuration. Webmin has loads of config pages for 
sendmail, and I admit that they're overwhelming right now. It seemed to me 
at first a relatively simple task to have an email created on the server, 
and forwarded to our SMTP server for delivery, but I was obviously naiive 
in this assumption. If anyone has suggestions or knows of helpful links or 
tutorials, I'd be deeply obliged.

Thanks for reading this long post.

David