IF ISCLEAR(JMail) THEN
CREATE(JMail);
JMail.Silent := TRUE;
JMail.From := 'From@mibuso.com' ;
JMail.FromName := 'admin guy';
JMail.AddRecipient('to@mibus.com');
JMail.Subject := 'this is a subject';
JMail.AddAttachment('c:\file.txt',FALSE,'text/plain');
IF JMail.Send( '192.168.01.1') THEN BEGIN //this is smtp server ip
message('Processed');
END ELSE BEGIN
message(JMail.ErrorMessage);
END;
JMail.Clear;
Ahmed Rashed Amini
Independent Consultant/Developer
I installed JMail and registered the DLL's but I can't find them in the automationslist in Navision. I registered them with regasm and gacutil.. was this wrong? Do I have to use regsrv32? I would be glad if somebody could give me some hints.
I have setup a report in navision to print to pdf and email it to the customer. Thanks to ara3n i was able to do it with bullpdf and JMail. But for some reason, the email is getting rejected by my outlook. It does not show. I checked it with other mail accts like yahoo, gmail and they seem to work fine. Any ideas?
It was my relay settings in my server which had caused issues. After enabling it it worked fine!! Thanks ara3n. Its been working fine for a year but we might be upgrading atlaast and i might use the inbuilt smtp for emailing hopefully
Comments
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
If I have to do this for outlook then subtype is 'Microsoft Outlook 10.0 Object Library'.Action ?
or first we have to registered the domain using for outlook?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
register the dll please with regsrv32. But the dll must have an entry point for register with regsrv32 and use with navision.
The DLL's are called Dimac.JMail.dll and Dimac.JMail.Smtp.dll
Is it the wrong file?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
where could i find Jmail free ocx, or other component you are talking about?
(i have googled but no luck for the free Jmail)
Thanks,
hxr
jmail is a product of "dimac"
I have setup a report in navision to print to pdf and email it to the customer. Thanks to ara3n i was able to do it with bullpdf and JMail. But for some reason, the email is getting rejected by my outlook. It does not show. I checked it with other mail accts like yahoo, gmail and they seem to work fine. Any ideas?
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
What will be the reason behind it ?? :-k :-k