Popularity
1.3
Stable
Activity
0.0
Stable
5
3
2
Programming language: Go
Latest version: v0.2
directEmail alternatives and similar packages
Based on the "Email" category.
Alternatively, view directEmail alternatives based on common mentions on social networks and blogs.
-
hermes
Golang package that generates clean, responsive HTML e-mails for sending transactional mail -
email-verifier
:white_check_mark: A Go library for email verification without sending any emails. -
chasquid
SMTP (email) server with a focus on simplicity, security, and ease of operation [mirror] -
go-simple-mail
Golang package for send email. Support keep alive connection, TLS and SSL. Easy for bulk SMTP. -
paperboy
💌💨 Email Campaign Delivery built with GoLang inspired by GoHugo -
go-message
:envelope: A streaming Go library for the Internet Message Format and mail messages -
Mailchain
Using Mailchain, blockchain users can now send and receive rich-media HTML messages with attachments via a blockchain address. -
go-mail
:incoming_envelope: Simple email interface across multiple service providers (ses, postmark, mandrill, smtp) -
truemail-go
🚀 Configurable Golang 📨 email validator/verifier. Verify email via Regex, DNS, SMTP and even more. Be sure that email address valid and exists.
Clean code begins in your IDE with SonarLint
Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
Promo
www.sonarlint.org
Do you think we are missing an alternative of directEmail or a related project?
README
directEmail
Deprecate: later use https://github.com/Supme/smtpSender
Example
package main
import (
"github.com/supme/directEmail"
"time"
"fmt"
)
func main() {
email := directEmail.New()
// if use socks5 proxy
email.Ip = "socks://123.124.125.126:8080"
// or with auth
email.Ip = "socks://user:[email protected]:8080"
// if use specified interface
email.Ip = "192.168.0.10"
// if use NAT
email.MapIp = map[string]string {
"192.168.0.10": "31.33.34.35",
}
// if left blank, then auto resolved (for socks use IP for connecting server)
email.Host = "resolv.name.myhost.com"
email.FromEmail = "[email protected]"
email.FromName = "Sender name"
email.ToEmail = "[email protected]"
email.ToName = "Reciver name"
// add extra headers if need
email.Header(fmt.Sprintf("Message-ID: <test_message_%d>", time.Now().Unix()))
email.Header("Content-Language: ru")
email.Subject = "Тест отправки email"
// plain text version
email.TextPlain(`Текст моего TEXT сообщения`)
// html version
email.TextHtml(`
<h2>My email</h2>
<p>Текст моего HTML сообщения</p>
`)
// or html version with related files
email.TextHtmlWithRelated(`
<h2>My email</h2>
<p>Текст моего HTML with related files сообщения</p>
<p>Картинка: <img src="cid:myImage.jpg" width="500px" height="250px" border="1px" alt="My image"/></p>
`,
"/path/to/attach/myImage.jpg",
)
// attach file if need
email.Attachment("/path/to/attach/file.jpg")
// Render email message
email.Render()
// if dkimSelector not blank, then add DKIM signature to message
email.RenderWithDkim("myDKIMselector", []byte("DKIMprivateKey"))
print("\n", string(email.GetRawMessageString()), "\n\n\n")
err := email.Send()
if err != nil {
print("Send email with error:", err.Error())
}
// or send from SMTP server use login and password
err := email.SendThroughServer("smtp.server.tld", 587, "username", "password")
if err != nil {
print("Send email with error:\n", err.Error(), "\n")
}
}