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

Must issue a STARTTLS command first when sending email #32

Closed
Amishman opened this issue Jun 8, 2020 · 4 comments
Closed

Must issue a STARTTLS command first when sending email #32

Amishman opened this issue Jun 8, 2020 · 4 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@Amishman
Copy link

Amishman commented Jun 8, 2020

I am able to send an email through Gmail with the less secure app turned on. When I try to send an email with 2 steps verification turned on, I receive the following error message.

image

I use the code generated by Gmail as my new password in my credentials.xml. It does not give me an error message about the credentials.

@alekdavis
Copy link
Owner

Based on the answer posted here (https://stackoverflow.com/questions/17281669/using-smtp-gmail-and-starttls/21909926#:~:text=Gmail%20exposes%20port%20465%20for,then%20switches%20to%20SSL%2FTLS.), try changing port in the configuration file (or via command line) to 465 (by default, it uses port 587). See if it helps.

@Amishman
Copy link
Author

Amishman commented Jun 9, 2020

I changed the port to 465 and now it times out.

image

@alekdavis
Copy link
Owner

Can you troubleshoot it from PowerShell command line? Forget about the PlexBackup script. Try something like an example here (include the port flag if the -Port command-line switch):

https://stackoverflow.com/a/54129858/52545

@Amishman
Copy link
Author

Amishman commented Jun 9, 2020

I finally got PlexBackup to work properly. Originally, I had the "To" and "From" as the same Gmail account. When I tried the example you provided, I used the original Gmail account as the "From" and another Gmail account as the "To". When I used port 465, I got the time out error but 587 worked. I then changed the information to match in PlexBackup.ps1.json and it worked. I'm guessing Gmail didn't like sending/receiving a 2 step verification email to the same account.

Thank you for your time and script. It is much appreciated.

@Amishman Amishman closed this as completed Jun 9, 2020
@alekdavis alekdavis self-assigned this Mar 2, 2023
@alekdavis alekdavis added the help wanted Extra attention is needed label Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants