How can I get resp status , in this funtion, to know if the email has been sending correctly?
Are there any options to build similar function?
Thank you !!!
Julia version 1.8.5
function EnviarEMail2(user, password, recipients, subject, body)
opt = SendOptions( isSSL = true, username = user, passwd = password) # Provide the message body as RFC5322 within an IO body = IOBuffer( "Date: Fri, 18 Oct 2013 21:44:29 +0100\r\n" * "From: You <email@example.com>\r\n" * "To: firstname.lastname@example.org\r\n" * "Subject: " * subject *"\r\n" * #"\r\n" * body * "\r\n") url = "smtps://smtp.gmail.com:465" rcpt = [recipients] from = user resp = send(url, rcpt, from, body, opt)