Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

Retirement Notice

Baanboard is shutting down on 31-dec-2023. See: http://www.baanboard.com/baanboard/showthread.php?t=76043


User login

Frontpage Sponsor

Main

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

Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 15th November 2012, 22:40
eric.dizon's Avatar
eric.dizon eric.dizon is offline
Senior Member
 
Join Date: Feb 2012
Posts: 158
eric.dizon is on a distinguished road
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
Reply With Quote
  #2  
Old 19th November 2012, 10:13
JaapJD's Avatar
JaapJD JaapJD is offline
Guru
 
Join Date: Sep 2002
Location: Netherlands
Posts: 1,009
JaapJD will become famous soon enoughJaapJD will become famous soon enough
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")
Reply With Quote
  #3  
Old 19th June 2013, 18:21
eric.dizon's Avatar
eric.dizon eric.dizon is offline
Senior Member
 
Join Date: Feb 2012
Posts: 158
eric.dizon is on a distinguished road
Baan: ERP LN - DB: MS SQL - OS: 2003
Thanks Jaap this worked for what I need it to be...
Reply With Quote
  #4  
Old 10th July 2013, 18:17
berthier berthier is offline
Junior Member
 
Join Date: Jun 2013
Posts: 6
berthier is on a distinguished road
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)
Reply With Quote
  #5  
Old 29th August 2013, 00:30
NPRao's Avatar
NPRao NPRao is offline
Guru
 
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,149
NPRao will become famous soon enough
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
__________________
The art of perfection does not lie in doing extraordinary things but, doing ordinary things extraordinarily well. [-N. Prashanth Rao]
How To Ask Questions The Smart Way,BaaNBoard,NPRao
Reply With Quote
  #6  
Old 29th August 2013, 00:31
NPRao's Avatar
NPRao NPRao is offline
Guru
 
Join Date: Aug 2001
Location: Pacific NW, USA
Posts: 3,149
NPRao will become famous soon enough
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
__________________
The art of perfection does not lie in doing extraordinary things but, doing ordinary things extraordinarily well. [-N. Prashanth Rao]
How To Ask Questions The Smart Way,BaaNBoard,NPRao
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Send Baan Reports by Email bamnsour Third Party Products 3 19th June 2013 17:29
EMAIL output with Outlook.rtf Mick Andrus Tools Administration & Installation 11 12th September 2011 08:17
Email LittleJohn Tools Development 5 24th October 2007 09:22
Delivering reports by email in the CE 10 Abuibra Third Party Products 1 18th March 2005 17:43
Attaching file to email sent from Baan IV deeboss Tools Development 3 31st August 2001 17:12


All times are GMT +2. The time now is 00:53.


©2001-2023 - Baanboard.com - Baanforums.com