Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-10-26 12:50:09
- digicammad
- Member
- Registered: 2005-10-11
- Posts: 71
Unable to use sendmail
I’ve just been told by my web host that they don’t support sendmail on the Windows servers, which is what I am on. They support Jmail or CDONTS, is there any way to configure Textpattern to use either of those?
Cheers
Offline
#2 2005-10-26 13:04:14
- digicammad
- Member
- Registered: 2005-10-11
- Posts: 71
Re: Unable to use sendmail
Just found the following in their support knowledgebase:
PHP on Windows
Use the PHP mail function and set the mail from using the following line of code – replacing email@mydomain with the correct domain name.
* ini_set(“sendmail_from”, “ email@mydomain “);I have other PHP scripts on which the mail function works fine, any ideas how I can sort out Textpattern please?
Last edited by digicammad (2005-10-26 13:05:17)
Offline
#3 2005-10-26 21:22:08
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Unable to use sendmail
ini_set(“sendmail_from”, ” email@mydomain ”);
You could put this in config.php.
Alternatively, if you can use .htaccess files, this might work:
php_value sendmail_from "email
mydomain”@
Alex
Offline
#4 2005-10-28 10:03:32
- digicammad
- Member
- Registered: 2005-10-11
- Posts: 71
Re: Unable to use sendmail
Thanks, I’ll try that.
Offline
#5 2005-12-12 13:58:29
- digicammad
- Member
- Registered: 2005-10-11
- Posts: 71
Re: Unable to use sendmail
Sorry but I’m definitely having a dumb moment with this. I have added this line to my other web forms and they now work. However, after adding it to config.php, I still can’t get Textpattern to mail me a notification when a new comment is added.
When my other forms were not working I was getting an error from the server, telling me that the message relay had been rejected. When I add a test comment to an article on my blog I get absolutely nothing. Does this mean that Textpattern is suppressing the errors or is something else happening?
Does the line have to go into config.php in the format shown above or in some special Textpattern format?
I would appreciate any help you could offer.
Thanks
Ian
Offline
#6 2005-12-13 10:49:54
- digicammad
- Member
- Registered: 2005-10-11
- Posts: 71
Re: Unable to use sendmail
Bump, anybody able to give me any advice on this?
Many thanks.
Offline
#7 2005-12-13 20:56:50
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Unable to use sendmail
Check the “mail comments to author” setting (admin > prefs).
Also, the email will be sent using the article author’s email as the From and To address. It could be that you’re expecting it somewhere else, or that your outgoing mail server is blocking that address for some reason.
Alex
Offline
#8 2005-12-13 22:39:44
- digicammad
- Member
- Registered: 2005-10-11
- Posts: 71
Re: Unable to use sendmail
Hi Alex. The mail comments to author setting is turned on. I am the only author of articles on the site and my email address is set correctly in the admin page.
In my other (non Txp) php email forms on the site I did have a problem with the mail before I inserted the ini_set command. The relay was being rejected and I actually got an error report. When I submit an article on the blog I see no error at all, is there anywhere I can find a trace file?
Ian
Offline
#9 2005-12-14 05:29:52
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Unable to use sendmail
Try setting Production Status to Debug. If there’s an error to display, that should do the trick.
Alex
Offline
#10 2005-12-14 08:22:44
- digicammad
- Member
- Registered: 2005-10-11
- Posts: 71
Re: Unable to use sendmail
Thanks. I tried that and got the following at the top of each page:
<code>Notice: Undefined index: DOCUMENT_ROOT in //nas21ent\domains\a\aholidayinturkey.co.uk\user\htdocs\ahitblog\textpattern\publish.php on line 81</code>
There was no error displayed either from textpattern or from my web host when I added a comment to an article.
Ian
Offline
#11 2005-12-14 08:29:30
- digicammad
- Member
- Registered: 2005-10-11
- Posts: 71
Re: Unable to use sendmail
Okay, I’ve resolved it. The server is obviously not allowing emails to be sent by Txp outside the domain to which the blog belongs. I changed the email address to one on the domain and comments are now being received.
Thanks for the help.
Ian
Offline
Pages: 1