15,906,567 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by cybertaz (Top 2 by date)
cybertaz
15-Mar-16 16:18pm
View
The best I can work out is when the Email is about to be sent the mailitem To becomes a read only property. Any changes to the To generates an email that has a blank recipient list on the sent email.
.......
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim e As Outlook.MailItem
Dim recip As Outlook.Recipient
Dim Myrecip As Outlook.Recipient
Dim myString As String
Set e = Item
For Each recip In e.Recipients
If InStr(recip.Address, "XXXXXXXXXX.com") > 1 Then
Set Myrecip = e.Recipients.Add(Replace(recip.Address, "XXXXX.com, "xxx-xxx.com"))
recip.Delete
End If
Next
End Sub
cybertaz
8-Mar-16 12:27pm
View
It looks like any changes made to the recipient list causes the sent email to be sent without any email addresses.