change name of attachement file in direct e-mail

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
Lens peter
Posts: 3
Joined: Tue Sep 02 2003
Location: Belgium

change name of attachement file in direct e-mail

Post by Lens peter »

We are testing the latest develop version (2.10e) and the only thing that we still can't control is the name of the file which is sent as attachement in an e-mail.
We miss something like SetEmailFileName. Is there maybe another solution ?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

It seems you are using the DLL interface of CDIntf to send pdf files by e-mails while generating them by adding SendMail option to FileNameOptions().
If this is the case than the name of the attached pdf file will be the same as the name of the file created on disk. You can set the name of the pdf file by calling SetDefaultFileName().

Will this help?
Lens peter
Posts: 3
Joined: Tue Sep 02 2003
Location: Belgium

Post by Lens peter »

We are using the interface CDIntf210 and have everything set as we think it should. The file is correctly send but with the name mentioned in the registry under Email Filename = Application - xxx
The registry setting for File Name = c:\print\test.pdf
We tried with succes to create the .pdf file and send it with a calldll('CDIntf210.SendMail...) , but how can I replace the filename of the attachement when i want to email directly.

Thanks anyway for the reply
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hi,

In the SendMail function there is a parameter called FileName this parameter will take two strings separated by a semicolon, the first one is the name of the pdf file as it exists on your system and the string after the semicolon is the name of the pdf file as you want it to appear in the attachement. You will find more information about this issue on page 44 of the Developers' manual "Common Driver Interface 210.pdf".

Hope this helps 8)
Lens peter
Posts: 3
Joined: Tue Sep 02 2003
Location: Belgium

Post by Lens peter »

Hello again,

We tested the Sendmail function and believe that this a very complete and useful function, but our problem is that we need to consider an unknown time delay between the actually creation of a report ( + creation of a pdf file ) and the SendMail function to avoid the activation of the Sendmail where the Pdf isn't yet been created. Your Direct create pdf and Mail was the best solution we've found so far but then we don't seem to be able to rename the attachement file. Is there maybe another way to discuss this ?

Thanks for your reply
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Mainly you need to call the SendMail function after the pdf file is generated.

You can use the Broadcast Messages event of the driver, this will enable you to catch messages when printing starts and when it ends so you will know when the pdf file is generated.

You can discuss this issue with our Technical Support Engineers by sending an e-mail to support@amyuni. com or by calling our support lines, you will find all contact information at: http://www.amyuni.com/en/contact/index.html

Have a nice day.
Post Reply