No eMail notifications email received

feature requests for Leave Management Module

Moderator: Admin

No eMail notifications email received

Postby kubokok » Thu Jun 07, 2007 7:03 am

Hi just wanted to ask how come no emails are being received whenever a leave application/approval is made. If I view the /lib/logs/notification_mails.log file, it shows that notifications had been sent. I have verified my email notification settings and set the path correctly for the sendmail settings. Any help will be appreciated.
kubokok
 

Re: No eMail notifications email received

Postby koshika » Thu Jun 07, 2007 2:08 pm

Hi,

If the sendmail's path is configured correctly, then everything should be good. If the application's internal mail log confirms that the mail is sent that means it is parsed into sendmail.

That leads us to investigate what happens within sendmail. Can you have a look into 'maillog' (/var/log/maillog). You can try triggering a mail and see in the log what actually happens after sendmail takes over.

Regards,
koshika
 
Posts: 202
Joined: Thu Oct 19, 2006 10:07 am

Postby kubokok » Fri Jun 08, 2007 6:43 am

Thanks, I've tried to do a test email using PHP's mail() function and I can receive email coming from sendmail. Below is the script I used:

<?php
$to = "myemail@myserver.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>

When I tried to apply for a leave and checked the maillog, there is no trace of emails passed to sendmail. I've also tried doing various changes to the path to sendmail but no luck with email notifications.
kubokok
 

Re:

Postby koshika » Fri Jun 08, 2007 2:34 pm

Hi,

Since the mail() function sends the mails correctly, you can be assured that PHP has the sendmail path configured correctly.

Can you create a phpinfo(); page;

Code: Select all
<?php phpinfo(); ?>


and in the resulting page search for 'sendmail_path'. You should be using exactly the same path as given in the phpinfo page.

Regards,
koshika
 
Posts: 202
Joined: Thu Oct 19, 2006 10:07 am

Postby kubokok » Wed Jun 13, 2007 4:24 am

Thank you very much for the help. It seems I have to put the entire /usr/sbin/sendmail -t -i on the sendmail path.
kubokok
 
Posts: 1
Joined: Tue Jun 12, 2007 6:32 am

mail isnt sent out of leave module

Postby ceta » Mon Sep 17, 2007 7:16 pm

Hay!
I have SME server 7.2 with qmail server.

I found in my log file that mails from Orange.hrm arent sent because messages from Orange.hrm doesnt have time stamp.
This is what my log file says:

Mail with no Date header not accepted here...

I am asking you if you could add time stamp to header of messages you sent from php script in Orangehrm.

Thanks.

Best regards!
ceta
 
Posts: 3
Joined: Wed Aug 08, 2007 1:54 pm

mail isnt sent out of leave module

Postby ceta » Mon Sep 17, 2007 7:17 pm

Hay!
I have SME server 7.2 with qmail server.

I found in my log file that mails from Orange.hrm arent sent because messages from Orange.hrm doesnt have time stamp.
This is what my log file says:

Mail with no Date header not accepted here...

I am asking you if you could add time stamp to header of messages you sent from php script in Orangehrm.

Thanks.

Best regards!
ceta
 
Posts: 3
Joined: Wed Aug 08, 2007 1:54 pm

Re: No eMail notifications email received

Postby lesjosh2 » Thu May 20, 2010 8:24 am

Thanks for the info here...
lesjosh2
 
Posts: 1
Joined: Thu May 20, 2010 8:20 am

Re: No eMail notifications email received

Postby yuriart10 » Thu Oct 21, 2010 2:20 pm

I have SME server 7.2 with qmail server.
yuriart10
 
Posts: 1
Joined: Thu Oct 21, 2010 1:28 pm


Return to Leave Module

Who is online

Users browsing this forum: No registered users and 2 guests