Hi All,
I have tried implementing SMTPclient in PB2022 R2 whereas I am able to send an email using SendAsync() but how to check the email status like queue/sending/sent/failed/cancelled
below is the example code I have used
Long ll_handle
n_smtpclient inv_SmtpClient
inv_SmtpClient = CREATE n_smtpclient
//set the email account information
inv_SmtpClient.Host = "smtp.gmail.com"
inv_SmtpClient.Port = 587
inv_SmtpClient.Username = "tester001.appeon@gmail.com"
inv_SmtpClient.password = "Mypassword001"
inv_SmtpClient.EnableTLS = True
//set the email message
inv_SmtpClient.Message.SetSender("tester001.appeon@gmail.com","Tester001")
inv_SmtpClient.Message.AddRecipient("tester002.appeon@gmail.com")
inv_SmtpClient.Message.Subject = "SMTPClient Test Message"
inv_SmtpClient.Message.TextBody = "SMTPClient example message body"
//send the email message asynchronously
ll_handle = inv_SmtpClient.SendAsync()
I would like to know how to get the status of the email.
Regards
Sathishkumar
I have tried using onsendfinished event, but unable to get the status like queue/sending/sent/failed/cancelled
Sent success is 1
failed are negative numbers
I am looking for other status like queue/sending/cancelled
Regards
Sathishkumar
Andreas.
Thank you, I will try to implement it, if there is any help documents available kindly suggest, as far I checked I couldn't find any document about the status related working arounds or similar.
Regards
Sathishkumar.