Giter VIP home page Giter VIP logo

Comments (5)

alexcesaro avatar alexcesaro commented on July 28, 2024

CRAM-MD5 is already implemented in the standard library.

I added an example to make it clear how to use it with Gomail.

from gomail.

Jonny007-MKD avatar Jonny007-MKD commented on July 28, 2024

Thank you, that's quite easy :)
What about auto detection of Auth? Like using CRAM-MD5 if supported by the server and falling back to LOGIN/PLAIN if not? Can I do this without connecting to the SMTP server on my own?

from gomail.

alexcesaro avatar alexcesaro commented on July 28, 2024

I just added the automatic support of CRAM-MD5.

You should now be able to remove the Send method in Gogs. The only setting that is not supported in Gomail is the DisableHelo setting of Gogs. But it seems useless since the functions of the smtp package automatically call Client.hello().

from gomail.

Jonny007-MKD avatar Jonny007-MKD commented on July 28, 2024

Great, thanks! :)

I found some code (in smtp.go?) that says something like

if hostname != "" {
    c.Hello(hostname)
}

Is this redundant in gomail if the smtp package calls it?

from gomail.

alexcesaro avatar alexcesaro commented on July 28, 2024

The smtp package calls the Hello with localhost as a parameter. If you want to call Hello with an other parameter you have to call it manually. That is why it is called in Gomail when LocalName is not empty.

from gomail.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.