Open Source Go Library for Email Messages

Free GO .NET Library for Generating Message with Attachments.

Email is an Open Source robust and flexible email libray for GO developers. It is a lightweight and simple email pakcage to provide email interface for humans. Using the API you can create a new email, set From, To Bcc and CC set email addresses in diffrent formats, use text & HTML in email body, and manage attachments. Furtheremore, the API allows designing custom email headers and allows reading receipts.

Using the API you can create an email for any type that implements the io.Reader infercae e.g you can send emails using your Gmail acocunt by setting email proporties directly from the struct.

Previous Next

Getting Started with Email

The easiest way to install Email is via GitHub. You can the following command to install Email Go API

install Email API via GitHub

go get github.com/jordan-wright/email

Create New Messages via Free Go API

The Open Source API Email library enables software developers to create email message via GO. Creating a new email with the API is pretty simple. You can start creating email by creating a new emial instance by using emial.NewEmail() method. You can set From, To Bcc and CC by using the propeties of new created email instance - email.From = = "John Don <This email address is being protected from spambots. You need JavaScript enabled to view it.>", email.To, email.Bcc and email.Cc respectively. Similary setting Subject and Body is peice of cake aswell. You can set the subject using, email.Subject and set body either by using email.Text or email.HTML method. When you have your email content ready, you can send it using email.Send() method.

Free GO API to Create Email with Attachments

Email API provides features for generating a message with attachments inside GO applications.  Attachments are just like any other properties of email API. Just like you set From, To, Ccc, Bcc and subject, you can add attachments using email.AttachFile() method