Hi all,
first of all, sorry for my bad english.
yes I'm using a non-standard class, I wrote it on my first message in this topic.
I'm using LKM version dated 02 june 2005.
I don't know if I can post entire code here because the source is not mine and (sorry) I don't remember where I downloaded it from.
Anyway here is the header of the class:
- Code: Select all Expand view RUN
// FiveWin Internet outgoing mail Class
// Modified by Luis Krause July 5, 2001; February 26, 2002; October 7, 2002; November 5, 2002;
// October 9, 2003; June 1, 2005
// with code from Alex Shaft, Byron Hopp, Andrew Ross (PipleLine Solutions),
// Frank Demont, Peter Kohler, Rafael Gaona, Joaquim Ferrer,
// Jos‚ Lal¡n, Ray Alich (IBTC), Ignacio Vizca¡no Tapia and others
// Special thanks to Jorge Mason for the fix to GetHostByAddress() that was GPFing on some servers
// Simple Authentication and Security Layer [SASL]
// This class only supports LOGIN type for authentication.
// TODO: Add PLAIN and MD5 methods.
// PLAIN is the same as LOGIN but it doesn't use base64, i.e.:
// AUTH LOGIN -> USER cMimeEnc( ::cUser )
// AUTH PLAIN -> USER ::cUser
// See rfc2554.txt for more details about ESMTP
// [jlalin]
#include "FiveWin.ch"
#ifndef __CLIPPER__
#xtranslate Memory(<n>) => // only needed with Clipper, not [x]Harbour
#endif
// different session status
#define ST_INIT 0
#define ST_CONNECTED 1
#define ST_RESET 2
#define ST_MAILFROM 3
#define ST_RCPTTO 4
#define ST_DATA 5
#define ST_SENT 6
#define ST_QUIT 7
#define ST_DONE 8
#define ST_ERROR 9
// Authentication states
#define ST_AUTH0 10 // IBTC
#define ST_AUTH 11 // [jlalin]
#define ST_USER 12 // [jlalin]
#define ST_PASS 13 // [jlalin]
// Last defined state
#define ST_LAST ST_PASS // [jlalin]
#define MSG_CAPTION "SMTP Services"
as yu can see the constants are defined for this class only and there is no typo here as ST_AUTH0 ends with a 'zero'.
In the first piece of code in my previous messages, I added the code between the lines beginning with the remarks "add" ending with "end r.c."
In the second piece I just removed:
/* "Content-Transfer-Encoding: quoted-printable" + CRLF +*/