mostafah / mandrill Goto Github PK
View Code? Open in Web Editor NEWA small Go package for sending email through Mandrill’s API [No longer maintained]
Home Page: http://godoc.org/github.com/mostafah/mandrill
A small Go package for sending email through Mandrill’s API [No longer maintained]
Home Page: http://godoc.org/github.com/mostafah/mandrill
我的邮箱是 [email protected] 购买了蓝灯服务,结果 邮箱一直收不到验证码, 没办法登录,着急。请看一下。
Mandrill's merge_vars
allow nested JSON data (e.g. for use with handlebars-enabled templates), but the current variable
definition restricts variables to string content. Let's consider expanding the type to let client users specify variables in additional formats.
Hey,
package main
import "github.com/mostafah/mandrill"
import "fmt"
func main() {
mandrill.Key = ""
err := mandrill.Ping()
if err != nil {
fmt.Println("Mandrill credentials not valid.")
} else {
fmt.Println("Everything ok.")
}
}
always yields "Everything ok." for me. This happens with all kind of random text. I'm on OS X (if that helps you).
Keep up the work, I like your mandrill package for its simplicity.
On a side node, the Message.Send() method doesn't error out as well for me when sending with an invalid key. Should I open a seperate issue for that?
I hope you will stop programming in go because your code is just shit.
The example chains the call to SendTemplate from the msg. This only supports dynamic sections (e.g. mc:edit replacement).
If you plan to use merge vars (|YOURVAR|) you need to do the intermediate step of adding global merge vars...
msg := mandrill.NewMessageTo(email, name)
msg.AddGlobalMergeVars(data)
result, err := msg.SendTemplate(tmplName, data, true)
Very elegant library and one file. I came across this before seeing https://github.com/mattbaird/gochimp and this project does everything I need. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.