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
i get an Error
which one?
Is it not possible to send two or more Attachments?
No. It is working for me with no problem.

gmail011.png


In case your error is a WantAuthError:
https://support.google.com/mail/ans...=637110848306058675-166441769&rd=2#cantsignin
 
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
Top