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
zaksoft
Posts: 66
Joined: Fri Feb 20 2004

SendSmtpMail

Post by zaksoft »

Version 3.03

It is possible to specify as parameter 3 ( FROM - ie Sender ) not only the eMail address but also the name ( ie something like "Name Surname" <name.surname@isv.com> ) ?

TIA
Davide Zaccanti
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Re: SendSmtpMail

Post by Joan »

Hello,

Yes you can use "Name Surname <name.surname@isv.com>" in the From field.
Custom Brand the Amyuni PDF Printer Driver http://www.amyuni.com/en/developer/branding/index.html

Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
zaksoft
Posts: 66
Joined: Fri Feb 20 2004

Re: SendSmtpMail

Post by zaksoft »

It doesnt work, even removing "" from name as you suggest I alway get return code 14.. (even if I only put <name.surname@isv.com> , only a plain email address seem to work)

P.S. can you give more information also of retCode meanings (I suppose 13=network error - happens when firewall i blocking - 14 = malformed eMail)

P.S.2 can we use HTML data for szMessage ?

I'm using C++ not maged code in VS2008 SP1 and Amyuni suite 3.03
Davide Zaccanti
David
Amyuni Team
Posts: 89
Joined: Mon Dec 18 2006

Re: SendSmtpMail

Post by David »

Hello

Specifying an friendly name is a feature that is not implemented in the SendSmtpMail function. This is a feature that is scheduled for inclusion in future versions of the product. Unfortunately, it is NOT implemented in the current 3.03 product.

The SendSmtpMail function returns 0 if successful or an SMTP specific error code if an error occurs when sending the email. Below is a list of some of the most common SMTP return codes.

ERR_SUCCESS 0
ERR_INITIALIZE_INITIALIZED 10
ERR_INITIALIZE_WINSOCKVERSION 11
ERR_SHUTDOWN 12
ERR_CONNECTING 13
ERR_HANDSHAKING 14
ERR_RECIPIENT 15
ERR_DATA 16
ERR_QUIT 17
ERR_NOTFOUND 18
ERR_INSUFFICIENTRESOURCES 20

The SendSmtpMail function can only send the message as plain text. It cannot send the data as HTML.

Hope that helps?

David
Amyuni Custom Development
Do you need a specific PDF solution? Are you looking for expertise that will enable you to start or complete a PDF integration project?
http://www.amyuni.com/en/company/services.php
Post Reply