email Attachment problem

If you are a VFP developer and have any questions about using our products from VFP here is the place to post them.
Post Reply
szucker
Posts: 2
Joined: Mon Nov 24 2003
Contact:

email Attachment problem

Post by szucker »

I am trying to attach a file to my email but cannot seem to do so. I am using ver 2.1 with Wind 2000 and Outlook.

I tried the following:

pdf1 = CreateObject ("CDIntfEx.CDIntfEx")
x=pdf1.SendMail("myemailaddress","","","Test","A PDF has been attached","D:\Drop Here\amyunidemo\mergeletter.pdf",2)


Nothing happends. Returns 11

If I remove the attachment the email sends fine.

any ideas?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Please try to call:

x=pdf1.SendMail("myemailaddress","","","Test","A PDF has been attached","D:\Drop Here\amyunidemo\mergeletter.pdf;test.pdf",2)

This should work.

Have a nice day.
Post Reply