How can I use the Gmail mail server from Google from C# / NedFox software?

Prev Next

<span class="fr-marker" data-id="0" data-type="true" style="display: none; line-height: 0;"></span><span class="fr-marker" data-id="0" data-type="false" style="display: none; line-height: 0;"></span>From import and export software of NedFox, a SMTP server is often used in the .Config file to deliver mail.

In this case, the SMTP server of Gmail can be used. In the .Config file, at least the following AppSettings should be specified:

<add key="SmtpServer" value="smtp.gmail.com"/>

<add key="SmtpUsername" value="username@gmail.com"/>

<add key="SmtpPassword" value="password"/ 

Of course, the email address associated with the Gmail account should be provided for username@gmail.com. And instead of the text 'password', the actual password should be provided.

However, Google has recently blocked the use of their mail server for external applications by default. The following link should be used to allow less secure apps to access the Gmail SMTP server:

https://www.google.com/settings/security/lesssecureapps

Furthermore, this functionality is only available in updates of our software after January 11, 2017, as it includes an adjustment regarding the sending of the username and password.