Sending more than 1 word-attachments (blob-fields) in e-mail

vanwero
Member Posts: 28
Hi,
does anybody know if it's possible to sent an email with more than one word-attachment (these attachments are BLOB-fiels whithin Navision)
Thx
R.
does anybody know if it's possible to sent an email with more than one word-attachment (these attachments are BLOB-fiels whithin Navision)
Thx
R.
0
Comments
-
Yes it can be done 8)
By Creating a new function in codueint 397 (Mail) based on the "New Message". You need to add multiple "AttachfileName" routines.
When I did this it was referencing files on my local C drive that I had created by using "SAVEASHTML" and then sending these to my required contact.
Dean.
P.S. I found the code and it looks something like this....
IF AttachFileName2 = '' THEN
MAPIMessages.MsgNoteText := Body
ELSE BEGIN
MAPIMessages.MsgNoteText := Body + ' ';
MAPIMessages.AttachmentIndex := MAPIMessages.AttachmentCount;//Counts the no. of messages attached to the mail
MAPIMessages.AttachmentType := 0; //defines the attachment type as Data File
MAPIMessages.AttachmentPathName := AttachFileName2;
MAPIMessages.AttachmentPosition(STRLEN(Body));
END;Remember: Keep it simple0 -
Thank you very much, this is indeed the place where it can be done. One problem. My MAPIHandler is declared as the following automation variable --> 'Navision Attain ApplicationHandler'.MAPIHandler'.
But for this variable I do not have the following properties: AttachmentIndex, AttachmentType,...
Does anybody know if this is het wrong variable declaration or something else I do wrong?
By the way, I'm working in 3.70. Mayby this is the cause? If this is the case, does anybody knows how to do it in this Version?
Greets,
R.0 -
Hello everybody,
we were(are) having the same problem. Using this code works fine, so far, but only as long as we're not sending more then two attachments.
Is this Mapi-OCX limited to two attachments?? Or what are doing wrong?
](*,)0 -
Ok, now we got it. It was just the attachment position which was wrong...0
-
JanV wrote:Ok, now we got it. It was just the attachment position which was wrong...
I can't imagine that the position of the attachment(s) will be important. :-kTimo Lässer
Microsoft Dynamics NAV Developer since 1997
MSDynamics.de - German Microsoft Dynamics Community - member of [clip]0 -
We're attaching several different files (for example File A, File B, File C) for every Salesperson.
But we forgot to set the attachment position for every attached file, actually we were just giving one position (len(body) at the end of the "attachment-part" (like in the example).
Speaking of it; now we're having the problem that we can't send more then 18 attachments in one E-mail. Any suggestions?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions