Developer forum

Forum » Development » OnSendMail notification subscriber

OnSendMail notification subscriber

Ivan Marijanović
Ivan Marijanović
Reply

Hi 

We have implemented OnSendMail notification subscriber which takes forms fields (Forms for Editors Form) and generates PDF. Then we attach that pdf to mail sent to user but document is attached only to mails of system administrators and user who filled in the form and should get pdf to print out and send back signed do not get attachment.

We are subscribing to  Notifications.Frontend.OnSendMail and we are attaching file by  item.EmailMessage.Attachments.Add(data).

Any idea why the web owners gets mail with attachemnt and user who filed in form gets only mail without attachment.

Thank you in advance!

Ivan

 


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

2 mails are sent - mail to the website owner and receipt to the website visitor. So you have also have to listen to OnSendReceipt notification

Votes for this answer: 1
 
Ivan Marijanović
Ivan Marijanović
Reply

Thank you Nicolai,

I thought that thise event is raised when then order is created and mail is sent to buyer with order details.

Thank you!

Ivan

 

You must be logged in to post in the forum