YoRyan / mailrise

An SMTP gateway for Apprise notifications.
https://mailrise.xyz
MIT License
835 stars 35 forks source link

Use template in Apprise URL #116

Open DanfieldNet opened 4 months ago

DanfieldNet commented 4 months ago

Not sure if this is a bug or considered an enhancement. For one of the entries in my config, I'm using mailrise as a SMTP relay to SMTP2Go. The Apprise URL for SMTP2Go is in the form of: smtp2go://{user}@{domain}/{apikey}/{email}

Per the docs, I'm am trying to use the ${from} template to satisfy the URL format but the ${from} is being used as a litteral (not substituted): smtp2go://${from}/myapistring/me@mydomain

I have verified that the ${from} variable is correct (and in the correct form) by placing it in the body of the message.

Here is log output (email changed): [2024-04-21 17:38:33] WARNING:apprise:No SMTP2Go username was specified. [2024-04-21 17:38:33] WARNING:apprise:Could not load Apprise YAML configuration entry #1, item #1 [2024-04-21 17:38:33] WARNING:apprise:Failed to load Apprise configuration from memory:// [2024-04-21 17:38:33] ERROR:apprise:There are no service(s) to notify [2024-04-21 17:38:34] WARNING:mailrise.skeleton:Notification failed: address: [ RAIDESX@Danfield.net ➤ bill@danfield.net ] subject: [ RaidAlert-URGENT(192.168.1.14) ] body: [ 2024-04-21 17:38:24 (0.1K) ]

inselberg commented 4 months ago

Same "ERROR:apprise:There are no service(s) to notify " with a basic slack config.