OLE contol or automation error

vicky_dada
Member Posts: 106
Hi Friends,
I was trying to send mail through one my smtp server and it was worrking fine, I wanted to experiment the same for gmail with "SMTP.gmail.com",I tried changing the port from 25 to 587 to make it work for gmail. I was going through one of the links "http://gotcal.com/index.php/2010/06/smtp-mail-functionality-in-pre-dynamics-nav-5-version/" and run the application mentioned in the link. it did not work and suddenly I see that earlier working smtp server is not working for sending mails from navision , I get the message "The message is for C/AL programers could not invoke the memeber send. The OLE control or automation server returned an unknown error code". I have NAV 2009 SP1 running in my system.
I tried uninstalling and reinstalling but before experimenting with system registers, I would like to hear from you. Please comment
I was trying to send mail through one my smtp server and it was worrking fine, I wanted to experiment the same for gmail with "SMTP.gmail.com",I tried changing the port from 25 to 587 to make it work for gmail. I was going through one of the links "http://gotcal.com/index.php/2010/06/smtp-mail-functionality-in-pre-dynamics-nav-5-version/" and run the application mentioned in the link. it did not work and suddenly I see that earlier working smtp server is not working for sending mails from navision , I get the message "The message is for C/AL programers could not invoke the memeber send. The OLE control or automation server returned an unknown error code". I have NAV 2009 SP1 running in my system.

I tried uninstalling and reinstalling but before experimenting with system registers, I would like to hear from you. Please comment
0
Comments
-
it was reselecting the right automation variable in CU 400 for Mail variable it is "'Microsoft Dynamics NAV Mail Helper'.SmtpMessage" and solved
\:D/0 -
Hi Vicky ,
can i know what integer parameter you have passed after mapping the Mail variable to "'Microsoft Dynamics NAV Mail Helper'.SmtpMessage"
" Result :=
Mail.Send(
"SMTP Server",Authentication <> SMTPMailSetup.Authentication::Anonymous,"User ID", Password','PARAMTER ??');
Thanks,
Bhareth0
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