I assume your original code came from
Pick the Folder Manually at
https://www.vboffice.net/en/developers/determine-folder-for-sent-items/
In which case I think the reason it is not firing on a GMail send is because of the line:
If Item.DeleteAfterSubmit = False Then
Please test with this modified version and see if this works.
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
If TypeOf Item Is Outlook.MailItem Then
SaveSentMail Item
End If
End Sub
Private Sub SaveSentMail(Item As Outlook.MailItem)
Dim F As Outlook.Folder
Item.DeleteAfterSubmit = False
Set F = Application.Session.PickFolder
If Not F Is Nothing Then
Set Item.SaveSentMessageFolder = F
End If
End Sub