Skip to content
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

Email not sending #12

Open
J0han3s opened this issue Oct 11, 2021 · 2 comments
Open

Email not sending #12

J0han3s opened this issue Oct 11, 2021 · 2 comments

Comments

@J0han3s
Copy link

J0han3s commented Oct 11, 2021

I have tried two different email addresses, but cannot get it to send the email. Not sure which logs to provide? Nothing came up in the console of the chromium browser

@BrianHepler
Copy link
Owner

I've never tried to use the email function. Which provider are you using? I'll give it a go.

@BrianHepler
Copy link
Owner

I just played around with this and got a spare Gmail account to work. The steps roughly go like so:

  1. Go to Gmail and click on your account icon in the upper right corner.
  2. Select Manage Account.
  3. Left side, select Security
  4. Center, where it says "Log in to GMail" select App Passwords
  5. Generate an app password of type "other". Call it "magic mirror" or whatever. It will generate a random password for you. This is the password you plug into the config.js file on your mirror. That part of your module configuration should look like this:
sendMail: {
     transport: {
          host: 'smtp.gmail.com',
          port: 465,
          secure: true,
                auth: {
                    user: "[yourGmailAccountName]@gmail.com",
                    pass: "[generatedPasswordGoesHere]"
                    }
     },
          message: {
                    from: "[yourGmailAccount]@gmail.com",
                    to: "destinationEmail@company.com",
                    subject: "Mirror has given Dobbie a selfie!",
                    text: "New selfie has arrived."
          }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants