Click here to Skip to main content
15,914,447 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to send mail in vb6.0 Pin
JC.KaNNaN30-Dec-09 19:34
JC.KaNNaN30-Dec-09 19:34 
AnswerRe: How to send mail in vb6.0 Pin
Steven J Jowett30-Dec-09 20:28
Steven J Jowett30-Dec-09 20:28 
GeneralRe: How to send mail in vb6.0 Pin
JC.KaNNaN30-Dec-09 21:01
JC.KaNNaN30-Dec-09 21:01 
GeneralRe: How to send mail in vb6.0 Pin
Steven J Jowett30-Dec-09 21:10
Steven J Jowett30-Dec-09 21:10 
GeneralRe: How to send mail in vb6.0 Pin
JC.KaNNaN30-Dec-09 21:26
JC.KaNNaN30-Dec-09 21:26 
GeneralRe: How to send mail in vb6.0 Pin
#realJSOP30-Dec-09 23:51
professional#realJSOP30-Dec-09 23:51 
AnswerRe: How to send mail in vb6.0 Pin
Abhinav S30-Dec-09 21:59
Abhinav S30-Dec-09 21:59 
AnswerRe: How to send mail in vb6.0 Pin
εїзεїзεїз30-Dec-09 22:16
εїзεїзεїз30-Dec-09 22:16 
USE MAPI controls


Public Function send_mail(sendto As String, subject As String, _
  text As String) As Boolean
'Add The MAPI Components and
'add a MAPI Session and MAPI mail control to your form

On Error GoTo ErrHandler
    With MAPSession1
            .DownLoadMail = False
            .LogonUI = True
            .SignOn
            .NewSession = True
            MAPIMessages1.SessionID = .SessionID
    End With
    With MAPIMessages1
        .Compose
        .RecipAddress = sendto
        .AddressResolveUI = True
        .ResolveName
        .MsgSubject = subject
        .MsgNoteText = text
        .AttachmentPathName = "C:\email.rtf"
        .Send False
    End With
sendmail = True
Exit Function
ErrHandler:

MsgBox err.Description
  End Function


Best Regards,
SOFTDEV
If you have knowledge, let others light their candles at it

GeneralRe: How to send mail in vb6.0 Pin
JC.KaNNaN30-Dec-09 23:24
JC.KaNNaN30-Dec-09 23:24 
GeneralRe: How to send mail in vb6.0 Pin
εїзεїзεїз30-Dec-09 23:51
εїзεїзεїз30-Dec-09 23:51 
GeneralRe: How to send mail in vb6.0 Pin
JC.KaNNaN31-Dec-09 1:51
JC.KaNNaN31-Dec-09 1:51 
AnswerRe: How to send mail in vb6.0 Pin
nlarson1131-Dec-09 4:27
nlarson1131-Dec-09 4:27 
AnswerRe: How to send mail in vb6.0 Pin
Eddy Vluggen31-Dec-09 4:49
professionalEddy Vluggen31-Dec-09 4:49 
QuestionMenu Strip... Pin
thebiostyle30-Dec-09 13:14
thebiostyle30-Dec-09 13:14 
AnswerRe: Menu Strip... Pin
Rick Shaub31-Dec-09 7:41
Rick Shaub31-Dec-09 7:41 
GeneralRe: Menu Strip... Pin
thebiostyle1-Jan-10 8:15
thebiostyle1-Jan-10 8:15 
GeneralRe: Menu Strip... Pin
thebiostyle3-Jan-10 16:59
thebiostyle3-Jan-10 16:59 
GeneralRe: Menu Strip... Pin
Rick Shaub7-Jan-10 4:03
Rick Shaub7-Jan-10 4:03 
GeneralRe: Menu Strip... Pin
thebiostyle8-Jan-10 13:45
thebiostyle8-Jan-10 13:45 
Questionlicence issues Pin
Boost201030-Dec-09 8:01
Boost201030-Dec-09 8:01 
AnswerRe: licence issues Pin
Eddy Vluggen31-Dec-09 4:55
professionalEddy Vluggen31-Dec-09 4:55 
QuestionAntivirus Catch while Accesing Registry Pin
Anubhava Dimri29-Dec-09 22:50
Anubhava Dimri29-Dec-09 22:50 
AnswerRe: Antivirus Catch while Accesing Registry Pin
Abhinav S30-Dec-09 0:31
Abhinav S30-Dec-09 0:31 
GeneralRe: Antivirus Catch while Accesing Registry Pin
Anubhava Dimri30-Dec-09 0:40
Anubhava Dimri30-Dec-09 0:40 
AnswerRe: Antivirus Catch while Accesing Registry Pin
Dave Kreskowiak30-Dec-09 2:02
mveDave Kreskowiak30-Dec-09 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.