Results 1 to 5 of 5

Thread: Mail program

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313
    Ok I want to make a mail program, does anyone know the format for smtp? Or how to send a msg? Just anything, and help on the matter?

  2. #2
    Guest
    Use MAPI (Messaging Application Programming Interface)

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313

    What is that

    What is that do explain please

  4. #4
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    Add the mapi controls to your prog:

    Code:
    ' //Program using email functionality (MAPI control)\\
    '  -------------------------------------------------------------------------
    ' | Whats actually happens is that the program sends the new email          |
    ' | message  to the user's Outbox, and the outbox  is usually set to email  |
    ' | automatically.                                                          |
    '  -------------------------------------------------------------------------
    Option Explicit
    
    Private Sub Command1_Click()
        MAPISession1.DownLoadMail = False  ' Indicating we don't want to download
        MAPISession1.SignOn  ' Start new MAPI Session, sign on to MS Exchange email system
        
        MAPIMessages1.SessionID = MAPISession1.SessionID
        MAPIMessages1.MsgIndex = -1  ' To compose a new email message
        MAPIMessages1.Compose
        MAPIMessages1.Send True  ' Send email
        
        MAPISession1.SignOff  ' Sign off the MAPI session
    End Sub
    
    Private Sub Command2_Click()
        MAPISession1.DownLoadMail = True  ' Alow for waiting email to be download into the Inbox
        MAPISession1.SignOn  ' Start new MAPI Session, sign on to MS Exchange email system
        
        MAPIMessages1.SessionID = MAPISession1.SessionID
        MAPIMessages1.Fetch  ' Used to create a message set (Reach the emails)
        
        MAPIMessages1.MsgIndex = 0
        Text1.Text = MAPIMessages1.MsgNoteText
        
        MAPISession1.SignOff  ' Sign off the MAPI session
        
    End Sub

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313

    more questions

    Is there a way to do it with out all the log on crap?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width