Click here to Skip to main content
15,920,688 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionvb.net code question Pin
chippuppy4-Apr-06 15:30
chippuppy4-Apr-06 15:30 
AnswerRe: vb.net code question Pin
FrankyT4-Apr-06 16:00
FrankyT4-Apr-06 16:00 
AnswerRe: vb.net code question Pin
Chatura Dilan4-Apr-06 16:11
Chatura Dilan4-Apr-06 16:11 
GeneralRe: vb.net code question Pin
FrankyT4-Apr-06 16:16
FrankyT4-Apr-06 16:16 
Questionreset form Pin
lupa-nikki4-Apr-06 14:16
lupa-nikki4-Apr-06 14:16 
AnswerRe: reset form Pin
Guffa4-Apr-06 14:39
Guffa4-Apr-06 14:39 
GeneralRe: reset form Pin
lupa-nikki4-Apr-06 14:54
lupa-nikki4-Apr-06 14:54 
GeneralRe: reset form Pin
FrankyT4-Apr-06 15:34
FrankyT4-Apr-06 15:34 
on the topic of email, this is how I do it for VB forms. it also works when exposed through a web service.

Imports system.net.Mail

public class mailer

Private email As MailMessage
Private webmailer As System.Net.Mail.SmtpClient


Private Sub sendMail()
email = New MailMessage("Sender Email", "Reciepient Email", "Subject Text", _
"Body Text")
webmailer = New System.Net.Mail.SmtpClient("SMTP Server Name as String", _
"SMTP service port: usually 25")
With email
.Attachments(0) = New Attachment("c:\SomeFile.txt")
.Attachments(1) = New Attachment("c:\SomeOtherFile.txt")
End With
webmailer.Send(email)
End Sub


end class

server admin has a big impact on whether this will work. if it fails it may not be the code, but the smtp server configuration.

good luck

hey...slang is the vernacular for the vernacular...wow

-- modified at 21:35 Tuesday 4th April, 2006
AnswerRe: reset form Pin
Scott Page5-Apr-06 7:37
professionalScott Page5-Apr-06 7:37 
QuestionHow to Access a windows service's property from a Form Pin
FrankyT4-Apr-06 13:04
FrankyT4-Apr-06 13:04 
QuestionParsing text with VBA Pin
Mark Oium4-Apr-06 11:22
Mark Oium4-Apr-06 11:22 
AnswerRe: Parsing text with VBA Pin
FrankyT4-Apr-06 15:45
FrankyT4-Apr-06 15:45 
QuestionAdding picture to database Pin
Keisha1234-Apr-06 10:27
Keisha1234-Apr-06 10:27 
AnswerRe: Adding picture to database Pin
FrankyT4-Apr-06 13:10
FrankyT4-Apr-06 13:10 
QuestionForm.Resize getting error when Minimize or Maximize is pressed Pin
ChemmieBro4-Apr-06 9:10
ChemmieBro4-Apr-06 9:10 
Questioninstall project Pin
SVb.net4-Apr-06 9:03
SVb.net4-Apr-06 9:03 
AnswerRe: install project Pin
FrankyT4-Apr-06 13:35
FrankyT4-Apr-06 13:35 
QuestionCode Behind........... Pin
daviiie4-Apr-06 2:51
daviiie4-Apr-06 2:51 
AnswerRe: Code Behind........... Pin
Vasudevan Deepak Kumar4-Apr-06 4:14
Vasudevan Deepak Kumar4-Apr-06 4:14 
AnswerRe: Code Behind........... Pin
Guffa4-Apr-06 6:16
Guffa4-Apr-06 6:16 
Questionhow to Crete a Dynamic Menu Pin
Amit Agarrwal4-Apr-06 2:12
Amit Agarrwal4-Apr-06 2:12 
QuestionApplication Failed Pin
sonj4-Apr-06 2:03
sonj4-Apr-06 2:03 
AnswerRe: Application Failed Pin
Duncan Edwards Jones4-Apr-06 3:00
professionalDuncan Edwards Jones4-Apr-06 3:00 
GeneralRe: Application Failed Pin
sonj5-Apr-06 18:22
sonj5-Apr-06 18:22 
QuestionKeyboard hook from C++ to VB.NET Pin
Ali el4-Apr-06 2:02
Ali el4-Apr-06 2:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.