Hello,
I have a task add-in that will send notification (smtp) but the the NewLine appears to be removed. I have tried both Environment.NewLine and "\\r\\n". I am saving my "log" string in both a task variable that shows on my task details form and passing it as the last parameter to the final SetStatus call, both of them show the message as one continuous line (well with wrapping) I would like to improve the readability by inserting line breaks. I've been using Environment.NewLine for quite a while and this task add-in is the first time I'm not getting expected results. Is there a special escape sequence I need to add?
This is the SetStatus call I'm using. The log string is built throughout the task so hard to post all the code.
task<span class="punctuation token">.</span><span class="token function">SetStatus</span><span class="punctuation token">(</span>EdmTaskStatus<span class="punctuation token">.</span>EdmTaskStat_DoneFailed<span class="punctuation token">,</span> <span class="number token">0</span><span class="punctuation token">,</span> <span class="string token">"custom Fail Msg"</span><span class="punctuation token">,</span> itemList<span class="punctuation token">.</span><span class="token function">ToArray</span><span class="punctuation token">(</span><span class="punctuation token">)</span><span class="punctuation token">,</span> log<span class="punctuation token">)</span><span class="punctuation token">;</span><br><span class="line-numbers-rows"><span></span></span>Thank you.
SolidworksApi/macros