In Magento 2 we can send the mail using their function but there are some changes in Magento 2.

Now Let’s start how to send the email.

1. create email_templates.xml in the path app/code/Webmull/Email/etc

2. create send_form.html in the path app/code/Webmull/Email/view/frontend/email

 3. Write the code in controller file to send the email

If we want to use the email of frontend write this area

\Magento\Framework\App\Area::AREA_FRONTEND

if we want to use the email of backend area
\Magento\Backend\App\Area\FrontNameResolver::AREA_CODE

Now check the email 🙂