sanjib
2006-08-19 06:36:02 UTC
dear friend
I made a form to send email from my application, in the send command button
i wrote the following code
o=createobject("outlook.application")
oitem=o.createitem(0)
oitem.subject="Proforma Invoice"
oitem.to= lctoadd
** To send copy to addresses..
oItem.cc = lcccadd
oitem.body="This mail was sent from invent"
** To attach a file
oitem.Attachments.Add(thisform.txtfile1.value)
** to attach one more file.. and you can repeat this.
oitem.Attachments.Add(thisform.txtfile2.value)
** to send it
oitem.send
** to clear up
o=.null.
but I am getting error
when i click on send it will ask for ( choose profile with window)
and asking for profile name.
if i select any of them
then it will give the following programm error
OLE|Dispatch exception code 4096 from microsoft path does not exist. make
sure thepath is correct.
Then if i say ignore it will send the mail of its own but the receipent get
it in his delete folder.
I am using outlook express 6 and win-xp.
kindly help me how to sort out the problem and how to choose the defaut
profile in my code.
thanks in advance
I made a form to send email from my application, in the send command button
i wrote the following code
o=createobject("outlook.application")
oitem=o.createitem(0)
oitem.subject="Proforma Invoice"
oitem.to= lctoadd
** To send copy to addresses..
oItem.cc = lcccadd
oitem.body="This mail was sent from invent"
** To attach a file
oitem.Attachments.Add(thisform.txtfile1.value)
** to attach one more file.. and you can repeat this.
oitem.Attachments.Add(thisform.txtfile2.value)
** to send it
oitem.send
** to clear up
o=.null.
but I am getting error
when i click on send it will ask for ( choose profile with window)
and asking for profile name.
if i select any of them
then it will give the following programm error
OLE|Dispatch exception code 4096 from microsoft path does not exist. make
sure thepath is correct.
Then if i say ignore it will send the mail of its own but the receipent get
it in his delete folder.
I am using outlook express 6 and win-xp.
kindly help me how to sort out the problem and how to choose the defaut
profile in my code.
thanks in advance
--
sanjib
sanjib