Android Question Is it possible to send more then one Attachment

Discussion in 'Android Questions' started by Licht2002, Dec 4, 2019 at 7:18 PM.

  1. Licht2002

    Licht2002 Member Licensed User

    Hallo,

    with following code i can send an Email with ONE Attachment
    Code:
    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 at 7:35 PM
  2. DonManfred

    DonManfred Expert Licensed User

    Erel likes this.
  3. Licht2002

    Licht2002 Member Licensed 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
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice