I need to send an e-mail and an MS Word file as an attachement using OLE.<br>
I can get it to work fine with the exception of adding the attachement.<br>
The part of the procedure for the attachement is:<br>
<br>
<br>
msg_attch := OLE2.GET_OBJ_PROPERTY(message1, 'Attachments');<br>
attachment := OLE2.INVOKE_OBJ(msg_attch, 'add') ;<br>
OLE2.SET_PROPERTY(attachment, 'name', Attch); <br>
OLE2.SET_PROPERTY(attachment, 'position', 0);<br>
OLE2.SET_PROPERTY(attachment, 'type', 1); <br>
OLE2.SET_PROPERTY(attachment, 'source', Attch); <br>
args := OLE2.CREATE_ARGLIST;<br>
OLE2.ADD_ARG(args, Attch);<br>
OLE2.INVOKE(attachment, 'ReadFromFile', args);<br>
OLE2.DESTROY_ARGLIST(args);<br>
<br>
But I am uncertain about the meaning of the parametters being passed to outlook.<br>
Thanks for being helpful.
I can get it to work fine with the exception of adding the attachement.<br>
The part of the procedure for the attachement is:<br>
<br>
<br>
msg_attch := OLE2.GET_OBJ_PROPERTY(message1, 'Attachments');<br>
attachment := OLE2.INVOKE_OBJ(msg_attch, 'add') ;<br>
OLE2.SET_PROPERTY(attachment, 'name', Attch); <br>
OLE2.SET_PROPERTY(attachment, 'position', 0);<br>
OLE2.SET_PROPERTY(attachment, 'type', 1); <br>
OLE2.SET_PROPERTY(attachment, 'source', Attch); <br>
args := OLE2.CREATE_ARGLIST;<br>
OLE2.ADD_ARG(args, Attch);<br>
OLE2.INVOKE(attachment, 'ReadFromFile', args);<br>
OLE2.DESTROY_ARGLIST(args);<br>
<br>
But I am uncertain about the meaning of the parametters being passed to outlook.<br>
Thanks for being helpful.