The Unit mailbox space is too small, only dozens of MB. After sending a few large emails, the mailbox space will be full. You can back up emails in the inbox through Pop3, however, email backup in the sender's mail is troublesome. By default, Outlook does not provide BCC to the specified email address. However, we can use macros to solve this problem. The steps are as follows:
- Alt + F11 open the macro Editor
- On the Project panel, open Project (VbaProject. OTM)/Microsoft Office Outlook object/ThisOutlookSession ";
- Enter the following code:
Option ExplicitPrivate Sub Application_ItemSend (ByVal Item As Object, Cancel As Boolean) dim oItem As MailItem Dim oRecipient As Recipient If oItem Is Nothing Then Else Set oItem = item' here refer to the following code to add and delete BCC Recipient Set oRecipient = oItem As needed. recipients. add ("izhangronghua@gmail.com") oRecipient. type = Outlook. olBCC 'set oRecipient = oItem. recipients. add ("user2@server2.com") 'oRecipient. type = Outlook. olBCC 'set oRecipient = oItem. recipients. add ("user3@server3.com") 'oRecipient. type = Outlook. olBCC oItem. recipients. resolveAll oItem. save Set oRecipient = Nothing Set oItem = Nothing End IfEnd Sub
- Save and exit the macro Editor
- In Outlook, choose tools> trust center> macro security and select provide warning for all macros ".
After the above operations, all emails sent in the future will be automatically sent to the specified mailbox, which plays a backup role.