Hi,
I have a configuration document where I had an attachment of “Bio Form”.
On some other form, on submit, it is required to send an e-mail with that “bio-form” attachment as an attachment with the mail.
Please help me on this.
Regards
Rinkal Keswani
Subject: Broad steps
Get a handle to your configuration document and use the GetAttachment method to get a handle to the attachment. Use the ExtractFile method to save it to disk. Compose a new memo, create a new rich text item field called Body, use the EmbedObject method to attach the file you saved previously. Use Kill to clean up afterwards.
Subject: Problem Solved
If (docconfig.HasItem("$File")) Then Call docconfig.CopyAllItems(doctmp)
ForAll o In doctmp.Items
If o.name <> "$FILE" Then
doctmp.removeitem(o.name)
End If
End ForAll
Call doctmp.CopyAllItems(mdoc)
End If