-
Notifications
You must be signed in to change notification settings - Fork 581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sending mail using goamil v2 -Taking loo long and no response #204
Comments
Hi, gomail.v2 should automatically perform That being said, this package is not actively maintained anymore (the original maintainer of the project unfortunately passed away in 2016: #182). You might wanna look for an alternative like https://github.com/wneessen/go-mail. wneessen/go-mail has dedicated configuration parameters for forced STARTTLS as well as no authentication. |
hello @wneessen i have an issue with sending mails to gmail with attachments. im sending the attachment content as bytes cause the gmail expects without base 64 encoded but the recipient recieves messages like this --2485178b365e8156377801e519597459c8657ff2c5304ae68093127df1af This is a test email with an attachment sent using Golang via SMTP Relay. VGhpcyBpcyB0ZXN0IGRvY3VtZW50 this is my code :
i tried exclusively setting up header as binary but doesnt worked and also tried lot ways. please help me out to solve this thanks in advance |
Hi @ganeshsaptang, I haven't looked into the details of this package for years and I don't have the resources to dive into it - and as said it's not maintained anymore. So I won't be able to help you here at this point. I suggest you try out https://github.com/wneessen/go-mail. It has proper attachment handling included and is actively maintained. If you run into issues with that, please open a issue in the project accordingly. |
Thanks @wneessen for your reply! sure i will use your package for development. |
How to send mails using gomail v2 with STARTTLS ? but without credentials {username and password } is it possible? I tried without using username password but its taking loo long and no response.
This is the config im passing to my Dialandsend method :
tlsConfig := &tls.Config{InsecureSkipVerify: true, ServerName: hostName}
dialer := gomail.Dialer{
Host: hostName,{smtp-relay.gmail.com }
Port: portNumInt,
TLSConfig: tlsConfig,
}
The text was updated successfully, but these errors were encountered: