Magento send mail attach file

0

Hi everyone,
Today I share code to send mail attach file in Magento.

Magento supported functions about mail for user and coder can easy to manipulate, config and custom these funstions

Before, we need look back Email Addresses config of Magento:

Magento send mail attach file

Here, I will use General Contact ($mailSender and $nameSender)

Code below:

After call sendEmail() function from anywhere you want. Please check mail inbox and see result

Magento send mail attach file

Thanks for watching!

About Author

Là một developer rất ham chơi nhưng không ham hố, không ham chơi nhưng rất thích cầm đầu...

Leave a Reply