Re: [PHP] Mail SMTP settings
There are a lot of limitations in the built-in PHP mail function. If you want more control over how your email is sent, try using phpmailer. It's all php code, so you can customize it to your needs, not that you need to. http://phpmailer.sourceforge.net/ On Dec 3, 2005, at 2:45 AM, Dan wrote: I have a PHP 4.x install on an Apache server. I have a PHP application and a call to the mail function. I have 2 static IP's on the server and I have one web server and one instance of postfix for each IP to basically separate the two sites. The only issue I have right now is sending mail via PHP. I have tried to set the SMTP server and reply address via a php_value in my httpd.conf file and via the ini_set function for my site in question. Regardless of these setting mail is sent from the www user at my main site domain: Return-Path: [EMAIL PROTECTED] Received: from mail.wavefront.ca ([unix socket]) by mail.wavefront.ca (Cyrus v2.2.12-OS X 10.4.0) with LMTPA; Fri, 02 Dec 2005 12:45:07 -0700 I've also tried the IMAP functions but also with no success. I basically want the mail to look as though it was from the other domain. Dan T -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Brent Baisley Systems Architect Landover Associates, Inc. Search Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mail SMTP settings
Also look at PEAR::Mail. If you search back through this list there was a discussion on peoples preferences. -Original Message- From: Brent Baisley [mailto:[EMAIL PROTECTED] Sent: Monday, December 05, 2005 7:04 AM To: Dan Cc: php-general@lists.php.net Subject: Re: [PHP] Mail SMTP settings There are a lot of limitations in the built-in PHP mail function. If you want more control over how your email is sent, try using phpmailer. It's all php code, so you can customize it to your needs, not that you need to. http://phpmailer.sourceforge.net/ On Dec 3, 2005, at 2:45 AM, Dan wrote: I have a PHP 4.x install on an Apache server. I have a PHP application and a call to the mail function. I have 2 static IP's on the server and I have one web server and one instance of postfix for each IP to basically separate the two sites. The only issue I have right now is sending mail via PHP. I have tried to set the SMTP server and reply address via a php_value in my httpd.conf file and via the ini_set function for my site in question. Regardless of these setting mail is sent from the www user at my main site domain: Return-Path: [EMAIL PROTECTED] Received: from mail.wavefront.ca ([unix socket]) by mail.wavefront.ca (Cyrus v2.2.12-OS X 10.4.0) with LMTPA; Fri, 02 Dec 2005 12:45:07 -0700 I've also tried the IMAP functions but also with no success. I basically want the mail to look as though it was from the other domain. Dan T -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Brent Baisley Systems Architect Landover Associates, Inc. Search Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 -- 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] Mail SMTP settings
On Sat, Dec 03, 2005 at 10:17:59PM -0700, Dan wrote: Yes that does work but the return path and my mail headers still show the main domain. My point is that PHP should be acessing my SMTP server specified but it is using the default local host instead. If you note at php.net/mail that the SMTP setting is only for windows. Under *nix only as current installed MTA like sendmail can be used. you can set your sendmail_path to pass parameters like : /sbin/sendmail -f [EMAIL PROTECTED] Curt. -- cat .signature: No such file or directory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail SMTP settings
On Sat, Dec 03, 2005 at 12:45:24AM -0700, Dan wrote: I have a PHP 4.x install on an Apache server. I have a PHP application and a call to the mail function. I have 2 static IP's on the server and I have one web server and one instance of postfix for each IP to basically separate the two sites. The only issue I have right now is sending mail via PHP. I have tried to set the SMTP server and reply address via a php_value in my httpd.conf file and via the ini_set function for my site in question. Regardless of these setting mail is sent from the www user at my main site domain: The ini setting is called 'sendmail_from'. or you can use the 5th argument in the mail command. Curt. -- cat .signature: No such file or directory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mail SMTP settings
Yes that does work but the return path and my mail headers still show the main domain. My point is that PHP should be acessing my SMTP server specified but it is using the default local host instead. Dan T On Dec 3, 2005, at 11:06 AM, Curt Zirzow wrote: On Sat, Dec 03, 2005 at 12:45:24AM -0700, Dan wrote: I have a PHP 4.x install on an Apache server. I have a PHP application and a call to the mail function. I have 2 static IP's on the server and I have one web server and one instance of postfix for each IP to basically separate the two sites. The only issue I have right now is sending mail via PHP. I have tried to set the SMTP server and reply address via a php_value in my httpd.conf file and via the ini_set function for my site in question. Regardless of these setting mail is sent from the www user at my main site domain: The ini setting is called 'sendmail_from'. or you can use the 5th argument in the mail command. Curt. -- cat .signature: No such file or directory -- 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] Mail SMTP settings
I have a PHP 4.x install on an Apache server. I have a PHP application and a call to the mail function. I have 2 static IP's on the server and I have one web server and one instance of postfix for each IP to basically separate the two sites. The only issue I have right now is sending mail via PHP. I have tried to set the SMTP server and reply address via a php_value in my httpd.conf file and via the ini_set function for my site in question. Regardless of these setting mail is sent from the www user at my main site domain: Return-Path: [EMAIL PROTECTED] Received: from mail.wavefront.ca ([unix socket]) by mail.wavefront.ca (Cyrus v2.2.12-OS X 10.4.0) with LMTPA; Fri, 02 Dec 2005 12:45:07 -0700 I've also tried the IMAP functions but also with no success. I basically want the mail to look as though it was from the other domain. Dan T -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php