Search code examples
vtigervtigercrm

How to change reply_to email address in Vtiger 6.4 for all the outgoing mails via Mail Manager?


When any user sends any email via Mail Manager, the default reply_to email address is set as the Help_desk_emailid by Vtiger. I want to change that reply_to email address and want to use some custom dynamic email address for all the outgoing emails via Mail manager only; not for any other outgoing emails such as events, reminders etc.

It would be really helpful even if i need to do that directly in the code in core files.


Solution

  • All the emails through Mail Manager are sent via different module and not using /modules/Emails/mail.php

    All the emails are sent from /modules/Emails/models/Record.php via send() function.

    So to change the reply_to email address we need to modify below line in send() function:

    $replyTo = $currentUserModel->get('email1');