|
-
January 27th, 2009, 03:58 PM
#5
Re: send email vb.net
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|