> 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

Reply via email to