Licht2002 Member Licensed User Longtime User Dec 4, 2019 #1 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: Dec 4, 2019
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
DonManfred Expert Licensed User Longtime User Dec 4, 2019 #2 Licht2002 said: i get an Error Click to expand... which one? Licht2002 said: Is it not possible to send two or more Attachments? Click to expand... No. It is working for me with no problem. In case your error is a WantAuthError: https://support.google.com/mail/ans...=637110848306058675-166441769&rd=2#cantsignin Upvote 0
Licht2002 said: i get an Error Click to expand... which one? Licht2002 said: Is it not possible to send two or more Attachments? Click to expand... No. It is working for me with no problem. In case your error is a WantAuthError: https://support.google.com/mail/ans...=637110848306058675-166441769&rd=2#cantsignin
Licht2002 Member Licensed User Longtime User Dec 4, 2019 #3 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
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