This is a simple library for sending emails with the zoho.net REST API.
Log in your zoho mail and go to Zoho.net API auth token create
import "github.com/guidopola/zohosendmail"zm, err := zohosendmail.New(ZohoAuthToken)err := zm.SendMail("[email protected]", "Test subject", "This is a test email body!", nil)// Read the file contents
content, err := ioutil.ReadFile("./example.zip")
// Upload the attachment to zoho.
attachment, err := zm.UploadAttachment("example.zip", content)
// Send the email.
err := zm.SendMail("[email protected]", "Test subject", "This is a test email body!", &zohosendmail.MailAttachmentSlice{attachment})err := zm.SendMail("[email protected]", "Test subject", "This is a test email body!", &zohosendmail.MailAttachmentSlice{attachment, attachment, attachment})MIT