Results 1 to 2 of 2

Thread: ขอ code ปรแกรมส่งเมลครับ

  1. #1
    Junior Member
    Join Date
    Nov 2009
    Posts
    23


    ใครพอมี code โปรแกรมส่งเมลบ้างครับ ที่ใช้กับโปรแกรม vb6 ครับ
    จะทำโปรเจคส่งอาจารย์ครับ เพราะผมพื่งจะหัดเขียนโปรแกรมครับ
    วานผู้รู้ช่วยผมด้วยนะครับ

  2. #2
    Junior Member
    Join Date
    Mar 2009
    Posts
    5


    ใช้ outlook ในการส่งนะครับ

    Public Sub SendOutlookMail(Subject As String, Recipient As _
    String, Message As String)

    On Error GoTo errorHandler
    Dim oLapp As Object
    Dim oItem As Object

    Set oLapp = CreateObject("Outlook.application")
    Set oItem = oLapp.createitem(0)
    '
    With oItem
    .Subject = Subject
    .To = Recipient
    .body = Message
    .Send
    End With
    '
    Set oLapp = Nothing
    Set oItem = Nothing
    '

    Exit Sub

    errorHandler:
    Set oLapp = Nothing
    Set oItem = Nothing
    Exit Sub
    End Sub

Similar Threads

  1. Inventory System Made In VB - Access With Code code
    By stepno01 in forum Visual Basic
    Replies: 0
    Last Post: 01-05-2009, 07:06 PM
  2. [E-BooK] Clean Code - มาทำ code ให้เรียบร้อยกันดีกว่า
    By singha.osot in forum E-Book, Video หรือบทความทั่วไปด้าน Computer
    Replies: 0
    Last Post: 07-12-2008, 07:35 PM
  3. Replies: 1
    Last Post: 09-02-2008, 12:26 AM
  4. Bar Code Pro v6.02
    By oatkung2 in forum Window Application
    Replies: 0
    Last Post: 19-08-2007, 10:15 AM
  5. Code หา image จาก code html มาฝาก
    By sut in forum PHP,ASP,Javascript, Html
    Replies: 1
    Last Post: 02-06-2007, 07:10 PM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Tags for this Thread

Posting Permissions

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