Server 2012, Sending Email with Bullzip Attachment Issue

postsaurav
Member Posts: 708
Hi All,
I have written a codeunit to process email with attachment as invoice to the customer and it worked great till date. Now my customer have formatted the server and upgraded the Operating system to Windows Server 2012.
With this change the latest version of Bullzip was installed. Now nothing happens when i run the same codeunit.
Below are my findings -
1. The Codeunit process well and send email if i block code related to Bullzip and adding attachment.
2. When i attach a hard-coded attachment the codeunit send email with attachment without any issues.
3. When i Debug the codeunit with Bullzip code it sends the email with attachment.
But when i run the codeunit without debug it does nothing. ](*,)
Below are the piece of settings related to bullzip that i added, i seem there is a change with new version-
Does Anybody faced and resolved the above. Do let me know?
I have written a codeunit to process email with attachment as invoice to the customer and it worked great till date. Now my customer have formatted the server and upgraded the Operating system to Windows Server 2012.
With this change the latest version of Bullzip was installed. Now nothing happens when i run the same codeunit.
Below are my findings -
1. The Codeunit process well and send email if i block code related to Bullzip and adding attachment.
2. When i attach a hard-coded attachment the codeunit send email with attachment without any issues.
3. When i Debug the codeunit with Bullzip code it sends the email with attachment.
But when i run the codeunit without debug it does nothing. ](*,)
Below are the piece of settings related to bullzip that i added, i seem there is a change with new version-
CLEAR(BullZipPDF); CREATE(BullZipPDF); BullZipPDF.Init; BullZipPDF.LoadSettings; RunOnceFile := BullZipPDF.GetSettingsFileName(TRUE); BullZipPDF.SetValue('Output',Filename1); BullZipPDF.SetValue('Showsettings', 'never'); BullZipPDF.SetValue('ShowPDF', 'no'); BullZipPDF.SetValue('ShowProgress', 'no'); BullZipPDF.SetValue('ShowProgressFinished', 'no'); BullZipPDF.SetValue('SuppressErrors', 'yes'); BullZipPDF.SetValue('ConfirmOverwrite', 'no'); BullZipPDF.SetValue('GhostscriptTimeout', '10'); BullZipPDF.WriteSettings(TRUE);
Does Anybody faced and resolved the above. Do let me know?
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
0
Comments
-
That looks like a timming problem, the file that you try to attach is not ready yet.
You need to test that the file exists before attach it to the email.
Regards.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