1. Products
  2.   Email
  3.   GO
  4.   Email

Open Source Go Library for Email Messages

Free GO Library for Generating Message with Attachments.

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

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

Previous Next

Getting Started with Email

The easiest way to install Email is via GitHub. You can use 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 messages via GO. Creating a new email with the API is pretty simple. You can start an email email by creating a new email instance by using emial.NewEmail() method. You can set From, To BCC, and CC by using the properties of the newly created email instance - email.From, email.To email.BCC and email.Cc respectively. Similarly setting Subject and Body is piece of cake as well. 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.