🚀
Finter
PlaygroundData Catalogue
Quick Start
Quick Start
  • Getting Started with Finter: A Quick Guide
  • Explore Finter
    • Finter Labs (Recommended)
    • Other Ways
      • Google Colab
      • Conda, venv, or Docker
      • Setting Up a .env File (Optional)
  • Framework
    • CM (Content Model)
    • AM (Alpha Model)
    • PM (Portfolio Model)
    • Simulatior
      • Target Volume Limit
    • Finter Cli Submission
      • Validation
      • GitHub Sync
      • [Legacy] JupyterLab Submission
      • [Legacy] Submission
  • MODELING
    • MetaPortfolio
      • Equal weight meta portfolio
      • Fixed weight meta portfolio
      • Risk parity meta portfolio
    • StrategicAssetAllocation
    • DateConverter
    • BuyHoldConverter
  • Supporting Tools
    • FileManager
    • Finter AI (alpha ver.)
    • Data
      • FinHelper
        • filter_unchanged
        • unify_idx
        • shift_fundamental
        • rolling
        • expand_to_gvkeyiid
      • ModelData
      • ID Table
      • ID Converter
      • Quanda Data
    • Evaluator
      • top_n_assets
      • bottom_n_assets
      • compare_with_bm
    • PortfolioAnalyzer
    • Email
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Supporting Tools

Email

This page explains the functionality of sending emails using AWS SES.

Prerequisites

Before using this function, ensure that the following AWS credentials and configurations are set as environment variables:

  • AWS_ACCESS_KEY_ID: Your AWS Access Key ID. This key is required for authenticating requests to AWS services.

  • AWS_SECRET_ACCESS_KEY: Your AWS Secret Access Key. This key is used in conjunction with the Access Key ID to securely authenticate AWS requests.

  • AWS_REGION: The AWS region where your resources are located (e.g., ap-northeast-2). If not specified, the default region is set to ap-northeast-2.

These environment variables must be correctly configured in your system or application runtime environment to successfully authenticate and interact with AWS services.

Parameters

  • sender (str): The sender's email address. Must be an email registered with Amazon SES.

  • recipient (str or list): The recipient's email addresses.

  • subject (str): The subject line of the email.

  • body (str): The content of the email body.

  • cc_addresses (list, optional): A list of email addresses to be included as CC (carbon copy) recipients.

  • attachments (list, optional): A list of file paths for attachments to include in the email.

  • addon_subject (str, optional): Additional text to append to the email subject.

Exmaple

from finter.utils.email import send_email
send_email('sender@example.com', ['recipient@example.com'], 
           'hello,안녕,Xin chào', 'Hello Finter', 
            cc_addresses=['cc@example.com'], attachments=['my_attch.pdf'])

Last updated 5 months ago

Was this helpful?