var theFile = plugins.file.showFileOpenDialog();
var rawData = plugins.file.readFile(theFile);
var name = theFile.getName();
forms.act_haeder_email.act_email_attach = rawData
I try to send the e mail with attachment
var to = forms.act_header_email.act_email_to
var cc = forms.act_header_email.act_email_cc
var bcc = forms.act_header_email.act_email_bcc
var from = forms.act_header_email.act_email_from
var subject = forms.act_header_email.act_email_subject
var txt = forms.action_note.act_txt
var attach = plugins.mail.createBinaryAttachment('test',plugins.images.getImage(forms.act_header_email.act_email_attach))
var success = plugins.mail.sendMail(to, from, subject, txt ,cc , bcc , attach, null);
if (!success)
{
plugins.dialogs.showWarningDialog('Alert',plugins.mail.getLastSendMailException(),'OK');
}
I can send the email but the attachment isn’t sent.