Email notification Not working

Support for Traq 3.x
Post Reply
User avatar
saby003
Newbie
Posts: 3
Joined: Fri May 09, 2014 3:43 pm

Email notification Not working

Post by saby003 » Fri May 09, 2014 3:49 pm

Hello,
We have setup traq3.5 in our intranet.
Email addresses are put everywhere there is scope.
But users are NOT getting notified by email.
By the way, we have our own email server hosted in our own LAN.
Please help.

User avatar
Jack
Advanced Member
Posts: 668
Joined: Fri Mar 27, 2009 7:37 pm
Location: Australia

Re: Email notification Not working

Post by Jack » Sat May 10, 2014 10:29 am

Try uses PHP's "mail()" function to send mail.
 
Try the following to see if it works:

Code: Select all

<?php
$your_email = "[email protected]";

var_dump(mail(
  $your_email, // To
  "Testing",   // Subject
  "Testing PHP mail()", // Message
  "From: {$your_email}" // From header
));

User avatar
saby003
Newbie
Posts: 3
Joined: Fri May 09, 2014 3:43 pm

Re: Email notification Not working

Post by saby003 » Tue May 13, 2014 9:00 pm

Jack, do you mean to test php's mail function? Anyway, it is giving result "bool(false)".
However, I need the mailing solution from within Traq.
Thanks
[quote="Jack"]
 
Try uses PHP's "mail()" function to send mail.
 
Try the following to see if it works:

Code: Select all

<?php
$your_email = "[email protected]";

var_dump(mail(
  $your_email, // To
  "Testing",   // Subject
  "Testing PHP mail()", // Message
  "From: {$your_email}" // From header
));
[/quote]

User avatar
Jack
Advanced Member
Posts: 668
Joined: Fri Mar 27, 2009 7:37 pm
Location: Australia

Re: Email notification Not working

Post by Jack » Thu May 15, 2014 12:08 am

If the "mail()" function from the test code is returning false then there appears to be an issue with PHP's configuration with sending mail, and because Traq uses the mail function, it also will not work.
 
How is your PHP configured for email?
 
Does the server have Postfix, Exim, Sendmail, or another mail transfer agent installed?
Last edited by Jack on Fri May 16, 2014 12:31 pm, edited 1 time in total.

User avatar
saby003
Newbie
Posts: 3
Joined: Fri May 09, 2014 3:43 pm

Re: Email notification Not working

Post by saby003 » Wed May 21, 2014 2:17 pm

You mean the Traq server has to act as mail server too. No...we have our organization's mail server hosted in the same network. I am trying to send mail through that mail server.
Thank you
[quote="Jack"]
If the "mail()" function from the test code is returning false then there appears to be an issue with PHP's configuration with sending mail, and because Traq uses the mail function, it also will not work.
 
How is your PHP configured for email?
 
Does the server have Postfix, Exim, Sendmail, or another mail transfer agent installed?
[/quote]

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest