© 2024 HASGÜL ÖZLÜ. Designed By hasgül

outlook da macro ile oto cc yada bcc ye mail ekleme

Outlook da macro ile bilgi yada gizli alanına gönder tuşuna bastığınızda otomatik istediğiniz bir adresi yazarak o mailin otomatik arşivlenmesini sağlayabilirsiniz.

kod içeriği

Dim objRecip As Recipient
Dim strMsg As String
Dim res As Integer
Dim strBcc As String
On Error Resume Next
 
' #### USER OPTIONS ####
' adress for Bcc -- must be SMTP adress or resolvable
' to a name in the adress boook
 
strBcc = "Bu e-Posta adresi istenmeyen posta engelleyicileri tarafından korunuyor. Görüntülemek için JavaScript etkinleştirilmelidir."
 
Set objRecip = Item.Recipients.Add(strBcc)
objRecip.Type = olBCC
If Not objRecip.Resolve Then
    strMsg = "Could not resolve the Bcc recipient. " & _
             "Do you want still to send the message?"
    res = MsgBox(strMsg, vbYesNo + vbDefaultButton1, _
            "Could Not Resolve Bcc Recipient")
    If res = vbNo Then
        Cancel = True
    End If
 End If
 
 Set objRecip = Nothing