Home > Archive > Visual Basic Syntax > April 2005 > vb mail sample issue below - how to
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
vb mail sample issue below - how to
|
|
| JPCenturi 2005-03-09, 4:02 pm |
| Below is the code I have currently:
Dim SmtpProp As New System.Net.Mail.SmtpClient
Dim fr, rec, mn, bd As String
fr = "john@abc.net"
rec = "jp@soft.com"
mn = "test subject line"
bd = "test body line xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxx"
SmtpProp.Port = 25
SmtpProp.Host = "smtp.west.cox.net"
SmtpProp.Send(fr, rec, mn, bd)
what I am trying to add here is a file attachment and using html for the
body of the text for the message... I am using VB express with .net
framework 2.0 beta 2...
Any assistance on this would be greatly appreciated...
| |
| Bob Butler 2005-03-09, 4:02 pm |
| "JPCenturi" <JPCenturi@discussions.microsoft.com> wrote in message
news:647C6C22-470F-40D0-9320-5A08DECF07D9@microsoft.com
> Below is the code I have currently:
>
> Dim SmtpProp As New System.Net.Mail.SmtpClient
--
<response type="generic" language="VB.Net">
This newsgroup is for users of Visual Basic version 6.0
and earlier and not the misleadingly named VB.Net
or VB 200x. Solutions, and often even the questions,
for one platform will be meaningless in the other.
When VB.Net was released Microsoft created new newsgroups
devoted to the new platform so that neither group of
developers need wade through the clutter of unrelated
topics. Look for newsgroups with the words "dotnet" or
"vsnet" in their name. For the msnews.microsoft.com news
server try these:
microsoft.public.dotnet.general
microsoft.public.dotnet.languages.vb
</response>
| |
| shfog 2005-04-29, 10:08 am |
| Did you have any luck getting the new System.Net.Mail to send attachment?
I'm not having luck.... |
|
|
|
|