- ©«¤l
- 133
- ¥DÃD
- 9
- ºëµØ
- 0
- ¿n¤À
- 147
- ÂI¦W
- 0
- §@·~¨t²Î
- Win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- °ª¶¯
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2024-11-11
|
¦^´_ 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Ãþ±À- Sub send_mail()
- Dim oltAPP As Outlook.Application
- Dim myMail As MailItem
- Set oltAPP = CreateObject("Outlook.Application")
- Set myMail = oltAPP.CreateItem(olMailItem)
- With myMail
- .Attachments.Add "d:\t1.txt" 'ªþ¥ó(½Ð¦Û¦æ§ó§ï¸ô®|)
- .To = "[email protected]" '¦¬¥óªÌ«H½c
- .BodyFormat = olFormatRichText
- .Body = "³o¬O¤@«Ê´ú¸Õ«H¥ó" '«H¥ó¤º®e
- .Subject = "´ú¸Õ«H¥ó" '«H¥ó¥D¦®
- .Send
- End With
- oltAPP.Quit
- Set oltAPP = Nothing
- Set myMail = Nothing
- End Sub
½Æ»s¥N½X |
|