Giter VIP home page Giter VIP logo

Comments (4)

mtowara avatar mtowara commented on May 21, 2024

Nevermind, I figured out how to do it with the dict method (yagmail.SMTP(user={"myuser":"[email protected]"})

However I now see the same behaviour as in #18 , that is "From:" shows as "user@" without the alias behind it.
I was able to fix in postfix, the headers created by yagmail looked ok.

from yagmail.

kootenpv avatar kootenpv commented on May 21, 2024

The idea was that yagmail originally intended gmail. I was under the impression that anyone using SMTP would use it with a "@" for logging into it.

This is why I figured that if someone is not giving a @, they probably intended to login in with just a username (skipping @gmail.com, as is possible at gmail itself).

The alias is used to differentiatie between login info and what is shown in the FROM header.

Do you think you would be able to login when I wouldn't automatically add the @gmail.com?

You could possibly also test it for yourself by reimplementing temporarily:

https://github.com/kootenpv/yagmail/blob/master/yagmail/yagmail.py

Removing line 305 and 306.

from yagmail.

mtowara avatar mtowara commented on May 21, 2024

Hi there,
as said for authentificating with my smtp server i need the username to be without an "@".
However as this is possible using the dict method you don't need to change anything if you don't want to.

Just FYI I'm trying to get the OctoPrint Email Notifyer Plugin to work, which uses your library.

Feel free to close the issue, thanks.

from yagmail.

kootenpv avatar kootenpv commented on May 21, 2024

Hey,

Thanks, it is very nice to see it is depended on :), thanks for notifying.

I'll leave it open for now, since you did find a workaround. Upon more requests I'll be sure to patch it.

Best,
Pascal

from yagmail.

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.