How to send a attachment in mail

Hi all, I am sending a mail through lotus script and I want to send some attachment which are in Hard Disk (C:). How I will Send a attachment.

Please guide me

Subject: How to send a attachment in mail

Kindly understand the following code and use it

with some modifications

Dim richTextatch As New NotesRichTextItem(ccMailDoc, “Bodyforattach”)

filePath =    ' set the path to the file

temp=richTextatch.EmbedObject ( EMBED_ATTACHMENT, "", FilePath )

take firther help from notesrichtextitem class and its embed object method

Subject: How to send a attachment in mail

Hi,

You can use the “NotesRichTextitem” class for sending the attachment in mail.,

go to help and check for

"Working with attachments and embedded objects in LotusScript classes "

You will get some idea.

Subject: RE: How to send a attachment in mail

Hi Manu & Krishnan, Thx for the response. Its working and attachment attach in the mail. But How can i send multiple attachment.

filePath = “c:" + username +”" & username & filename & ctr & “.” & ext

Set object = bodyitem.EmbedObject ( EMBED_ATTACHMENT, “”, fileonpdf)

===============

How I will Attach Multiple Files

PAwan