I have prepare a bot in sending Email but some error the bot is not working correctly

Hi I am vaibhav I have prepare a bot send email

Hi I am vaibhav I have prepare abot in sending Email but some error the bot is not working correctly
public delegate bool RemoteCertificateValidationCallback(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors);