Sorry to come back so late in the day. I am a little confused.

 If have the following, which is incorrect:
smtp.MailFrom(smtpFrom, Length(smtpFrom));

What would you usually set the second parameter 'Length' to? Why do I need 
to set the length?

Lloydie T

----- Original Message ----- 
From: "Lukas Gebauer" <[EMAIL PROTECTED]>
To: "Ararat Synapse" <[email protected]>
Sent: Friday, March 16, 2007 1:26 PM
Subject: Re: [Synalist] sending emails.


>> I am trying to write some code to send an alert email. I have tried to
>> understand the demo mailcheck, but it is not helping me. Can tou have
>> a look at the following and advise where I can improve it to get it
>> working?
>
>>   smtp.MailFrom(smtpFrom, Length(smtpFrom));
>
> Read the documentation about parameters of MailFrom method. Second
> parameter is not length of smtpfrom!
>
>>   smtp.MailData(Tstrings(smtpMsg));
>
> Typecast of AnsiString to TStrings class? This is really not
> possible! You must create some instance of TStringList and load text
> into this instance.
>
>
>
> -- 
> Lukas Gebauer.
>
> E-mail: [EMAIL PROTECTED]
> http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> synalist-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/synalist-public 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to