Android Question Is it possible to send more then one Attachment

Licht2002

Member
Licensed User
Longtime User
Hallo,

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:

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Licht2002

Member
Licensed User
Longtime User
Hello Manfred,

thx for your answer - you show me the way ;-)

It was my fault - i used an old Lib-Version... after update to 1.8 it works perfect!

Danke und viele Grüße

Tom
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…