Hallo,
with following code i can send an Email with ONE Attachment
If i add one more Line with "SMTP.AddAttachment......" i get an Error.
Is it not possible to send two or more Attachments?
Thanks
Tom
with following code i can send an Email with ONE Attachment
B4X:
Dim SMTP As SMTP
....
....
SMTP.Initialize("smtp.gmail.com", 587, "sender@gmail.com", "xxxxx", "SMTP")
SMTP.StartTLSMode = True
SMTP.To.Add("xxxxxx@googlemail.com")
SMTP.Subject = "Subject-Text "
SMTP.Body = "Body-Text""
SMTP.AddAttachment(File.DirInternalCache , "iv_shoot.jpg")
SMTP.Send
If i add one more Line with "SMTP.AddAttachment......" i get an Error.
Is it not possible to send two or more Attachments?
Thanks
Tom
Last edited: