NAS and smtpmailx
satanbis2
Member Posts: 24
Hello,
I have a code unit that send an e-mail with smtpmailx ocx.
From nav client, no problem
From Nas, I receive an error in event log :
"This message is for C/AL programmers:
Could not create an instance of the OLE control or Automation server identified by
GUID={79766A7F-90D7-4143-8B23-83A78097E880}.
Check that the OLE control or Automation server is correctly installed and registered."
NAS and client are on test on my pc, and use the same windows login account.
Here, my codeunit :
smtp.NewMessage('adr@dns.be','test');
smtp.SetWorkMode();
smtp.SetHost('ip');
smtp.SetUserID('user');
smtp.AddLine('jjj');
smtp.SetToAdress('adr@dns.be');
smtp.Send;
smtp is defined like : "Name DataType Subtype Length
smtp OCX SmtpMailX Element "
Any idea ?
Thx
I have a code unit that send an e-mail with smtpmailx ocx.
From nav client, no problem
From Nas, I receive an error in event log :
"This message is for C/AL programmers:
Could not create an instance of the OLE control or Automation server identified by
GUID={79766A7F-90D7-4143-8B23-83A78097E880}.
Check that the OLE control or Automation server is correctly installed and registered."
NAS and client are on test on my pc, and use the same windows login account.
Here, my codeunit :
smtp.NewMessage('adr@dns.be','test');
smtp.SetWorkMode();
smtp.SetHost('ip');
smtp.SetUserID('user');
smtp.AddLine('jjj');
smtp.SetToAdress('adr@dns.be');
smtp.Send;
smtp is defined like : "Name DataType Subtype Length
smtp OCX SmtpMailX Element "
Any idea ?
Thx
0
Comments
-
IF ISCLEAR(smtp) THEN CREATE(smtp);
i think you missed this --^Sendoh
be smart before being a clever.0 -
ISCLEAR and Create are for type Automation,
And smtp is of type OCX If I try to add that, I can't compile0 -
ISClEAR and CREATE are two functions.ISCLEAR (Automation)
Use this variable function to check whether an automation object has been created or not.CREATE (Automation)
Use this function to create an Automation object.smtp is your ocx used in your code.Experience Makes Man Perfect....
Rajesh Patel0 -
sorry for that:oops: i missed thissmtp is defined like : "Name DataType Subtype Length
smtp OCX SmtpMailX Element "Sendoh
be smart before being a clever.0 -
yes, but
my variable "smtp"
is defined of type "OCX" and not "automation"
So the 2 functions don't work
p.s. I'm on Nav4.0 SP30 -
The smtpmailx have sometime problems. Try to use another DLL like Free JMail or the SMTP from NAV 5.0...0
-
Hello,
Hava a look at the SMTP mail functionality of Dynamics NAV 5, you can easily downgrade it to 4 as far as i know. Objects: T-409, F-409 and CU-400Met vriendelijke groet, best regards,
Rvduuren0 -
Thx,
I use smtp from 5.0 and that work0
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
- 322 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
