Может ли кто-нибудь помочь мне решить эту проблему.
Я пытался использовать некоторые типы данных, такие как SMTSession, MailMessage, MailRecipient.
Но это не работает.
Вот код.
&SMTPSession.Host = 'smtp.gmail.com'<br>
&SMTPSession.Port = 465<br>
&SMTPSession.Authentication = 1<br>
&SMTPSession.UserName = '[email protected]'<br>
&SMTPSession.Password = 'password'<br>
&SMTPSession.Secure = 1 <br>
&SMTPSession.Sender.Address = '[email protected]'<br>
&SMTPSession.Sender.Name = 'OtherName'<br>
&MailRecipient.Address = '[email protected]'<br>
&MailRecipient.Name = 'Name'<br>
&MailMessage.Subject = 'Subject'<br>
&MailMessage.Text = 'text'<br>
&MailMessage.To.Add(&MailRecipient)<br>
&SMTPSession.Login()
if &SMTPSession.ErrCode <> 0
&SMTPSession.Send(&MailMessage)
&SMTPSession.Logout()
endif
Genexus Evolution 3, обновление 2, среда .Net, Интернет