Hi Guys - I'm trying to send an email via a script...
# suitescript
s
Hi Guys - I'm trying to send an email via a script by passing it as a string and using it as email body. Everything is going through just fine except for the CSS. Any ideas?
Copy code
var body = '<?xml version="1.0"?><!DOCTYPE pdf PUBLIC "-//big.faceless.org//repor........ >;

email.send({
                    author: senderId,
                    recipients: senderId,
                    subject: 'TEST',
                    body: body,
                    // attachments: [fileObj],
                    relatedRecords: {
                        // entityId: recipientId,
                        customRecord:{
                            id:300949,
                            recordType: 21 //an integer value
                        }
                    }
                });