GoMailer | 轻量电子邮件推送服务 | Email library
kandi X-RAY | GoMailer Summary
kandi X-RAY | GoMailer Summary
轻量电子邮件推送服务(A lightly email sending service for Go). 额外的可选配置: 1 支持开启reCaptcha验证,避免恶意投递 2 配置请求成功或失败时的重定向地址,相应事件发生时用户将被重定向到指定页面.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- shortcut handles shortcut request
- handleMail handles a mail message .
- prepareMessage prepares a message for an endpoint
- handle endpoint
- Setup the redirect header for the endpoint .
- PatchCreate deletes the given receivers .
- CORS is a middleware that allows us to handle requests .
- Create creates a new app .
- Find returns all users in user .
- renderPanic returns the panic message .
GoMailer Key Features
GoMailer Examples and Code Snippets
Community Discussions
Trending Discussions on GoMailer
QUESTION
I'm trying to create emailing service with go. When i tried to send email via gmail or office365 code works just fine but when i tried to send email via custom smtp i get "535 5.7.0 Invalid login or password" error.
I know username and password is correct because i am using same password and username with another python service with flask-mail and other services works just fine.
I don't have any documentation for custom smtp server but i know smtp server uses TLS
I tried plain auth, gomailer, smtp.SendMail() function and without startTLS but nothing changed.
here is my code;
...ANSWER
Answered 2021-Jun-01 at 15:00The error you get is definitely returned from smtp server. There are several authentication mechanisms supported by smtp protocol. If you do not know for sure which are supported by your server, you can debug it manually with the following command openssl s_client -crlf -ign_eof -connect :
.
After sending EHLO
to the server it will announce supported authentication mechanism(s). Then you can try to login manually and implement Start()
and Next()
properly.
Notice that some methods require login and password to be encoded(base64, md5, etc).
QUESTION
I'm trying to create a simple Go emailing service using the default Go packages net/smtp - I know there's gomailer, but i'd like to use the standard library
I need help with configuring the tls/server setting to work with Office365
I believe that I have the correct host:
...ANSWER
Answered 2019-Nov-11 at 17:22The error message Error: tls: first record does not look like a TLS handshake
is telling you what the problem is :-). If you try connecting to the server, you will see that (as any SMTP servers) it uses plain text:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install GoMailer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page