I have a VBA programme that runs in Excel and creates a collection of about 20 draft Outlook email objects. Simple HTML with no attachments. The user is then given a choice:
Send each one directly, using an instruction something like
c_email(j).SendDisplay each ones directly, to allow the option of customisation/amendment, before the user presses the send button themselves. The command here is
c_email(j).Display
My problem is that 1) generates a spam failure message (extract below), while 2) works fine -- even though the emails themselves are identical.
Any thoughts?? Weirdly, I have another routine that does something very similar (different type of message, to a different group of people) and this works fine in both modes.
>>>>>>>>
Diagnostic information for administrators:
Generating server: VE1PR10MB3919.EURPRD10.PROD.OUTLOOK.COM
[email protected]
Remote server returned '550 5.7.520 Message blocked because it contains content identified as spam. AS(4810)'
Original message headers:
Something in your code triggers your spam filter. Go with basics, the code below is as simple as it can get. Try to first run and display, to see that everything works as it should, then change to send and try again. If this works, then there's someting wrong with your code, otherwise your not allowed to send mail with vba i guess. If it works, make a new post where you show your code.