Menu Close
    Start a Project Request quote Reading list Switch to dark mode
    magento-hyperlocal-marketplace-guide

    Magento2 Email From Header set twice Error in Custom Module Fixed

    In Magento2 Email process when you will try to send email in loop you will get this error From Header set twice in most of the cases.

    I have described here that how to solve this issue in our custom Magento2 Modules.

    1. Create a custom TransportBuilder Class used to send the email which extends the Default
    \Magento\Framework\Mail\Template\TransportBuilder Class.

    Ex: File: Webkul\CustomModule\Model\Mail\TransportBuilder.php


    And now try to send Email. I have used the custom Helper Class you can paste this code wherever you need.

    . . .

    Comment

    Add Your Comment

    Be the first to comment.

    Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close