Skip to content

scottmconway/forwardemail-send-mail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ForwardEmail Send Email

A simple script to send email using ForwardEmail's API

ForwardEmail requires that the sending alias exists (catch-all aliases don't count), so this script will do the following if the sending alias does not exist:

  • Read all aliases for the domain, and check for a catch-all rule
  • If a catch-all rule exists, create the named sending alias with the same forwarding settings as the catch-all alias
  • Send the email agian
  • Delete the sending alias

If a catch-all rule does not exist for the sending domain, the program will exit without sending an email.

Requirements

  • python3
  • see requirements.txt

Quickstart

Configuration Setup

See config.json.example for an example configuration file.

Arguments

Short Name Long Name Type Description
sending_address str sender email address
recipient_addresses List[str] (one or more) recipient email addresses
subject str email subject
text str email text
--config str Path to config file - defaults to ./config.json
--api-token str API token override if not specified in config file (or if no config is specified)

About

A simple script to send email using ForwardEmail's API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages