# E-mail notification problems to Gmail

**URL:** https://forum.duplicati.com/t/e-mail-notification-problems-to-gmail/2904
**Category:** Support
**Created:** [March 15, 2018, 11:17am UTC](https://forum.duplicati.com/t/e-mail-notification-problems-to-gmail/2904 "2018-03-15T11:17:14Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![JonMikelV](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/j/439d5e/32.png) [@JonMikelV](https://forum.duplicati.com/u/JonMikelV)
#### Post date: [March 16, 2018, 2:52pm UTC](https://forum.duplicati.com/t/e-mail-notification-problems-to-gmail/2904/4 "2018-03-16T14:52:22Z")

</div>

A workaround is good, but working would be better. 🙂

It may just be the forum doing this, but it looks to me like you have a non-standard dash in your `-–send-mail-any-operation=true` line - try retyping those two leading dashes so they end up like `--send-mail-any-operation=true`

You should end up with something like the following with extra info as to what’s going on.

```plaintext
Running commandline entry
Finished!

            
The operation SendMail has started
Starting - Running SendMail
Running SendMail took 0:00:00:00.019
Failed to send email: System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

 => The remote certificate is invalid according to the validation procedure.
Failed to send email: System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

 => The remote certificate is invalid according to the validation procedure.
Return code: 0

```

* * *

Alternatively, you could just follow this (which you probably already know). Try your Command Line feature again but use this (I know, it probably looks like what you’ve already done):

1. Select command “send-mail”
2. Remove everything from “Target URL \>”
3. Paste this in Commandline arguments:  
[--send-mail-to="xxx@gmail.com](mailto:--send-mail-to=%22xxx@gmail.com)"  
–send-mail-url=smtps://smtp.gmail.com:465  
[--send-mail-username="xxx@gmail.com](mailto:--send-mail-username=%22xxx@gmail.com)"  
–send-mail-password=“xxxx”  
–verbose  
–log-level=profiling
4. Click “Edit as text” next to “Advanced options” and delete everything in that text box.
5. Click the `Run “send-mail” command now" button

* * *

Lastly, did any of the topics below work for you? I know gmail works because I’m using it on one of my machines. Unfortunately that machine is not on-site so I can’t check my settings but I do recall having to fiddle with using `smtps://` or not and adjusting the ports on `--send-mail-url` to get things working.

> [@Setting up email via web-interface not working SOLVED](https://forum.duplicati.com/t/setting-up-email-via-web-interface-not-working-solved/669):
>
> Hi, i’m new here, and new to Duplicati. My first question is should i open a new thread rather than continue this one? In case the answer is continue this one… smiley I have spent a few hours scouring Google, this forum, old Google Groups, even the old version’s webpage and trying to get the email notifications to work and i’m now stuck (i had to update mono too). I’m using Linux, Duplicati 2.0.2.1 (via mono Duplicati.Server.exe --webservice-port=8200) and I have successfully performed the ‘t…

> [@How to configure automatic email notifications via gmail for every backup job](https://forum.duplicati.com/t/how-to-configure-automatic-email-notifications-via-gmail-for-every-backup-job/869):
>
> This article explains how to configure automated email notifications via gmail at the conclusion of every Duplicati operation (backup, restore, etc.). With this approach, every Duplicati job on the machine will send automated notifications – you don’t need to configure each job individually. Open Duplicati Click on Settings. 
> 
> > **Screenshot 1**
> >
> > \<a class="lightbox" href="https://forum.duplicati.com/uploads/default/original/1X/38ee273086c62464bae9889d16b2f6d350fa15ef.png" dat…

> [@How to set up email notification with Gmail](https://forum.duplicati.com/t/how-to-set-up-email-notification-with-gmail/233):
>
> Good day All, I stumbled onto this amazing tool today and i am really impressed with what it can do. I am stuck setting up mail notification when a backup run successfully see below: --send-mail-any-operation=false --send-mail-level=Success,Warning --send-mail-to= --send-mail-from="What email here" --send-mail-subject=%backup-name% - Backup Report --send-mail-body=%RESULT% Remote server url %LOCALPATH% --send-mail-url=smtp.gmail.com:465 - can you assist with the URL --send-mail-username= --se…

---

_[View the full topic](https://forum.duplicati.com/t/e-mail-notification-problems-to-gmail/2904)._
