Automation Outlook

bartwyckmansbartwyckmans Member Posts: 39
edited 2003-10-21 in Navision Attain
Anyone know how to send an e-mail with multiple attachments?

Comments

  • eromeineromein Member Posts: 589
    Check download section.

    http://www.mibuso.com/dlinfo.asp?FileID=112

    and try to search the forum with keyword "Mail". I found quite a lot.

    Good Luck!
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • LG_HellströmLG_Hellström Member Posts: 13
    Maybe this?
    CREATE(OutLook);
    olMailItem := OutLook.CreateItem(0);
    olMailItem."To"('lars-goran.hellstrom@navigera.com');
    olMailItem.Subject('VM i OS');
    olAttachments := olMailItem.Attachments();
    OLAttachments.Add('c:\ocr14.txt');
    OLAttachments.Add('c:\ocr15.txt');
    OLAttachments.Add('c:\ocr18.txt');
    olMailItem.Display(TRUE);
    CLEARALL();
    

    where
    Name	DataType	Subtype	Length
    OutLook	Automation	'Microsoft Outlook 10.0 Object Library'.Application	
    olItems	Automation	'Microsoft Outlook 10.0 Object Library'.Items	
    olMailItem	Automation	'Microsoft Outlook 10.0 Object Library'.MailItem	
    olAttachments	Automation	'Microsoft Outlook 10.0 Object Library'.Attachments	
    
    Did I commit today?
Sign In or Register to comment.