Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send email thru vb.net with attachment
Message
De
05/01/2005 09:30:35
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Send email thru vb.net with attachment
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00974371
Message ID:
00974371
Vues:
50
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform