Wrong argument type on function sendsmtpmail

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
mhermiz
Posts: 4
Joined: Mon Nov 08 2004

Wrong argument type on function sendsmtpmail

Post by mhermiz »

I get this error only when using this function (sendsmtpmail). The email is sent however is still get the error message below:

Specified argument type differs from required argument type at runtime in DLL function sendsmtpmail.
(invalid stack pointer on return from function call) at line 35 in function of_send_email of object nvo_pdf_printer.
---------------------------

SendMail function works great! :D
I think the problem is that I'm not declaring the function incorrectly in my local external declaration. Here is how I am declaring it in my PB9 app:
Function long SendSmtpMail(String szHostname, long lPort, String szFrom, String Toadd, String CCadd, String BCCadd, String Subject, String as_Message, String FileNames, Long Options) library "cdintf210.dll"

Here is how I am calling it:
ll_rc = SendSmtpMail ( ls_SmtpHostName, long(ls_SmtpPort), astr_emailattribute.s_from, astr_emailattribute.s_to, astr_emailattribute.s_cc, astr_emailattribute.s_bcc, astr_emailattribute.s_subject, astr_emailattribute.s_message, astr_emailattribute.s_document_path+';'+astr_emailattribute.s_document_name, 0 )

I have gone through to make sure each argument is correct however I'm questioning the declaration and therefore the documentation the version that I have. I'm running 2.10
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Please set the FileName parameter in the following form:

"C:\Temp\Test.pdf;Document1.pdf"

C:\Temp\Test.pdf is the file name and path of your document, Document1.pdf is the name you want it to appear in the e-mail.

Hope this helps.
mhermiz
Posts: 4
Joined: Mon Nov 08 2004

Wrong argument type on function sendsmtpmail

Post by mhermiz »

No that is not the problem. I have tried this. I understand what that parameter means. I think there is something deeper here.
Remember it sending the email. The only problem is the error message. After I click ok, it sends it. bizarre!!
Have the arguments changed at all in this dll???
Post Reply