ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¦p¦ó¥H¥¨¶°°õ¦æmail¤W¶Ç

[µo°Ý] ¦p¦ó¥H¥¨¶°°õ¦æmail¤W¶Ç

§Ú·Q­n§@¤@­ÓCommandButton1¥i¥H¤@«ö´N±NÀÉ®×mail¤W¶Ç«ü©w±b¸¹
½Ð°Ý¥¨¶°µ{¦¡­n¦p¦ó¼g©O

¦^´_ 1# lone_tiger0303

'¥H MS OutLook ±H«H(«D OutLook Express)

'­Y¥X²{ ¨Ï¥ÎªÌ¦Û­q«¬ºA©|¥¼©w¸q, «h¨Ì¥H¤U³]©w
'¤u¨ã¡@--> ³]©w¤Þ¥Î¶µ¥Ø -->MicroSoft Outlook 11.0 object library
'­Y¬OOffice 2003 ¬O11.0,­Y¬O Office 2002 «h¬O10.0 ¥H¤UÃþ±À
  1. Sub send_mail()
  2.     Dim oltAPP As Outlook.Application
  3.     Dim myMail As MailItem

  4.     Set oltAPP = CreateObject("Outlook.Application")
  5.     Set myMail = oltAPP.CreateItem(olMailItem)

  6.     With myMail
  7.     .Attachments.Add "d:\t1.txt"      'ªþ¥ó(½Ð¦Û¦æ§ó§ï¸ô®|)
  8.     .To = "[email protected]"        '¦¬¥óªÌ«H½c
  9.     .BodyFormat = olFormatRichText
  10.     .Body = "³o¬O¤@«Ê´ú¸Õ«H¥ó"        '«H¥ó¤º®e
  11.     .Subject = "´ú¸Õ«H¥ó"             '«H¥ó¥D¦®
  12.     .Send
  13.     End With

  14.     oltAPP.Quit
  15.     Set oltAPP = Nothing
  16.     Set myMail = Nothing
  17. End Sub
½Æ»s¥N½X

TOP

        ÀR«ä¦Û¦b : µoµÊ®ð¬Oµu¼ÈªºµoºÆ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD