Hi I want to send mail with gmail but it does not work
Function EmailGönder(Alıcı)
MailMessage = New InternetMailMessage;
MailMessage.Texts.Add(HTML_Text);
MailMessage.Texts.Get(0).TextType = InternetMailTextType.HTML;
MailMessage.From = marmara2000burak@gmail.com
MailMessage.SenderName = marmara2000burak@gmail.com;
MailMessage.Subject = "Cari Ekstre";
MailMessage.To.Add("marmara2000burak@gmail.com");
InternetMailProfile_ = New InternetMailProfile;
InternetMailProfile_.SMTPServerAddress = "smtp.gmail.com";
InternetMailProfile_.SMTPPort = "465";
InternetMailProfile_.SMTPUser = Constants.SMTPUser.Get();
InternetMailProfile_.SMTPPassword = Constants.SMTPPassword.Get();
InternetMailProfile_.Timeout = 30;
InternetMailProfile_.SMTPUseSSL = True;
InternetMailProfile_.SMTPAuthentication = SMTPAuthenticationMode.Login;
Mail = New InternetMail();
Try
Mail.Logon(InternetMailProfile_);
Except
Return False;
EndTry;
EndFunction
The 1C:Enterprise developers forum