Hi,

I am trying to use the same code as above but also have errors. Im not very advanced with dot net however I am trying.

My errors:

obj.SmtpServer = txtSMTPServer.Text

Mailmsg.From = "\" & txtFromDisplayName.Text & "\ <" & txtFrom.Text & ">"

Mailmsg.BodyFormat = MailFormat.Html

Mailmsg.BodyFormat = MailFormat.Text

Attachment = New MailAttachment(lstAttachment.Items(Counter))

Errors say:

Some of the code is obselete it says others say:

Value of type 'System.Web.Mail.MailAttachment' cannot be converted to 'System.Net.Mail.Attachmeny'

Do I import both Imports System.Net.Mail and Imports System.web.Mail??

Any help would be great. Im using 2008 version too.