Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-17 20:04:09

jimmygator
Member
Registered: 2008-03-17
Posts: 10

PHP mail and IIS

Hi;

New to Textpattern and php in general. My web host is a windows box IIS. I did get Textpatteren installed OK and mounted the MySQL database. The issue is with sending out email to new users and other instants where email needs to be passed. One of the techs for my web host sent the following reply to my question about their windows server supporting php mail:

Q: I’m looking at an open source app that needes PHP mail configured to pass email. Can this be configured using currently configured account?

A: Sure, you are able to send mails through php scripts. You can use php mail() function to send mails and scripts which are working through SMTP protocol (SMTP server should be localhost or 127.0.0.1).
I would like to bring to your attention that we have certain limits on
the smarthost server which is responsible for sending mails using php
mail() function from web servers. In order not to share these limits
with other customers on your server you should insert the following
string before php mail() function in your form:

ini_set('sendmail_from', 'user@yourdomain.com');

Offline

#2 2008-03-18 01:08:05

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: PHP mail and IIS

The file you want to modify is txplib_misc.php. You would insert that code at line 980. :)

Offline

#3 2008-03-18 01:22:44

jimmygator
Member
Registered: 2008-03-17
Posts: 10

Re: PHP mail and IIS

Mary wrote:

The file you want to modify is txplib_misc.php. You would insert that code at line 980. :)

Thanks! Works great!

Jim

Offline

Board footer

Powered by FluxBB