comment envoyer un mail avec le code VB.NET 2015 via le serveur smtp.gmail.com

Donald 1331 5 Reputation points
2023-01-20T14:57:55.15+00:00

en fait voici mon code d'envoie de mail



quand je l'exécute je reçois le message " le serveur STPM requiert une connexion sécurisé ou le client n'était pas authentifié. la réponse du serveur était : 5.7.0 Authentification Required. Learn more at"

SVP aider moi, merci.

Developer technologies | VB
{count} vote

1 answer

Sort by: Most helpful
  1. Castorix31 90,686 Reputation points
    2023-01-20T21:35:50.2733333+00:00

    [the language of those forums is English]

    The security for GMail has changed

    You must (in Security of sender account) :

    • Activate two-step verification
    • Generate a Google App Password (to replace softappartment2020 in your test)

    I just tested now (on Windows 10) and it works

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.