Dll to send mails with Outlook Express (not M Outlook)

FranklinFranklin Member Posts: 253
What Dll do you use to send mails with Outlook Express? Microsoft Outlook is not installed in the server.

You do not need great options, just send an email.

Thk!! :D

Comments

  • garakgarak Member Posts: 3,263
    is this the same question like this:
    viewtopic.php?f=23&t=35318

    ?
    Do you make it right, it works too!
  • FranklinFranklin Member Posts: 253
    Yes, but this topic is very convoluted and i only want to know what dll do you use...

    If you want close this topic :-k

    Finally i get to send tne mail with microsoft outlook but the customer, now, wants without microsoft outlook :x i´m very angry!!!
  • garakgarak Member Posts: 3,263
    ok, then we use a very simple trick ;-)

    1. we know from our old dos times, that in the command.com some programs can be started with the start command. ;-)
    'cmd /c start mailto:My@EMAIL.de' <- starts the cmd with the command "start mailto:"

    so, the solution is easy
    Name	DataType	Subtype	Length
    WSHShell	Automation	'Windows Script Host Object Model'.WshShell	
    Varia1	Variant		
    Varia2	Variant		
    
    Varia1 := 0;     //Variant Variable
    Varia2 := TRUE;
    
    WSHShell.run('cmd /c start mailto:My@EMAIL.de',Varia1,Varia2);
    clear(WSHShell);
    

    2. we know also, that the rundll32.exe is very powerfull
    viewtopic.php?f=5&t=12861

    so, we need only a list with all parameters of this dll. --> http://www.winfaq.de/faq_html/Content/t ... ip0564.htm

    and with these infos, we can create a little NAV codesnippes
    Name	DataType	Subtype	Length
    WSHShell	Automation	'Windows Script Host Object Model'.WshShell	
    
    IF ISCLEAR(WSHShell) THEN
      CREATE(WSHShell);
    
    WSHShell.Run('rundll32.exe url.dll,FileProtocolHandler mailto:My@EMAIL.de');
    clear(WSHShell);
    

    Now we have two options to start a mail from NAV.

    Regards
    Do you make it right, it works too!
  • FranklinFranklin Member Posts: 253
    thx garak... i´ll try it like this!
Sign In or Register to comment.