none
Répondre à un texte brut automatiquement en html RRS feed

  • Question

  • Bonjour,

    Je suis sur Outlook2010 et lorsque je reçois un mail au format texte brut et que je veux y répondre en HTML il me le mets automatiquement en texte brut.

    Il y a t-il un moyen de changer se paramètre?

    Merci d'avance.

    mercredi 8 mars 2017 12:34

Toutes les réponses

  • Du coup après quelques recherche j'ai trouvé cette maccro.

    Sub AlwaysReplyInHTML()
    Dim oSelection As Outlook.Selection
    Dim oItem As Object
    'Get the selected item
    Select Case TypeName(Application.ActiveWindow)
    Case "Explorer"
    Set oSelection = Application.ActiveExplorer.Selection
    If oSelection.Count > 0 Then
    Set oItem = oSelection.Item(1)
    Else
    MsgBox "Please select an item first!", vbCritical, "Reply in HTML"
    Exit Sub
    End If
    Case "Inspector"
    Set oItem = Application.ActiveInspector.CurrentItem
    Case Else
    MsgBox "Unsupported Window type." & vbNewLine & "Please select or open an item first.", _
    vbCritical, "Reply in HTML"
    Exit Sub
    End Select
        Dim oMsg As Outlook.MailItem
    Dim oMsgReply As Outlook.MailItem
    Dim bPlainText As Boolean
    'Change the message format and reply
    If oItem.Class = olMail Then
    Set oMsg = oItem
    If oMsg.BodyFormat = olFormatPlain Then
    bPlainText = True
    End If
    oMsg.BodyFormat = olFormatHTML
    Set oMsgReply = oMsg.Reply
    If bIsPlainText = True Then
    oMsg.BodyFormat = olFormatPlain
    End If
    oMsg.Close (olSave)
    oMsgReply.Display
    'Selected item isn't a mail item
    Else
    MsgBox "No message item selected. Please select a message first.", _
    vbCritical, "Reply in HTML"
    Exit Sub
    End If
    'Cleanup
    Set oMsgReply = Nothing
    Set oMsg = Nothing
    Set oItem = Nothing
    Set oSelection = Nothing
    End Sub
    
    Mais cela applique que sur un seul destinataire


    mercredi 8 mars 2017 15:32