انتقل إلى المحتوى الرئيسي

كيفية الرد بتنسيق HTML تلقائيًا في Outlook؟

في Microsoft Outlook ، يمكننا تكوين الإعدادات وإنشاء جميع الرسائل الجديدة بتنسيق HTML ، ولكن لا يمكننا الرد على الرسائل بتنسيق HTMT تلقائيًا ، لأنه يرد دائمًا بالتنسيق الأولي للرسائل المستلمة. ستقدم لك هذه المقالة حيلًا حول الرد بتنسيق HTML تلقائيًا في Outlook.

الرد بتنسيق HTML يدويًا بالتنسيق
قم بالرد بتنسيق HTML تلقائيًا باستخدام VBA
قم دائمًا بالرد بتنسيق HTML تلقائيًا باستخدام Kutools for Outlook


الرد بتنسيق HTML يدويًا بالتنسيق

من السهل تحويل تنسيقات نص عادي أو نص منسق إلى تنسيق HTML عندما ترد على رسالة بريد إلكتروني في Outlook.

1: حدد رسالة البريد الإلكتروني التي سترد عليها لاحقًا.

2: انقر فوق رد زر على الصفحة الرئيسية علامة التبويب (أو على شريط الأدوات في Outlook 2007) للرد على رسالة البريد الإلكتروني المحددة.

3: انقر فوق HTML على تنسيق النص علامة التبويب (أو مزيد من الخيارات علامة التبويب في Outlook 2007).

ثم يتم تحويل رسالة الرد إلى تنسيق HTML على الفور.

4: قم بتكوين رسالة الرد هذه ، وانقر فوق أرسل .


قم بالرد بتنسيق HTML تلقائيًا باستخدام VBA

ستساعدك الطريقة التالية في الرد على جميع رسائل البريد الإلكتروني بتنسيق HTML تلقائيًا في Microsoft Outlook.

1: حدد رسالة البريد الإلكتروني التي سترد عليها بتنسيق HTML.

2: اضغط على قديم + F11 مفاتيح لفتح نافذة ميكروسوفت فيسوال باسيك للتطبيقات.

3: انقر فوق إدراج > وحدة.

4: الصق الكود التالي في نافذة الوحدة الجديدة.

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

5: إذا كنت تريد الرد على هذه الرسالة المحددة بتنسيق html فقط ، فيرجى الضغط على F5 مفتاح لتشغيل الكود. ثم تنبثق نافذة رسالة الرد ، يرجى كتابتها والضغط على أرسل زر لإرسال البريد الإلكتروني.

نصيحة::
إذا كنت تريد الرد دائمًا أو بشكل متكرر على رسائل البريد الإلكتروني بتنسيق html في المستقبل في Outlook ، فالرجاء متابعة التكوين على النحو التالي.
شنومكس) انقر فوق تخصيص شريط أدوات الوصول السريع زر في شريط Outlook ثم انقر فوق المزيد من الأوامر من القائمة المنسدلة.

شنومكس) في خيارات التوقعات مربع الحوار ، تحتاج إلى:
شنومكس) حدد وحدات الماكرو في ال اختر الأوامر من قائمة منسدلة؛
شنومكس) حدد مشروع 1.AlwaysReplyInHTML في مربع الأوامر ؛
شنومكس) انقر فوق أضف زر (يمكنك رؤية الماكرو المحدد يضاف إلى المربع الأيمن) ؛
شنومكس) انقر فوق OK زر. انظر لقطة الشاشة:

3) الآن يتم إضافة الماكرو على شريط أدوات الوصول السريع ويتم عرضها كملف  أيقونة. في كل مرة تريد الرد على رسالة بريد إلكتروني بتنسيق html ، يرجى تحديد البريد الإلكتروني والنقر فوق هذا الزر لتنشيطه.


قم دائمًا بالرد بتنسيق HTML تلقائيًا باستخدام Kutools for Outlook

كوتولس لتوقعات : مع أكثر من 100 وظيفة إضافية مفيدة في Outlook ، تجربة مجانية بدون قيود خلال 60 يومًا.

هنا أوصيك بأداة مفيدة - إصلاح تنسيق الرد of كوتولس لتوقعات. باستخدام هذه الأداة المساعدة ، يمكنك بسهولة تحديد تنسيق الرد مثل HTML والنص العادي و RTF ، وإصلاح التنسيق المحدد كتنسيق الرد لجميع رسائل البريد الإلكتروني للرد في المستقبل.

1. انقر كوتولس > تنسيق ثابت > إصلاح تنسيق الرد > تعيين تنسيق الرد. انظر لقطة الشاشة:

2. في ال تعيين تنسيق الرد في مربع الحوار ، حدد ملف HTML الخيار ثم انقر فوق OK .

3. الآن الرجاء الضغط تنسيق ثابت > إصلاح تنسيق الردتفعيل تنسيق الرد الثابت تحت علامة التبويب Kutools لتمكين الأداة.

من الآن فصاعدًا ، يرد Outlook دائمًا على رسالة بريد إلكتروني بتنسيق HTML.

إذا كنت تريد الحصول على نسخة تجريبية مجانية من هذه الأداة المساعدة ، فيرجى الانتقال إلى تنزيل البرنامج مجانًا اولا ثم انتقل لتطبيق العملية حسب الخطوات اعلاه.


أفضل أدوات إنتاجية المكتب

كوتولس لتوقعات - أكثر من 100 ميزة قوية لتعزيز توقعاتك

🤖 مساعد بريد الذكاء الاصطناعي: رسائل بريد إلكتروني احترافية فورية مع سحر الذكاء الاصطناعي - بنقرة واحدة للردود العبقرية، والنغمة المثالية، وإتقان متعدد اللغات. تحويل البريد الإلكتروني دون عناء! ...

📧 أتمتة البريد الإلكتروني: خارج المكتب (متوفر لـ POP وIMAP)  /  جدولة إرسال رسائل البريد الإلكتروني  /  نسخة تلقائية/نسخة مخفية الوجهة حسب القواعد عند إرسال البريد الإلكتروني  /  إعادة التوجيه التلقائي (القواعد المتقدمة)   /  إضافة تحية تلقائية   /  تقسيم رسائل البريد الإلكتروني متعددة المستلمين تلقائيًا إلى رسائل فردية 

📨 إدارة البريد الإلكتروني: استدعاء رسائل البريد الإلكتروني بسهولة  /  حظر رسائل البريد الإلكتروني الاحتيالية حسب الموضوعات والآخرين  /  حذف رسائل البريد الإلكتروني المكررة  /  المزيد من خيارات البحث  /  توحيد المجلدات 

📁 المرفقات بروحفظ دفعة  /  فصل دفعة  /  ضغط دفعة  /  حفظ تلقائي   /  فصل تلقائي  /  ضغط تلقائي 

؟؟؟؟ واجهة ماجيك: 😊 المزيد من الرموز التعبيرية الجميلة والرائعة   /  عزز إنتاجية Outlook الخاص بك باستخدام طرق العرض المبوبة  /  تصغير Outlook بدلاً من الإغلاق 

؟؟؟؟ بنقرة واحدة عجائب: الرد على الكل بالمرفقات الواردة  /   رسائل البريد الإلكتروني لمكافحة التصيد  /  🕘إظهار المنطقة الزمنية للمرسل 

👩🏼‍🤝‍👩🏻 جهات الاتصال والتقويم: دفعة إضافة جهات الاتصال من رسائل البريد الإلكتروني المحددة  /  تقسيم مجموعة اتصال إلى مجموعات فردية  /  إزالة تذكير عيد ميلاد 

على مدى ميزات 100 في انتظار الاستكشاف الخاص بك! انقر هنا لاكتشاف المزيد.

 

 

Comments (25)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I've been using this macro for a couple years now. Unfortunately it has started to change the character set of the replied email to some unknown character set eg"整瑸栯浴㭬挠慨獲瑥甽晴㠭㸢਍䴼呅⁁䅎䕍∽敇" that is not translatable. Has anyone else come across this issue and if so were you able to find a fix?
This comment was minimized by the moderator on the site
Hi there,

Please try the code below:
Sub AlwaysReplyInHTML()
Dim xSelection As Outlook.Selection
Dim xItem As Object
Dim xMail As Outlook.MailItem
Dim xMailReply As Outlook.MailItem
'On Error Resume Next
Select Case TypeName(Application.ActiveWindow)
  Case "Explorer"
    Set xSelection = Application.ActiveExplorer.Selection
    If xSelection.Count > 0 Then
      Set xItem = xSelection.Item(1)
    Else
      MsgBox "Please select an item first!", vbCritical, "Kutools for Outlook"
      Exit Sub
    End If
  Case "Inspector"
    Set xItem = Application.ActiveInspector.CurrentItem
  Case Else
    MsgBox "Unsupported Window type." & vbNewLine & "Please select or open an item first.", vbCritical, "Kutools for Outlook"
    Exit Sub
End Select
If xItem.Class = olMail Then
  Set xMail = xItem
  Set xMailReply = xMail.Reply
  xMailReply.Display
  xMailReply.BodyFormat = olFormatHTML
Else
  MsgBox "No message item selected. Please select a message first.", vbCritical, "Kutools for Outlook"
  Exit Sub
End If
Set xMailReply = Nothing
Set xMail = Nothing
Set xItem = Nothing
Set xSelection = Nothing
End Sub
This comment was minimized by the moderator on the site
Merci beaucoup.
Je l’ai modifié un peu, et ça fonctionne de nouveau chez moi, sans la transformation en Chinois…

Sub AlwaysReplyInHTML_Kutools()
Dim xSelection As Outlook.Selection
Dim xItem As Object
Dim xMail As Outlook.MailItem
Dim xMailReply As Outlook.MailItem

'On Error Resume Next
Select Case TypeName(Application.ActiveWindow)
  Case "Explorer"
    Set xSelection = Application.ActiveExplorer.Selection
    If xSelection.Count > 0 Then
      Set xItem = xSelection.Item(1)
    Else
      MsgBox "Please select an item first!", vbCritical, "Kutools for Outlook"
      Exit Sub
    End If
  Case "Inspector"
    Set xItem = Application.ActiveInspector.CurrentItem
  Case Else
    MsgBox "Unsupported Window type." & vbNewLine & "Please select or open an item first.", vbCritical, "Kutools for Outlook"
    Exit Sub
End Select

If xItem.Class = olMail Then
  Set xMail = xItem
  'Changer le format ici, afin que la réponse inclu notre signature en html…!
        xMail.BodyFormat = olFormatHTML
  
  Set xMailReply = xMail.Reply
  xMailReply.Display
  'xMailReply.BodyFormat = olFormatHTML
Else
  MsgBox "No message item selected. Please select a message first.", vbCritical, "Kutools for Outlook"
  Exit Sub
End If

Set xMailReply = Nothing
Set xMail = Nothing
Set xItem = Nothing
Set xSelection = Nothing
End Sub
This comment was minimized by the moderator on the site
Thanks I'll give that a go. Have a nice day.
This comment was minimized by the moderator on the site
Hi,

as for answering everyone - it's very simple - just change the 31st line of code:

Set oMsgReply = oMsg.Reply --> change "oMsg.ReplyAll" or change "oMsg.Forward"

And to apply for "all emails" just do this:
Instead of creating buttons in quick access, create new buttons directly in the ribbon (Customize Ribbon), create a "Custom" ("New Group") there and create buttons from macros (first macro to "reply to all", second macro to "forward").

And the original "Reply" group can be removed from the ribbon ;)

Anyway, extendoffice.com is a great site from which I sometimes draw data - many thanks... ;)
This comment was minimized by the moderator on the site
This is great and solves a long term frustration with outlook! As someone not experienced with VBA coding could I get a little more advice on how to set up the replyall and forward functionality. I have the 'replyinHTML' working (with a custom ribbon button for it) but am not sure how the get the other options working. Should I be creating a new project or new module within the existing project with the modified code at line 31?
Any help appreciated - thanks!
This comment was minimized by the moderator on the site
Hi, you should save them respectively as three different modules. :)
This comment was minimized by the moderator on the site
Thank you!
This comment was minimized by the moderator on the site
Hello,

This works very well, thanks. But... it does not reply to all. Only the sender of the email received is added to the reply. What should I change in the code so it does "Reply to all" instead of "Reply"?


Thanks!
This comment was minimized by the moderator on the site
Running the macro works for one instance, but how to replicate it to occur on every instance?
This comment was minimized by the moderator on the site
I followed all of the steps listed about but when I press F5 to run the Module I get an error message saying that the Macros for this project have been disabled. I even tried going into Outlooks settings and telling Outlook to enable all Macros. Any help would be greatly appreciated!
This comment was minimized by the moderator on the site
Thanks a lot for this macro!
This comment was minimized by the moderator on the site
this only changes the email i have selected. how do you change it for all emails?
This comment was minimized by the moderator on the site
Same thing for me. Did you get any help?
This comment was minimized by the moderator on the site
Please, do you know the appropriate 'Alt F11' and 'F5' keys when using Outlook 2016 on a Mac?
This sure is an annoying omission by Microsoft. Many thanks. Hope you can help.
This comment was minimized by the moderator on the site
Thanks, it worked. You are da man!
This comment was minimized by the moderator on the site
Thank you for this, but i am having issues. I copy/pasted and the number were put above the text when i pasted it and I got the error message - "compile error: invalid outside procedure" Then i tried to just erase the numbers and leave the test and got : Run time Error - could not send message. - I then clicked Debug and got the same error as others: Set oMsgReply = oMsg.Reply Thoughts?
This comment was minimized by the moderator on the site
Dont open the email, only highlight it in outlook. Alt +F11 insert the module F5 New email should open as HTML to reply
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations