server/lib/direct/index.js
//add attachments content to MIME message and send it once all attachments added
add attachments content to MIME message and send it once all attachments added
add attachments content to MIME message and send it once all attachments added
function sendmail(filename, contents) {
                    mailcomposer.addAttachment({
                        fileName: filename,
                        contents: contents
                    });
                    count = count + 1;
                    if (count === att_count) {
                        mailcomposer.streamMessage();
                        mailcomposer.pipe(client);
                        console.log("on message event, done (with attachments)");
                    }
                }
function sendmail ( filename , contents ) { mailcomposer . addAttachment ( { fileName : filename , contents : contents } ) ; count = count + 1 ; if ( count === att_count ) { mailcomposer . streamMessage ( ) ; mailcomposer . pipe ( client ) ; console . log ( "on message event, done (with attachments)" ) ; } }
add attachments content to MIME message and send it once all attachments added
add attachments content to MIME message and send it once all attachments added