{"id":18609214,"url":"https://github.com/mavstuff/sftpemailsender","last_synced_at":"2025-11-02T19:30:32.427Z","repository":{"id":161006414,"uuid":"635782335","full_name":"mavstuff/SftpEmailSender","owner":"mavstuff","description":"Download files from SFTP server and send them to email","archived":false,"fork":false,"pushed_at":"2023-05-03T13:04:30.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-27T01:24:52.173Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mavstuff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-03T12:52:15.000Z","updated_at":"2023-05-03T12:52:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"a443b7fe-6bfb-4b27-9ebe-7074368d0f10","html_url":"https://github.com/mavstuff/SftpEmailSender","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavstuff%2FSftpEmailSender","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavstuff%2FSftpEmailSender/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavstuff%2FSftpEmailSender/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavstuff%2FSftpEmailSender/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mavstuff","download_url":"https://codeload.github.com/mavstuff/SftpEmailSender/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239400606,"owners_count":19632049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T03:05:32.615Z","updated_at":"2025-11-02T19:30:32.394Z","avatar_url":"https://github.com/mavstuff.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## SftpEmailSender\n\n**SftpEmailSender** is an app that downloads files from SFTP server and sends them to email\n\nThis is a C# .NET 6.0. application that downloads new files from an SFTP server, compresses them into a single ZIP file, and sends the ZIP file via email using System.Net.Mail and System.IO.Compression:\n\nReplace the placeholder values for SFTP and email settings with your own credentials:\n\n**SFTP server credentials and path**\u003cbr/\u003e\nstring sftpHost = \"your_sftp_host\";\u003cbr/\u003e\nint sftpPort = 22; // Default SFTP port\u003cbr/\u003e\nstring sftpUser = \"your_sftp_login\";\u003cbr/\u003e\nstring sftpPass = \"your_sftp_password\";\u003cbr/\u003e\nstring sftpRemotePath = \"/\";\u003cbr/\u003e\u003cbr/\u003e\n\n\n**Email credentials and settings**\u003cbr/\u003e\nstring smtpHost = \"your_smtp_server\";\u003cbr/\u003e\nint smtpPort = 587; // Default SMTP port\u003cbr/\u003e\nstring smtpUser = \"your_email_address\";\u003cbr/\u003e\nstring smtpPass = \"your_email_password\";\u003cbr/\u003e\nstring fromEmail = \"your_email_address\";\u003cbr/\u003e\nstring[] toEmails = new string[] { \"to_email@address_1\", \"to_email@address_2\" };\u003cbr/\u003e\n\u003cbr/\u003e\n\n**Path to sent files tracking file**\u003cbr/\u003e\nstring sentFilesPath = \"_sent.txt\";\u003cbr/\u003e\n\n**Path to cache files**\u003cbr/\u003e\nstring localFolderPath = \"C:\\\\sftp-cache\";\u003cbr/\u003e\n\n**You can also modify Email subject**\u003cbr/\u003e\nstring emailSubject = string.Format(\"Files {0:dd-MMM-yyyy}\", DateTime.Now);\u003cbr/\u003e\n\nTo run the application on a schedule, you can use the Windows Task Scheduler or another scheduling tool to execute the compiled application at specific intervals.\n\n(c) 2023 Artem Moroz, artem.moroz@gmail.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmavstuff%2Fsftpemailsender","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmavstuff%2Fsftpemailsender","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmavstuff%2Fsftpemailsender/lists"}