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

[µo°Ý] ¦p¦ó±oª¾¦¹¦¸outlook¦@±µ¦¬¤F´X«Ê·s¶l¥ó?

[µo°Ý] ¦p¦ó±oª¾¦¹¦¸outlook¦@±µ¦¬¤F´X«Ê·s¶l¥ó?

  1. Private Sub Application_NewMailEx(ByVal EntryIDCollection As String)

  2.     MsgBox "I'm working!", vbExclamation

  3.     Dim varEntryIDs
  4.     Dim objItem As Object
  5.     Dim myItem As MailItem
  6.     Dim i As Integer
  7.     varEntryIDs = Split(EntryIDCollection, ",")
  8.     For i = 0 To UBound(varEntryIDs)
  9.         Set objItem = Application.Session.GetItemFromID(varEntryIDs(i))

  10.         '## Check the item's TypeName and ONLY process if it's a MailItem:

  11.         If TypeName(objItem) = "MailItem" Then

  12.             Set myItem = objItem.Forward
  13.             myItem.Recipients.Add "[email protected]"
  14.             myItem.Send

  15.         Else:
  16.             MsgBox "Type of item is: " & TypeName(objItem)

  17.         End If

  18.     Next
  19. End Sub
½Æ»s¥N½X
³o¬Oºô¸ô¤W§ä¨ìªº¸ê®Æ
¦ý¥u¯à§ä¥X³Ì«á¤@«Êmail

¦p¦ó¥i¥H±oª¾¦¹¦¸±µ¦¬¤F¤­«Êmail
¦Ó¤£¬O¥u§ìªº¨ì³Ì«á¤@«Ê«H©O?

½Ð¦U¦ì¤j¤j¨D§U!
PKKO

        ÀR«ä¦Û¦b : °ß¨ä´L­«¦Û¤vªº¤H¡A¤~§ó«i©óÁY¤p¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD