
Proxy support: HTTP and Socks proxy (Socks5, Socks4, Socks4a) Secure login (APOP, CRAM-MD5, DIGEST-MD5 support) msg to MIME converterĬreate attachments from a file or byte array UNIQUE iCalendar appointments and vCard supportĮasy Outlook. UNIQUE Received emails DKIM validation and signing S/MIME: received signed emails validation, received emails decryption S/MIME: sending signed emails, sending encrypted emails IMAP SSL/TLS, SMTP SSL/TLS, POP3 SSL/TLS are all supportedĪutomatic email attachment encoding/decoding UNIQUE Covered with 5,500+ unit and integration testsįully compatible with Microsoft Exchange (all versions), Office 365, Gmail, Dovecot, hMailServer and others

UNIQUE Email component includes most reliable MIME parser on the market IMAP client for receiving emails, POP3 client for receiving emails, SMTP client for sending emails in a single package Supports signature verification and decryption for received emails. Includes SMTP component for sending emails, along with signing emails and encrypting emails. IMAP component and POP3 component that allows to receive emails and process emails in. Smtp.Credentials = New Net.Limilabs Mail.dll v4.1630. Why don't you isolate this code in a sub and pass the list of attachments to this sub avoiding to keep the Shared variable exposed? Public Sub SendMail(alist as List(Of String))Į(New Attachment(alist(x).ToString)) However keeping a Shared variable for this kind of problem will be always a problem. ' THIS LINE REINITIALIZE THE EMAIL AND KILLS THE ATTACHMENTS

If this is the case then you reinitialize the variable email again and you lose the previous attachments Public Shared email As New MailMessage() I suppose that you call the loop to add the attachments before the code to send the email. I have email as public and shared so the attachment form can reference it.Īny assistance is greatly appreciated. Smtp.Credentials = New Net.NetworkCredential(user, pass) Here is my code for the rest of the email setup Public Shared email As New MailMessage() This causes the first position to be empty which is why I initialize x to 1. Every time a new attachment is added alist is preserved. The path to the attachment is stored as a string in the alist array.

I have it this way because I have a separate form that adds the attachments. Here is a piece of my code to use as a reference. My code doesn't generate an error, but the email doesn't have the attachment(s), either. I've also referenced the tooltips that appear in Visual Studio, but nothing seems to work. I have every other feature working, except for this. I've searched on this issue for a few days and referenced many questions on this site and others, all to no avail.
