简体   繁体   中英

ReplyTo using a shape in an email body

I created a shape in an email body that would result in a new email with selected recipients and a subject and body.

Is there anyway I can generate replies to mail with the same subjects and recipients?

Macro or like, there are options in HTML, such as mailto: cc: body: which would sound like replyto.

It is not clear from your post where the button is located - whether it is a message body with a mailto: link or a ribbon button on the Outlook UI.

In case of mailto protocol there is no way to set up all fields as you reply to the original email.

In case if you customized an Outlook ribbon, your button's event handler you can get the currently selected in the Explorer window or displayed in the active Inspector window item and call the MailItem.Forward method which executes the Forward action for an item and returns the resulting copy as a MailItem object. For example:

Sub RemoveAttachmentBeforeForwarding() 
 Dim myinspector As Outlook.Inspector 
 Dim myItem As Outlook.MailItem 
 Dim myattachments As Outlook.Attachments 
 
 Set myinspector = Application.ActiveInspector
 If Not TypeName(myinspector) = "Nothing" Then
   Set myItem = myinspector.CurrentItem.Forward 
   Set myattachments = myItem.Attachments 
   While myattachments.Count > 0 
     myattachments.Remove 1 
   Wend 
   myItem.Display 
   myItem.Recipients.Add "Eugene Astafiev" 
   myItem.Send 
 Else 
   MsgBox "There is no active inspector." 
 End If 
 
End Sub

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM