Problem sending mail wirh PDF Converter and VB6

If you are a VB developer and have questions about using our products from VB, here is the place to post them.
Post Reply
avay
Posts: 11
Joined: Sun Aug 01 2004

Problem sending mail wirh PDF Converter and VB6

Post by avay »

I am checking PDF Converter for Developers in order to buy it.

After I created a PDF file from my VB Application report,
I want to send it by mail.

I tried the two methods for sending mail and have some problems.

With the method: SendSmtpMail , I succeed to send a file with Outlook Express but not with Outlook 2003.

Are there any parameters I should check out to solve this problem?
Is there a way to know the user's server address and server port, without letting the user enter these parameters manually?


With the method: SendMail, I didn't succeed neither with Outlook Express nor with Outllok 2003.

Are there any parameters, I should set before sending the mail?

Is someone can give a sample code to show the right way of sending mail with this method?

Regards
Avi Cohen
A.D.V. Ltd.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Please open MS Word on your system and use the File -> Send To -> Mail recepient function. Will this work with Outlook? and Outlook 2003?

I need this information to check why the SendMail function is not working.

Thanks.
avay
Posts: 11
Joined: Sun Aug 01 2004

Post by avay »

I tries to send mail to recipent from MS-WORD and it works fine with both Outlook Express and Outlook 2003 as the user mail program.
when i used PDF Converter with the method: SendMail with Outlook Express - it works fine
(return code = 0), but when I used it with Outlook 2003 - it returned
a return code 11 and didn't send the mail with the attachment.
I also waiting for your answer regarding the method: SendSmptMail.

regrads
Avi Cohen
A.D.V. Ltd.
Joan wrote:Hello,

Please open MS Word on your system and use the File -> Send To -> Mail recepient function. Will this work with Outlook? and Outlook 2003?

I need this information to check why the SendMail function is not working.

Thanks.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

The error code 11 (MAPI_E_ATTACHMENT_NOT_FOUND) means attachment is not found.
That means the file whose filename is supplied to the SendMail function does not exist. Maybe deleted or the path is not correct.
Post Reply