Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send email thru vb.net with attachment
Message
From
05/01/2005 09:30:35
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Send email thru vb.net with attachment
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00974371
Message ID:
00974371
Views:
51
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
Map
View

Click here to load this message in the networking platform