General information
Title:
Send email thru vb.net with attachment
Environment versions
Network:
Windows 2000 Server
Hi .. All,
I need to send email thru my vb.net app, what I don't understand is how to attach some files to email by using my vb.net 's codes below:
Imports System.Web.Mail
Public Sub SendMail(ByVal pRecepient As String, ByVal pSubject As String, ByVal pBody As String)
If pubSendMail = True Then
System.Web.Mail.SmtpMail.SmtpServer = pubMailServer
System.Web.Mail.SmtpMail.Send( _
pubEmailAddress, pRecepient, pSubject, pBody)
End If
End Sub
please advise .. thanks
Regards
Winanjaya
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only