none
Email Attachment RRS feed

  • Question

  • I'm trying to put attachments onto an outgoing email using vb and I tried

     e_mail.Attachments.Add("Directory")

    but it says that strings aren't allowed so what do I put there or am I even using the right code?


    Ben Hughes

    Saturday, June 17, 2017 12:50 AM

Answers

  • Here is an example to do a file, if you want to do multiple attachments perhaps in a folder you would need to iterate the files in the folder to get them all.

    http://www.systemnetmail.com/faq/3.4.1.aspx


    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    • Marked as answer by BadNewsHughes Sunday, June 18, 2017 12:34 AM
    Saturday, June 17, 2017 1:16 AM
    Moderator

All replies