Re: choosing another smtpserver with PHPs mail function
| From: | Justin Patrin | Date: | Thu, 10 Jun 2004 22:15:10 +0000 |
| Subject: | Re: choosing another smtpserver with PHPs mail function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188075@lists.php.net to get a copy of this message | ||
Oôv as&äönsson wrote:
Hello everybody :). I having a little problem with PHPs build in function mail(). The mailserver isnt located on the webserver, its on another machine. I have tryed ini_set("SMTP", "ipaddress"); with no result. The system I'm on runs on an Linux box. Can this be done or must I write an own mail function, with sockets? _________________________________________________________________ Lättare att hitta drömresan med MSN Resor http://www.msn.se/resor/The smtp settings are only for PHP on Windows. You don't have to write your own, though, it's been done for you. :-) PEAR's Mail package has an smtp backend which will do all of it for you. http://pear.php.net/package/Mail -- paperCrane <Justin Patrin>