eric.dizon
15th November 2012, 21:40
I was able to create a custom session that sends out an email notification for Sales Orders in our system.
I've used the Emessage connector via SMTP service. I've used the cmf functions to create the message and send it.
The next step is for me to make the Email Body Text to use HTML format/conventions to polish the Email's content. I create a text file to set it as the attachment body. Is there a example that I can look at or am I just missing a command/setting to achieve an HTML Email Body format. Please advise.
|Set attachment
attachment.ID = cmf.createAttachment(message.ID)
ret = cmf.setAttachmentBody(attachment.ID, ttyeno.yes)
|ret = cmf.setAttachmentMIME(attachment.ID,"application/rtf")
ret = cmf.setAttachmentFileName(attachment.ID, sourcefile ,sourcefile)
Regards,
Eric
I've used the Emessage connector via SMTP service. I've used the cmf functions to create the message and send it.
The next step is for me to make the Email Body Text to use HTML format/conventions to polish the Email's content. I create a text file to set it as the attachment body. Is there a example that I can look at or am I just missing a command/setting to achieve an HTML Email Body format. Please advise.
|Set attachment
attachment.ID = cmf.createAttachment(message.ID)
ret = cmf.setAttachmentBody(attachment.ID, ttyeno.yes)
|ret = cmf.setAttachmentMIME(attachment.ID,"application/rtf")
ret = cmf.setAttachmentFileName(attachment.ID, sourcefile ,sourcefile)
Regards,
Eric