diff --git a/Notify_email.md b/Notify_email.md index d31bc2e..b8c072e 100644 --- a/Notify_email.md +++ b/Notify_email.md @@ -132,4 +132,32 @@ apprise -vv -t "Test Message Title" -b "Test Message Body" \ # Send an email to a smtp relay server your hosting on your box: apprise -vv -t "Test Message Title" -b "Test Message Body" \ mailto://localhost +``` + +Users with custom SMTP Servers will require a slightly more complicated configuration: +```bash +# Assuming the {smtp_server} is mail.example.com +# Assuming the {send_from} is joe@example.com +# Assuming the {login} is user1@example.com +# Assuming the {password} is pass123 +# Assuming you want to use starttls (port 587) +apprise -vv -t "Test Message Title" -b "Test Message Body" \ + "mailtos://_?user=user1@example.com&pass=pass123&smtp=mail.example.com&from=joe@example.com" + +# Notes (for above URL): +# - Since no `to=` was specified above, the `from` address is notified +# - mailtos:// defaults to starttls on 587; if you want to use port 465 (SSL) +# you would just need to add `mode=ssl` to the parameter of your URL. + +# Here is a more complicated example where you want to use `ssl` and a custom port + +# Assuming the {smtp_server} is mail.example.com +# Assuming the {send_from} is joe@example.com +# Assuming the {login} is user1@example.com +# Assuming the {password} is pass123 +# Assuming you want to use ssl on port 12522 +# Assuming you want your email to go to bob@example.com and jane@yahoo.ca +apprise -vv -t "Test Message Title" -b "Test Message Body" \ + "mailtos://example.com:12522?user=user1@example.com&pass=pass123&smtp=mail.example.com&from=joe@example.com&to=bob@example.com,jane@yahoo.ca&mode=ssl" + ``` \ No newline at end of file