mateusznitka / protocolsmanager

GLPI Plugin to report users inventory
8 stars 13 forks source link

Emails are sent with no attachments #22

Closed patriciocs1979 closed 3 years ago

patriciocs1979 commented 3 years ago

Hello,

Thanks for this excellent plugin. It works very well, however I have not managed to make it send e-mails notifications with the created PDF attached to it. There is no error message, it just send the e-mail but it doesn't have the protocol PDF document attached. The e-mail is correctly sent to all recipients with the correct subject and e-mail body.

I am using GLPI 9.5.2 and the last version of protocolsmanager. I don't know what log file should I attach in order for you to address the issue.

image

e-mail settings: image

Template settings: image

The e-mail I receive: image

Please let me know if you need something else. Best regards and thanks in advance.

mateusznitka commented 3 years ago

Hi, One check: is your image (logo) showed in protocol?

Please try change line 555 and 671 in inc/generate.class.php: from: $fullpath = GLPI_ROOT."/files/".$path;

to: $fullpath = "/var/lib/glpi/files/".$path;

Let me know if it help or not.

Regards, Mat

patriciocs1979 commented 3 years ago

Hi, thanks for your response. Yes the logo is showed in the generated PDF protocol document.

After modifying the lines the problem is solved now. Thank you very much!!!!!!

De: Mateusz Nitka notifications@github.com Enviado el: miércoles, 20 de enero de 2021 14:50 Para: mateusznitka/protocolsmanager protocolsmanager@noreply.github.com CC: patriciocs1979 patriciocs@gmail.com; Author author@noreply.github.com Asunto: Re: [mateusznitka/protocolsmanager] Emails are sent with no attachments (#22)

Hi, One check: is your image (logo) showed in protocol?

Please try change line 555 and 671 in inc/generate.class.php: from: $fullpath = GLPI_ROOT."/files/".$path;

to: $fullpath = "/var/lib/glpi/files/".$path;

Let me know if it help or not.

Regards, Mat

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mateusznitka/protocolsmanager/issues/22#issuecomment-763821697 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRTUZYD66B3OEMJLLFQUZDS24JTVANCNFSM4WLAWO3A . https://github.com/notifications/beacon/AFRTUZYSDWRCFPWZUXFSFN3S24JTVA5CNFSM4WLAWO3KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFWDP5AI.gif