Retirement Notice
|
|
User login
|
|
Frontpage Sponsor
|
|
Poll
|
What do you expect from your SI Implementation partner for the success of ERP implementation. Bring best practices - Not to offer more CR's Leveraging standard functions 20% Need more honesty to work with the Users until their processes are fully mapped & Users are trained 40% Focus on process automation/ integrations/ Real time data/ BI analytics 13% Stick to basics 27% Total votes: 15 |
|
|
 |

15th November 2012, 22:40
|
 |
Senior Member
|
|
Join Date: Feb 2012
Posts: 158
|
|
Baan: ERP LN -
DB: MS SQL -
OS: 2003
|
Emessage Connector HTML Formatted Email
Baan: ERP LN 6.1 FP7 C/S: None/Unknown
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
|

19th November 2012, 10:13
|
 |
Guru
|
|
Join Date: Sep 2002
Location: Netherlands
Posts: 1,009
|
|
Baan: BaanIV, BaanERP, ERP LN 6.1 -
DB: Oracle, SQL Server -
OS: Unix, Windows
|
You should use "text/html" as MIME type:
Code:
ret = cmf.setAttachmentMIME(attachment.ID,"text/html")
|

19th June 2013, 18:21
|
 |
Senior Member
|
|
Join Date: Feb 2012
Posts: 158
|
|
Baan: ERP LN -
DB: MS SQL -
OS: 2003
|
Thanks Jaap this worked for what I need it to be...
|

10th July 2013, 18:17
|
Junior Member
|
|
Join Date: Jun 2013
Posts: 6
|
|
Baan: Baan ERP, LN6 -
DB: Oracle, SQLSERVER -
OS: Windows, unix
|
I would like to do the same thing, like eric, (sending an e-mail with Html format). My html file contains a company logo, but when I receive the message Outlook is unable to display the .jpg logo : there is red cross instead.
Should I add the logo in the attachement before sending ? and what shoud I write for this ?
ret = cmf.setAttachmentMIME(attachment.ID,"text/html")
ret = cmf.setAttachmentFileName(attachment.ID, company.logo, company.logo)
|

29th August 2013, 00:30
|
 |
Guru
|
|
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,149
|
|
Baan: Baan 4-5,5.2(Reger),LN-6.1,Infor LN-10.x -
DB: Oracle,MS-SQL -
OS: HPUX, Linux, Windows
|
Quote:
Should I add the logo in the attachement before sending ? and what shoud I write for this ?
ret = cmf.setAttachmentMIME(attachment.ID,"text/html")
ret = cmf.setAttachmentFileName(attachment.ID, company.logo, company.logo)
|
Try the image tag - http://en.wikipedia.org/wiki/Internet_media_type
|

29th August 2013, 00:31
|
 |
Guru
|
|
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,149
|
|
Baan: Baan 4-5,5.2(Reger),LN-6.1,Infor LN-10.x -
DB: Oracle,MS-SQL -
OS: HPUX, Linux, Windows
|
Quote:
Should I add the logo in the attachement before sending ? and what shoud I write for this ?
ret = cmf.setAttachmentMIME(attachment.ID,"text/html")
ret = cmf.setAttachmentFileName(attachment.ID, company.logo, company.logo)
|
Try the image tag for the MIME - http://en.wikipedia.org/wiki/Internet_media_type
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|