![](/img/trans.png)
[英]populating an email “to, cc” and body using javascript and html
[英]ReplyTo using a shape in an email body
我在 email 正文中創建了一個形狀,它會生成一個新的 email,其中包含選定的收件人以及主題和正文。
無論如何,我可以生成對具有相同主題和收件人的郵件的回復嗎?
宏之類的,HTML里面有選項,比如mailto:cc:body:聽起來像replyto。
從您的帖子中不清楚按鈕的位置 - 它是帶有mailto:
鏈接的郵件正文還是 Outlook 用戶界面上的功能區按鈕。
如果使用mailto
協議,則無法在回復原始 email 時設置所有字段。
如果您自定義了 Outlook 功能區,您的按鈕的事件處理程序,您可以獲得當前在資源管理器中選擇的 window 或顯示在活動檢查器中的 window 項目並調用MailItem.Forward方法,該方法對項目執行Forward
操作並返回結果復制為MailItem
object。例如:
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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.