Baanboard.com

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

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
15%
200 - 500 GB
30%
500 - 800 GB
4%
800 - 1200 GB
4%
1200 - 1500 GB
11%
1500 - 2000 GB
15%
> 2000 GB
22%
Total votes: 27

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 1st November 2018, 20:21
Ajesh's Avatar
Ajesh Ajesh is offline
Guru
 
Join Date: Feb 2009
Posts: 531
Ajesh is on a distinguished road
Baan: LN 10.4 - DB: Oracle - OS: HP-Unix
Filename of File sent through cmf email is not coming as expected
Baan: Other/Unknown
C/S: None/Unknown

Hello there

I was just trying out File attachment sent through cmf email feature. I am getting the file attached, but the attachment name is coming as the same as the subject of the Email,

Code:
        attachment.ID = cmf.createAttachment(message.ID)
        ret = cmf.setAttachmentBody(attachment.ID,ttyeno.no)
        ret = cmf.setAttachmentMIME(attachment.ID,"text/plain")
	ret = cmf.setAttachmentFileName(attachment.ID,filename)
I am using the Microsoft EMail facility.

I am creating the file like, Filetext.txt but the File is coming as <SubjectName>.eml

Any Clues?

Regards
Ajesh
Reply With Quote
  #2  
Old 2nd November 2018, 09:06
oirfeodent's Avatar
oirfeodent oirfeodent is offline
Member
 
Join Date: Jun 2016
Posts: 57
oirfeodent is on a distinguished road
Baan: Baan - DB: DB - OS: OS
Quote:
Originally Posted by Ajesh View Post
Hello there

I was just trying out File attachment sent through cmf email feature. I am getting the file attached, but the attachment name is coming as the same as the subject of the Email,

Code:
        attachment.ID = cmf.createAttachment(message.ID)
        ret = cmf.setAttachmentBody(attachment.ID,ttyeno.no)
        ret = cmf.setAttachmentMIME(attachment.ID,"text/plain")
	ret = cmf.setAttachmentFileName(attachment.ID,filename)
I am using the Microsoft EMail facility.

I am creating the file like, Filetext.txt but the File is coming as <SubjectName>.eml

Any Clues?

Regards
Ajesh
The help says
Code:
function long cmf.setattachmentfilename  (long attachment, string filename [, string displayname])
Can you try adding the third parameter?

Regards,
Reply With Quote
Sponsored Links
  #3  
Old 2nd November 2018, 15:48
Ajesh's Avatar
Ajesh Ajesh is offline
Guru
 
Join Date: Feb 2009
Posts: 531
Ajesh is on a distinguished road
Baan: LN 10.4 - DB: Oracle - OS: HP-Unix
Tried that.. But no effect. Its coming as same.
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
Programming Question mr_suleyman Tools Development 37 11th November 2016 09:14
Undocumented Functions & Variables george7a Tools Development 81 30th September 2015 12:35
bshell received SIGTERM manojsharma Tools Development 11 5th June 2008 10:22
Audit file structure baan_user Tools Development 8 4th May 2007 15:32
seq.open berthe Miscellaneous 4 12th May 2005 11:20


All times are GMT +2. The time now is 15:20.


©2001-2018 - Baanboard.com - Baanforums.com