willk Posted May 6, 2015 Share Posted May 6, 2015 Hi All, In the hook hook_system_emailpresend is it possible to change the From email and From name. Thanks, Will 0 Quote Link to comment Share on other sites More sharing options...
willk Posted June 9, 2015 Author Share Posted June 9, 2015 Bump Bump Bump 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted June 9, 2015 Share Posted June 9, 2015 no, but you can specify different From Name/Email for each template as i can see. EmailPreSend will pass array of parameters only 0 Quote Link to comment Share on other sites More sharing options...
willk Posted June 9, 2015 Author Share Posted June 9, 2015 Hi, Yes I'm aware of that, however I need to change the from details based on which brand they are ordering for, different invoicing requirements etc. At the moment I have it so that it filters to a different template and ceases sending the current email. However, with things like SSL configuration that ends up with blank parameters. There must be some way to modify WHMCS so that a hook can change the email from and name. Thanks, Will 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted June 10, 2015 Share Posted June 10, 2015 currently it's not available to set external From Email/Name other than the one in setting or in email template, also sending emails from the API: http://docs.whmcs.com/API:Send_Email doesn't add this functionality. but you can override the email sending with your own functions to send customized emails, it need massive work indeed but it can be done 0 Quote Link to comment Share on other sites More sharing options...
SMC Posted April 25, 2024 Share Posted April 25, 2024 Hello there, Any progress on this matter? Despite setting the "from" email address in the email template and exclusively sending emails via API, it appears that the system is still defaulting to the "from" email address configured in the settings. So looking for the option from hook "EmailPreSend". Thank you in advance... 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.