Api method for sending mail (external script)

Solution here PDF Attachment in FrappeClient (Python API) - #7 by nikzz