Page 1 of 2

Email

Posted: Sun Aug 24, 2008 7:29 pm
by b1ackcr0w
Hi,

I have set up all the email fields correctly in the various configuration screens in s9y. But it doesn't seem to want to send emails notifying my of posts, new guestbook entries or comments. Any Ideas?

How do I check the interation of the S9y application and the host email server?

Re: Email

Posted: Mon Aug 25, 2008 12:20 pm
by garvinhicking
Hi!

Did you check your local PHP's sendmail integration? Are you using Windows or Linux? s9y simply calls the php Mail() command, so you could create a test.php script simply using mail() and go debugging from there?

Regards,
Garvin

Posted: Tue Aug 26, 2008 9:17 pm
by b1ackcr0w
Aparently, my hosting company uses a thing called "Jmail", does this alter matters?

Posted: Tue Aug 26, 2008 9:27 pm
by garvinhicking
Hi!

I've never heard of that.If it doesn't support sendmail hooks, you can't use the php MAIL() command....

Regards,
Garvin

Posted: Thu Sep 18, 2008 9:23 pm
by b1ackcr0w
garvinhicking wrote:Hi!

I've never heard of that.If it doesn't support sendmail hooks, you can't use the php MAIL() command....

Regards,
Garvin
Having looked at it again, this wasn't it, because it has sent some email out.

I'm thinking it's a path to server thing. I did move my s9y installation from /serendipity/ to /

is there some PHP I need to alter somewhere, or maybe a directory permission or something else I've missed?

Posted: Fri Sep 19, 2008 11:14 am
by garvinhicking
Hi!

No, s9y simply uses the mail() command, there is no difference in which path this runs, because it uses no path parameters.

The only thing that mail() uses is the blog's mail address. If that is invalid, this might be a reason why the command fails. You might want to check the jmail server logs whether it accepts/rejects your mails.

HTH,
Garvin

Posted: Sat Sep 20, 2008 11:46 am
by b1ackcr0w
garvinhicking wrote:Hi!

No, s9y simply uses the mail() command, there is no difference in which path this runs, because it uses no path parameters.

The only thing that mail() uses is the blog's mail address. If that is invalid, this might be a reason why the command fails. You might want to check the jmail server logs whether it accepts/rejects your mails.

HTH,
Garvin
I can find the web server logs using FTP. Not a clue how I get into the mail logs. :(

Posted: Sat Sep 20, 2008 11:51 am
by b1ackcr0w
b1ackcr0w wrote:
garvinhicking wrote:Hi!

No, s9y simply uses the mail() command, there is no difference in which path this runs, because it uses no path parameters.

The only thing that mail() uses is the blog's mail address. If that is invalid, this might be a reason why the command fails. You might want to check the jmail server logs whether it accepts/rejects your mails.

HTH,
Garvin
I can find the web server logs using FTP. Not a clue how I get into the mail logs. :(
The helpfile my host has about sending mail says....

How to use Fasthosts' SMTP servers
You can use Fasthosts' SMTP servers to send email if you use:

* Fasthosts Broadband or Fasthosts Dial
* Advanced mailboxes
* scripts on our web servers that send email.

Fasthosts Broadband and Dial: Use smtp.fasthosts.co.uk to send email, ensuring that it is set not to authenticate using a username and password.

does that help?!

Posted: Sat Sep 20, 2008 12:09 pm
by sonichouse
Fasthosts have a PHP example here.

Check your php.ini to see how it is configured.

Hope this helps.

Posted: Sat Sep 20, 2008 1:34 pm
by garvinhicking
Hi!

Also make sure your blog'S email address is configured to use exactly the mailadress you have. It seems your host blocks any outgoing mail adresses that do not match with that exact mail account.

Regards,
Garvin

Posted: Sat Sep 20, 2008 6:51 pm
by b1ackcr0w
garvinhicking wrote:Hi!

Also make sure your blog'S email address is configured to use exactly the mailadress you have. It seems your host blocks any outgoing mail addresses that do not match with that exact mail account.

Regards,
Garvin
Yeah, I've double checked that. I've also checked the mailbox is sending and receiving mail. I'm pretty sure I've got it down either to a problem between the host web/mail server, or s9y not send the mail command in a way the host likes.

Sorry this is turning out to be such a pain.

Posted: Sat Sep 20, 2008 6:53 pm
by b1ackcr0w
sonichouse wrote:Fasthosts have a PHP example here.

Check your php.ini to see how it is configured.

Hope this helps.
Sorry to be a dolt, where do I find php.ini?

Posted: Sat Sep 20, 2008 7:02 pm
by sonichouse
Looks like fasthosts locked down their php installation.
Create a html file with the following

Code: Select all

<?php
phpinfo();
?>
upload this to your server directory, and then open the file in your browser.... this will dump the php.ini settings for you to look at.

check the sendmail settings.

Posted: Sat Sep 20, 2008 7:35 pm
by b1ackcr0w
sonichouse wrote:Looks like fasthosts locked down their php installation.
Create a html file with the following

Code: Select all

<?php
phpinfo();
?>
upload this to your server directory, and then open the file in your browser.... this will dump the php.ini settings for you to look at.

check the sendmail settings.
Looks like it's locked down even tighter. I didn't get any out put at all. :(

Posted: Sat Sep 20, 2008 8:00 pm
by sonichouse
I would be tempted to make a copy of your functions.inc.php and then modify the serendipity_sendMail function.

I wonder if your host is being too aggressive when parsing your mail headers.

Try changing

Code: Select all

return mail($maildata['to'], $maildata['subject'], $maildata['message'], implode("\n", $maildata['headers']));
to

Code: Select all

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

return mail($maildata['to'], $maildata['subject'], $maildata['message'], implode("\n", $maildata['headers']), '-f.$maildata['blogMail']' );
or even hard code the additional parameter as '-fuser@yourdomain.com'

EDIT updated code to add the ini_set as per their example.