email sending( TLS + SMTP) directly using PeopleCode
hi,
i'm testing email sending( TLS + SMTP) directly using PeopleCode with the following code in PT8.51, but get SendMailException: Detail Message:JavaMail Error: 530 5.7.1 Client was not authenticated.\nStack Trace:\njavax.mail.MessagingException: 530 5.7.1 Client was not authenticated. when i tested the smtp server in Telnet, also get error Client was not authenticated. If use a none SSL/TLS SMTP server mail account, it's ok to send email. Can somebody give me some help and advice? Thanks!
import PT_MCF_MAIL:*;
Local PT_MCF_MAIL:MCFOutboundEmail &email = create PT_MCF_MAIL:MCFOutboundEmail();
&email.From = "test_2012@hotmail.com";
&email.Recipients = "atgihdgv@qq.com";
i'm testing email sending( TLS + SMTP) directly using PeopleCode with the following code in PT8.51, but get SendMailException: Detail Message:JavaMail Error: 530 5.7.1 Client was not authenticated.\nStack Trace:\njavax.mail.MessagingException: 530 5.7.1 Client was not authenticated. when i tested the smtp server in Telnet, also get error Client was not authenticated. If use a none SSL/TLS SMTP server mail account, it's ok to send email. Can somebody give me some help and advice? Thanks!
import PT_MCF_MAIL:*;
Local PT_MCF_MAIL:MCFOutboundEmail &email = create PT_MCF_MAIL:MCFOutboundEmail();
&email.From = "test_2012@hotmail.com";
&email.Recipients = "atgihdgv@qq.com";
0