Click here to Skip to main content
15,888,081 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: microsoft report viewer in visual studio does not function with a stored procedure Pin
sourav_bhargava5-May-09 23:21
sourav_bhargava5-May-09 23:21 
Questionproblem of checklistbox Pin
nazimghori5-May-09 17:38
nazimghori5-May-09 17:38 
QuestionDisposing of images in GDI+ Pin
Alan Burkhart5-May-09 16:17
Alan Burkhart5-May-09 16:17 
AnswerRe: Disposing of images in GDI+ Pin
Christian Graus5-May-09 17:02
protectorChristian Graus5-May-09 17:02 
GeneralRe: Disposing of images in GDI+ Pin
Alan Burkhart5-May-09 18:11
Alan Burkhart5-May-09 18:11 
QuestionPrinting Problem (Jump to next Page) Pin
Zaegra5-May-09 5:37
Zaegra5-May-09 5:37 
AnswerRe: Printing Problem (Jump to next Page) Pin
Dave Kreskowiak5-May-09 5:48
mveDave Kreskowiak5-May-09 5:48 
QuestionSend email VB 2008 and outlook 2003 Pin
Member 22887045-May-09 1:52
Member 22887045-May-09 1:52 
Hi there, I'm trying to migrate an existing vb6 mail application to vb 2008 but it fails conversion. Anyway I'm looking for a module to send email with attachments using outlook 2003. Code must be written in vb 2008. What I can't get is attaching a document to the email! What I have so far is:

Module Module1
Dim app As Object
Dim itm As Object
Dim myItem As Object
Dim myAttachments As Object


Sub sendmail()
app = CreateObject("Outlook.Application")
itm = app.CreateItem(0)

With itm
.To = "someone@yahoo.com"
.CC = "someone@hotmail.com"
.Subject = "test"
'.importance = "high"
'.BodyFormat = Microsoft.Office.Interop.OutlookolFormatHTML
.Body = "Test message"
.send()

End With

MsgBox("message sent", vbOKOnly, "sent....")
End Sub

End Module

All I do is call the sendmail() function from a cmd button! There are other example send mail applications out there but they are written in vb.net and uses smtp(which I don't need)
AnswerRe: Send email VB 2008 and outlook 2003 Pin
Mycroft Holmes5-May-09 17:26
professionalMycroft Holmes5-May-09 17:26 
GeneralRe: Send email VB 2008 and outlook 2003 Pin
Member 22887046-May-09 1:41
Member 22887046-May-09 1:41 
GeneralRe: Send email VB 2008 and outlook 2003 Pin
Dave Kreskowiak6-May-09 2:16
mveDave Kreskowiak6-May-09 2:16 
AnswerRe: Send email VB 2008 and outlook 2003 Pin
Lexter33335-May-09 20:49
Lexter33335-May-09 20:49 
GeneralRe: Send email VB 2008 and outlook 2003 Pin
Member 22887046-May-09 1:47
Member 22887046-May-09 1:47 
AnswerRe: Send email VB 2008 and outlook 2003 Pin
Samir Ibrahim7-May-09 7:24
Samir Ibrahim7-May-09 7:24 
GeneralRe: Send email VB 2008 and outlook 2003 Pin
Member 22887048-May-09 1:29
Member 22887048-May-09 1:29 
Questionround shapes Pin
TheMrProgrammer5-May-09 1:45
TheMrProgrammer5-May-09 1:45 
AnswerRe: round shapes Pin
Anubhava Dimri5-May-09 2:45
Anubhava Dimri5-May-09 2:45 
AnswerRe: round shapes Pin
Dave Kreskowiak5-May-09 5:39
mveDave Kreskowiak5-May-09 5:39 
Question.dbf files Pin
vijay24824-May-09 23:03
vijay24824-May-09 23:03 
Answer[Message Deleted] Pin
Dinesh Vitharana4-May-09 23:31
Dinesh Vitharana4-May-09 23:31 
GeneralRe: .dbf files Pin
Dinesh Vitharana4-May-09 23:47
Dinesh Vitharana4-May-09 23:47 
GeneralRe: [Message Deleted] Pin
vijay24825-May-09 0:01
vijay24825-May-09 0:01 
AnswerRe: .dbf files Pin
Samir Ibrahim4-May-09 23:55
Samir Ibrahim4-May-09 23:55 
AnswerRe: .dbf files Pin
Rajesh Anuhya5-May-09 0:36
professionalRajesh Anuhya5-May-09 0:36 
GeneralRe: .dbf files[SOLVED] Pin
vijay24826-May-09 10:51
vijay24826-May-09 10:51 

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.