ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

Frappe.sendmail vs communication.email.make

Hi there. I tried two methods for sending email in ERPNext. I had to add both the recipients and CC while sending the email. But while using frappe.sendmail() method, CC is shown as “To”.


while using make() function “frappe.core.doctype.communication.email” is working correctly.


Can anyone identify what’s the issue? Because I have seen that frappe.sendmail function is already used in many places in the code.

Kind Regards

Share your full code

If frappe.sendmail() works for you, why don’t you use it instead of make()?

Do you know what are the advantage/disadvatage of each method?

As mentioned in the question, when I use frappe.sendmail() and include a CC, the CC is shown as “To” in the email (the email received by CC account). See this picture, it is the one received by CC account

But it works correctly when I use make() function. Following is the received email by CC account

And @rahy no i dont have much knowledge about the advantage/disadvantage of each method i just tried the make() method and it solved my prob, if you could please guide the recommended approach it will be appreciated.

1 Like

Hi @Ammar-Ahmad-Khan, could you share the make() method code.