Closed Salvoxia closed 11 months ago
This is definitely something I'll need to investigate further. I can't spot anything unusual off hand. This weekend I'll try to reproduce it as you've given me great examples to work with!🙂
I tested your configuration and it works perfectly. Not sure why i didn't notice this upfront, but i spotted it now.
apprise -vvvvv -t "test title" -b "test body" mailtos://mydomain.com?smtp=mail.local.mydomain.com&user=noreply@mydomain.com&pass=mypassword&from=noreply@mydomain.com&to=me@mydomain.com&mode=ssl&port=465
[1] 278
[2] 279
[3] 280
[4] 281
[5] 282
[6] 283
You see the [1]
, [2]
, etc... ?
This is because &
is interpreted by the Linux/Bash Interpreter to launch the content into the background. Wrap quotes ("maitos://credentials"
) around your URL and it will probably work perfectly for you.
apprise -vvvvv -t "test title" -b "test body" \
"mailtos://mydomain.com?smtp=mail.local.mydomain.com&user=noreply@mydomain.com&pass=mypassword&from=noreply@mydomain.com&to=me@mydomain.com&mode=ssl&port=465"
Well, now I feel really dumb. Tested with the quotes and of course you are right, it works just as expected! Thank you for your time and effort!
:question: Question
Hi,
I'm having trouble setting up custom email notifications with Apprise v1.6.0 running in a Docker container.
My mail server expects the full email address as user name, so I have to specify the user in the URL with the
user
parameter. My SMTP server also has a different host name than my domain, so I need to override that with thesmtp
parameter. I also want to use implicit SSL on port 465, so I specify theport
andmode
as well. My full URL looks like this:mailtos://mydomain.com?smtp=mail.local.mydomain.com&user=noreply@mydomain.com&pass=mypassword&from=noreply@mydomain.com&to=me@mydomain.com&mode=ssl&port=465
This is the debug output
Using this URL Apprise complains about missing "from" address, but it's clearly specified using the
from
parameter in the URL.So I tried a different variation with the
password@domain
notation, specifying only the user in the URL with theuser
parameter:mailtos://mypassword@mydomain.com?smtp=mail.local.mydomain.com&user=noreply@mydomain.com&from=noreply@mydomain.com&to=me@mydomain.com&mode=ssl&port=465
Debug output:
Now it uses my password as user to build the from and to address, ignoring both
from
andto
parameters, also ignoring theport
parameter specifying 465.So now I tried moving both username and password to URL parameters like in my first try, but now the order of the parameters is different:
mailtos://mydomain.com?user=noreply@mydomain.com&pass=mypassword&smtp=mail.local.mydomain.com&from=noreply@mydomain.com&to=me@mydomain.com&mode=ssl&port=465
Debug output:
This time it again ignores my
to
URL parameter, as well assmtp
andport
, so the order in which the parameters are specified in the URL matters...?I have no clue what I'm doing wrong and I'm very confused. Any help is much appreciated!
Best Regards, Salvoxia