Email

Having trouble installing serendipity?
b1ackcr0w
Regular
Posts: 19
Joined: Thu Jul 03, 2008 8:27 am
Contact:

Email

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Email

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
b1ackcr0w
Regular
Posts: 19
Joined: Thu Jul 03, 2008 8:27 am
Contact:

Post by b1ackcr0w »

Aparently, my hosting company uses a thing called "Jmail", does this alter matters?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
b1ackcr0w
Regular
Posts: 19
Joined: Thu Jul 03, 2008 8:27 am
Contact:

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
b1ackcr0w
Regular
Posts: 19
Joined: Thu Jul 03, 2008 8:27 am
Contact:

Post 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. :(
b1ackcr0w
Regular
Posts: 19
Joined: Thu Jul 03, 2008 8:27 am
Contact:

Post 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?!
sonichouse
Regular
Posts: 196
Joined: Sun May 11, 2008 2:53 am
Contact:

Post by sonichouse »

Fasthosts have a PHP example here.

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

Hope this helps.
Steve is occasionally blogging here
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
b1ackcr0w
Regular
Posts: 19
Joined: Thu Jul 03, 2008 8:27 am
Contact:

Post 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.
b1ackcr0w
Regular
Posts: 19
Joined: Thu Jul 03, 2008 8:27 am
Contact:

Post 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?
sonichouse
Regular
Posts: 196
Joined: Sun May 11, 2008 2:53 am
Contact:

Post 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.
Steve is occasionally blogging here
b1ackcr0w
Regular
Posts: 19
Joined: Thu Jul 03, 2008 8:27 am
Contact:

Post 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. :(
sonichouse
Regular
Posts: 196
Joined: Sun May 11, 2008 2:53 am
Contact:

Post 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.
Steve is occasionally blogging here
Post Reply