Re: [twsocket] TSmtpCli - How do I process multipleemailsusingthiscomponent?

2008-07-29 Thread SoftTech
Hi Francois,

You say that the OnRequestDone event is the correct place to process mass 
e-mails using the TSmtpCli component and then direct me towards the v5 ICS 
MailRob source.  I have looked at this source and there is no OnRequestDone 
source, but I do see that this source uses a TSyncSmtpCli component and that 
SendButtonClick event source contains what looks to be a way to send 
multiple emails using SmtpClient.OpenSync; instead of SmtpClient.Open;

So can I gather that I should be using a TSyncSmtpCli component (using the 
SendButtonClick event source as a guide) instead of the TSmtpCli component 
using some form of coding in the onRequestDone event?

I await you guidance.

Thanks,
Mike

- Original Message - 
From: Francois Piette [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Tuesday, July 29, 2008 2:02 AM
Subject: Re: [twsocket] TSmtpCli - How do I process 
multipleemailsusingthiscomponent?


 Thanks for your reply.  I have looked at the article and am guessing the
 best place to loop thru a database to send out mass e-mail would be in 
 the
 OnRequestDone event.  Would that be correct?

 Yes, it is.

 Does anyone have any code they
 can share of this event to show how they processed records in a database?

 Have a look at ICS-V5 MailRob demo program. It is very old and quite
 unknown but contains useful code for you.

 --
 [EMAIL PROTECTED]
 Author of ICS (Internet Component Suite, freeware)
 Author of MidWare (Multi-tier framework, freeware)
 http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TSmtpCli - How do I process multipleemailsusingthiscomponent?

2008-07-29 Thread Fredrik Larsson
Mike,

If you read my posting you will see how to implement the RequestDone event.
It's also explained in the wiki at
http://wiki.overbyte.be/wiki/index.php/TSmtpCli.OnRequestDone

There is a line of code where you re-populate the fields (subject, recips
et.c.) and this is where you would read from the database.
At the wiki it's explained as 
generateSingleEmail; //a procedure i use to create my e-mail

What happens after the mailserver has sent you that it has received data you
check if you have any more mail to send and then do a mail from again. If
not then you do a quit.

I use the normal SmtpCli.

Regards, Fredrik.

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be