{"id":50720,"library":"gomail-v2","title":"Gomail v2","description":"Package gomail provides a simple interface to compose emails and to mail them efficiently.","status":"active","version":"2.0.0-20160411212932-81ebce5c23df","language":"go","source_language":null,"source_url":"https://github.com/go-gomail/gomail","tags":["email","smtp","mail","gomail"],"install":[{"cmd":"go get gopkg.in/gomail.v2","lang":"bash","label":"Install gopkg.in/gomail.v2"}],"dependencies":[],"imports":[{"symbol":"gomail","correct":"gopkg.in/gomail.v2"}],"quickstart":{"code":"package main\n\nimport (\n\t\"gopkg.in/gomail.v2\"\n)\n\nfunc main() {\n\tm := gomail.NewMessage()\n\tm.SetHeader(\"From\", \"alice@example.com\")\n\tm.SetHeader(\"To\", \"bob@example.com\")\n\tm.SetBody(\"text/plain\", \"Hello!\")\n\td := gomail.NewDialer(\"smtp.example.com\", 587, \"user\", \"pass\")\n\tif err := d.DialAndSend(m); err != nil {\n\t\tpanic(err)\n\t}\n}","lang":"go","description":"Sends a simple email via SMTP."},"warnings":[{"fix":"Migrate to a maintained library such as github.com/go-mail/mail.","message":"Gomail v2 is no longer actively maintained; consider using alternatives like go-mail.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'compos':10 'effici':16 'email':11,17 'gomail':1,4,20 'interfac':8 'mail':14,19 'packag':3 'provid':5 'simpl':7 'smtp':18 'v2':2","created_at":"2026-06-15T05:06:01.419620+00:00","updated_at":"2026-06-15T05:06:01.419620+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/go-gomail/gomail","github":"https://github.com/go-gomail/gomail","docs":"https://pkg.go.dev/gopkg.in/gomail.v2#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["messaging"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}