+
Skip to content

Add support for (semi-)arbitrary tokens #36

Open
@jetmore

Description

@jetmore

Imagine a situation where a user wants to send a link to a report every night. The text of the email is static except for the link. Rather than forcing the user to rebuild the full body each night, offer the ability for the user to reference a custom token in the body, and define the custom token on the command line.

$ cat body.txt
The result of the night widget report is available and can be viewed at %REPORT_URL%
$ swaks -t report@example.com --body body.txt --token REPORT_URL:http://example.com/report/20210421.html

Not convinced about the name of --token or that argument format, but that's the idea

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew functionality slated to be implemented someday

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载