cancel
Showing results for 
Search instead for 
Did you mean: 

How to store email content in database using magento 2

How to store email content in database using magento 2

Hello all,

I need to store hard copy of customer email content, in database using magento 2.

 

For Example,

 

enter image description here

 

admin sent emails to customer for order, update order details, shipping deatils , this email copy to store in database.

Magento 2 can store this?, suppose magento 2 store customer email means , where I should check in the database.

 

how to get hard copy of email using magento 2 ?.     Thanks in advance.

2 REPLIES 2

Re: How to store email content in database using magento 2

Your extension needs to create a table, and then add a plugin to the transactional email sending method.

Re: How to store email content in database using magento 2

Hello,

 

         Ok, I new to magento 2 , tell me which class and Method I need to apply  plugin concepts , For example  which class and methos handle this process

 

 See this link, first I get copy of email content to a file, https://community.magento.com/t5/Programming-Questions/How-to-convert-transaction-email-to-text-file...

 

But, NO luck

 

Which Module, which class and Which method to handle this process.?

 

 

Thans for Support.