I'm trying to send myself an email using the smtp server at gmail, but I never get the email. Below is my code.
I verified the image file is there where it should be.
Thanks...
B4X:
SMTP1.Initialize("smtp.gmail.com", 465, "[email protected]", "mypw", "SMTP")
SMTP1.To.Add ("my_email_address")
SMTP1.Subject = "Subject"
SMTP1.Body = "Body"
SMTP1.AddAttachment(File.DirRootExternal,"1.jpg")
SMTP1.Send
I verified the image file is there where it should be.
Thanks...