Send mail from mail ID which is not default

I tried to send mail using frappe.sendmail() with a sender which is not default in Email Account, I am not able to send mail.

is there any option to send mail from a particular sender through code or set to a doctype by default a sender?