RTF mail could not be sent, because of corrupt message content.

Add-in Express™ Support Service
That's what is more important than anything else

RTF mail could not be sent, because of corrupt message content.
 
wehbi




Posts: 76
Joined: 2013-10-31
Hi ADX-Team,

when I attach the OutlookItemEvent class to a RTF mail, the mail seems to become corrupt, as soon as the mail body contains a embedded picture.

After sending the mail, a mail with the following text returns:
-----------------------------------------------------------------------
Remote Server returned '554 5.6.0 Corrupt message content; STOREDRV.Deliver.Exception:ConversionFailedException.ConversionFailedException.TextConvertersException; Failed to process message due to a permanent exception with message The message content has become corrupted. ConversionFailedException: Content conversion: Body conversion failed. [Stage: CreateReplay]'
-----------------------------------------------------------------------

This is does not happen, when using HTML format or no picture is attached.
When I do not hook the event class in the adxOutlookEvents_InspectorActivate event, the problem is gone.

I unhook the event class at adxOutlookEvents_ItemSend, adxOutlookEvents_InspectorClose and AddinModule_AddinBeginShutdown.

What am I doing wrong?

Reagrds,
Birger
Posted 21 Jul, 2016 04:06:25 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Hello Birger,

Does commenting out the custom code in the OutlookItemEvent class produce the same issue?


Andrei Smolin
Add-in Express Team Leader
Posted 21 Jul, 2016 04:38:53 Top
wehbi




Posts: 76
Joined: 2013-10-31
Hello Andrei,

the ProcessBeforeAttachmentAdd event is triggered when a RTF mail contains a picture and you hit the send button. This behaves different then HTML or PLAIN.
The underlying routine was causing the error.

Thanks and regards,
Birger
Posted 21 Jul, 2016 08:02:17 Top
Andrei Smolin


Add-in Express team


Posts: 18817
Joined: 2006-05-11
Thank you for letting me know!


Andrei Smolin
Add-in Express Team Leader
Posted 21 Jul, 2016 08:09:44 Top