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

bug: Mail restricted to secure connections #16

Closed
mhaymore opened this issue Oct 28, 2024 · 5 comments
Closed

bug: Mail restricted to secure connections #16

mhaymore opened this issue Oct 28, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@mhaymore
Copy link

Bug Report

Current behavior:
Emails to non SSL enabled SMTP servers fails.

Sorry, we are unable to send email notification of your presence. Please try again! Error: System.Net.Mail.SmtpException: Server does not support secure connections.
at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint)
at System.Net.Mail.SmtpClient.GetConnection()
at System.Net.Mail.SmtpClient.Send(MailMessage message)
at AzureDevOpsBackup.Class.ReportSender.SendEmail(String serverAddress, String serverPort, String emailFrom, String emailTo, String emailStatusMessage, List1 repoCountElements, List1 repoItemsCountElements, Int32 repoCount, Int32 repoItemsCount, Int32 totalFilesIsBackupUnZipped, Int32 totalBlobFilesIsBackup, Int32 totalTreeFilesIsBackup, String outDir, String elapsedTime, Int32 errors, Int32 totalFilesIsDeletedAfterUnZipped, Int32 totalBackupsIsDeleted, String daysToKeep, String repoCountStatusText, String repoItemsCountStatusText, String totalFilesIsBackupUnZippedStatusText, String totalBlobFilesIsBackupStatusText, String totalTreeFilesIsBackupStatusText, String totalFilesIsDeletedAfterUnZippedStatusText, String letOverZipFilesStatusText, String letOverJsonFilesStatusText, String totalBackupsIsDeletedStatusText, Boolean useSimpleMailReportLayout, Boolean noAttatchLog, String isOutputFolderContainFilesStatusText, String isDaysToKeepNotDefaultStatusText, String startTime, String endTime, Boolean deletedFilesAfterUnzip, Boolean checkForLeftoverFilesAfterCleanup)

And terminal output nor log report failure

Expected behavior:

Requesting switch or config to allow sending to non-SSL enabled SMTP servers.

@mhaymore mhaymore added the bug Something isn't working label Oct 28, 2024
@michaelmsonne
Copy link
Owner

Thanks for the report! Will look into it and get back - have not tested this, as I have not a non secure SMTP server 😉

michaelmsonne added a commit that referenced this issue Nov 7, 2024
@michaelmsonne
Copy link
Owner

Hi @mhaymore ,

I have created a pre-release here you can test out :)

https://github.com/michaelmsonne/AzureDevOpsBackupTool/releases/tag/1.1.2.1

Let me hear if it works for you or not :)

@mhaymore
Copy link
Author

mhaymore commented Nov 7, 2024

@michaelmsonne I just tested it, and it worked great for me. No more errors, and the email was sent and received successfully. Thank you!

@mhaymore mhaymore closed this as completed Nov 7, 2024
@michaelmsonne
Copy link
Owner

Nice to hear @mhaymore - I will puch it to main! Thanks for confirming it´s working 😎

No problem!

@michaelmsonne
Copy link
Owner

Official build is now here :)

https://github.com/michaelmsonne/AzureDevOpsBackupTool/releases/tag/1.1.2.1

Thanks for the bug reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants