The remote certificate is invalid


i am unable to send message with SMTP ,giving error message like"

Exception Type;Authentication Exception

@pro123456 which port number you given?

i tried with 465,587 different ports

please check your Login credentials too…

everything okay

@pro123456 Do u enabled less secure app

Can you please give more detailed information about it

you want me to enable it,same issue if i enable it also.

Please refer the below link :

Start a new MMC from run command.
File --> Add/Remove Snap-In
Click Add
Choose Certificates and click Add.
Check the “Computer Account” radio button. Click Next.
Choose the client computer in the next screen. Click Finish.
Click Close.
Click OK.
Now install the certificate into the Trusted Root Certification Authorities certificate store. This will allow all users to trust the certificate.


       the last five lines we are not able to get it .please send us more details.

Thanks for your support

Disable your antivirus and allow less secure apps in gmail settings.
Here’s the link: