send email ios

in unity, email sending is implemented:

public void Send()
    {      
        MailMessage message = new MailMessage();
        message.Subject = "Subject";

        message.Body = "message"

        message.From = new MailAddress("exampleFROM@gmail.com");
        message.To.Add("exampleTO@yandex.ru");
        message.BodyEncoding = System.Text.Encoding.UTF8;

        SmtpClient smtpClient = new SmtpClient();
        smtpClient.DeliveryMethod = SmtpDeliveryMethod.Network;
        smtpClient.Host = "smtp.gmail.com";
        smtpClient.Port = 25;
        smtpClient.Credentials = new NetworkCredential(message.From.Address, "Password") as ICredentialsByHost;
        smtpClient.EnableSsl = true;
        ServicePointManager.ServerCertificateValidationCallback = delegate (object s, X509Certificate x509Certificate, X509Chain x509Chain, SslPolicyErrors sslPolicyErrors) { return true; };

        smtpClient.SendAsync(message, "");
    }

The problem is that the message is sent from the Android device and not sent from the IOS device.
what do you need to be able to send from IOS device?

unity 2019.1.4f1
Scripting Runtime Version .NET 4.x Equivalent
Scripting Backend IL2CPP
Api Compatibility Level .NET 4.x

Might be relevant: