We support Microsoft .NET Framework 2.0 & 1.1, all versions of Access, SQL 2000, SQL 7.0, SQL 2005 Express, SOAP, FrontPage 2002, 2003, Visual Studio 2005, Index Server, XML, UDDI, & Mobile device support. We also offer great third party tools like SmarterMail, Merak Mail, SmarterStats, PHP, Perl, MySql, DeepMetrix Livestats XSP 8.0.   We support Microsoft .NET Framework 2.0 & 1.1, all versions of Access, SQL 2000, SQL 7.0, SQL 2005 Express, SOAP, FrontPage 2002, 2003, Visual Studio 2005, Index Server, XML, UDDI, & Mobile device support. We also offer great third party tools like SmarterMail, Merak Mail, SmarterStats, PHP, Perl, MySql, DeepMetrix Livestats XSP 8.0.
 Friday, September 30, 2005

Many times I get this php question; How do I use a different mail server than is mentioned in the Php.ini to send mail from a web site form?

The simple way is to have something like this included as part of the doc. By placing this at the top of the doc you can define it to your php scripts. A special note though many hosts use a internal relay server as a preferred. This is due to the fact that they force authentication in order to send mail from their mail servers. You may wish to check with your web host to make sure if this does not work. They would typically give you the name of the internal relay server that would handle this outbound mail. This would go into the field "mail.domainname.com".


ini_set('SMTP', "mail.domainname.com");
ini_set('sendmail_from', "noreply@domainname.com");

Dev
9/30/2005 7:57:48 AM (Pacific Daylight Time, UTC-07:00)  #    Disclaimer  |  Comments [0]  | 
Related Posts:
EGroupware
Microsoft and Iron Ruby
SQL injection
Synchronize Mysql data with php
IE 8 passes ACID2 test
SQL Speed Tip

Name
E-mail
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):