You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2011-06-15 02:19:56

abdon
Member
Registered: 2010-08-23
Posts: 101

Mail notifications not working since upgrade from .72 to .80

Under setup -> Notifications -> Configuration, I have 'way of sending emails' set to PHP. Clicking on the 'send a test email to the administrator' works just fine. Nothing else sends emails.

For instance, if I go to a ticket and try to send a validation request I get an 'Error in sending the email Could not instantiate mail function." The validation request is going to the same mail account that had no problem receiving the test email from the configuration page.

Has anybody seen this? Is there a fix?

Offline

#2 2011-06-17 03:24:49

abdon
Member
Registered: 2010-08-23
Posts: 101

Re: Mail notifications not working since upgrade from .72 to .80

bump

Offline

#3 2011-06-20 01:03:12

abdon
Member
Registered: 2010-08-23
Posts: 101

Re: Mail notifications not working since upgrade from .72 to .80

bump

Offline

#4 2011-06-22 02:03:03

abdon
Member
Registered: 2010-08-23
Posts: 101

Re: Mail notifications not working since upgrade from .72 to .80

Bump.

Nobody had any problems with the new version not emailing anymore?

As stated the 'send test email' link on the mail configuration page works, but when the system tries to send an email you get the error message.

Offline

#5 2011-06-22 09:20:17

QOS
Member
Registered: 2011-06-17
Posts: 14

Re: Mail notifications not working since upgrade from .72 to .80

Hello,

I can confirm that after upgrade not all mail notifications are working.
At least "Technician in charge of the ticket" is not receiving mails.

I've tested it also with completely fresh installation and the same.

Offline

#6 2011-06-27 12:03:54

stiwy81
Member
Registered: 2011-06-27
Posts: 1

Re: Mail notifications not working since upgrade from .72 to .80

Me too, after the update to 0.80 all the users with "post-only/standard interface" can't choose if enable the email notification for followup, and after the update the flag is set to "no" for default... for now we've set the "post-only/semplified interface" for all the users, but we'd like to use the standard interface.

Offline

#7 2011-07-04 13:17:10

QOS
Member
Registered: 2011-06-17
Posts: 14

Re: Mail notifications not working since upgrade from .72 to .80

Hello again,

in new version 0.80.1 still the same problem.

Some fix or patch is planned for this ?

Offline

#8 2011-07-07 00:23:21

abdon
Member
Registered: 2010-08-23
Posts: 101

Re: Mail notifications not working since upgrade from .72 to .80

Bump.

Is there a bug reporting mechanism to post this under?

Offline

#9 2011-07-07 21:29:35

JMD
GLPI - Lead
Registered: 2004-09-13
Posts: 9,180
Website

Re: Mail notifications not working since upgrade from .72 to .80

The first step is to read post before posting...

http://www.glpi-project.org/forum/viewt … p?id=10279


JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au  projet GLPI   : Soutenir

Offline

#10 2011-07-07 22:32:54

somersetit
Member
Registered: 2006-07-20
Posts: 33

Re: Mail notifications not working since upgrade from .72 to .80

For the issue of the technician not getting an email, take a look at this post. 

http://www.glpi-project.org/forum/viewt … p?id=24637

The code posted appears to reference revision 14810 in Redmine.
https://forge.indepnet.net/projects/glp … ions/14810

Offline

#11 2011-07-08 08:57:49

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Mail notifications not working since upgrade from .72 to .80

This fix was include in 0.80.1 vesion.
abdon : do you have logs or errors in debug mode ?


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

#12 2011-07-19 08:47:22

abdon
Member
Registered: 2010-08-23
Posts: 101

Re: Mail notifications not working since upgrade from .72 to .80

Sorry for the delay, been busy working other issues.

I applied the /inc/ticket_user.class.php patch, it didn't fix the problem. The only email that goes out is when I go to 'Setup' -> 'Notifications' -> 'Alert and email followups and alerts configuration' and hit the 'Send a test email to the administrator'. That email works just fine.

If, for example, I try to send an approval request from a ticket to a known working email, I get the following error on top of the next page" 'Error in sending the email. Could not instantiate mail function."

How do I turn on debuging mode?

Offline

#13 2011-07-21 01:27:12

abdon
Member
Registered: 2010-08-23
Posts: 101

Re: Mail notifications not working since upgrade from .72 to .80

Ok, I think I see the problem, but I don't understand how everybody else would not be having the same issue.

on class.mailer.php, protected function MailSend($header, $body). If I output to screen the $to variable (which it suposed to be the mail recepient) it prints the surname field, not the email field. The other variable that holds the recepient, $val (loaded on the foreach ($toArr as $key => $val)), is empty.

Could somebody please confirm this?

Last edited by abdon (2011-07-21 01:32:59)

Offline

#14 2011-07-21 01:43:48

abdon
Member
Registered: 2010-08-23
Posts: 101

Re: Mail notifications not working since upgrade from .72 to .80

I'm troubleshooting my problem by sending validation requests from a ticket (which of course are failing).

file class.phpmailer.php, MailSend function, line 587,588:

} else {
  $rt = @mail($to, $this->EncodeHeader($this->SecureHeader($this->Subject)), $body, $header);

This is what sends the emails, but the $to field is empty.

Offline

#15 2011-07-22 01:30:42

abdon
Member
Registered: 2010-08-23
Posts: 101

Re: Mail notifications not working since upgrade from .72 to .80

bump.

Offline

#16 2011-07-22 12:13:29

MoYo
GLPI - Lead
From: Poitiers
Registered: 2004-09-13
Posts: 14,513
Website

Re: Mail notifications not working since upgrade from .72 to .80

$to must be populated on : notificationmail.class.php on line 232
$mmail->AddAddress($options['to'], $options['toname']);

Are your emails addresses valid ?


MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI :    Support     Contribute     References     Freshmeat

Offline

Board footer

Powered by FluxBB