Skip to content

RSS to Email with Azure Durable Functions

License

Notifications You must be signed in to change notification settings

yifanbian/rss2email

Repository files navigation

RSS to Email with Azure Durable Functions

A open-source Serverless tool for getting news from RSS feeds in email.

Usage

  1. Deploy rss2email to Azure Functions
  2. In Azure Portal, navigate to your Azure Functions, go to Settings - Configuration, and add your configuration there. You may create a fork and maintain your appsettings.json yourself.
  3. Time Trigger should automatically start a RSS to Email workflow on Azure Functions start-up and periodically after start-up, but you may use HTTP Trigger to start a RSS to Email workflow manually.

Configuration

Here is a example of appsettings.json.

{
  "RssToEmail": {
    "Subscriptions": [
      {
        "Name": "Test",
        "Recipient": "[email protected]",
        "Feeds": [
          {
            "Name": "Test Feed",
            "FeedUrl": "https://rss.example.com/feed.xml"
          }
        ]
      }
    ]
  },
  "Email": {
    "Type": "Smtp",
    "Config": {
      "Host": "smtp.example.com",
      "Port": 465,
      "EnableSsl": true,
      "From": "[email protected]",
      "Username": "[email protected]",
      "Password": "?"
    }
  }
}

Email:Type can be Smtp or MicrosoftGraph. If Email:Type is MicrosoftGraph, Email:Config should be like this:

{
  "TenantId": "00000000-0000-0000-0000-000000000000",
  "ClientId": "00000000-0000-0000-0000-000000000000",
  "ClientSecret": "?",
  "From": "[email protected]"
}

To provide configuration with environment variables (such as on Azure Portal), check out the Environment variables section in Configuration in ASP.NET Core.

License

Licensed under MIT License.

About

RSS to Email with Azure Durable Functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages