Real Software Forums
http://forums.realsoftware.com/

SMTPSecureSocket question
http://forums.realsoftware.com/viewtopic.php?f=2&t=46436
Page 1 of 1

Author:  RobertLob [ Fri Jan 04, 2013 1:02 pm ]
Post subject:  SMTPSecureSocket question

I am using an SMTPSecureSocket to send a que of email messages. I understand that the .MailSent event is supposed to fire when the que is empty and all the messages have been sent, but I have no clue what to put in the .MailSent event to get an information message to appear in a static text control on my app's window saying "I'm done sending" or something similar. The LR is pretty bleak on this. It only tells me what it does, but not how to take advantage of it. (Using RB 2010.2.1 on Win XP)

I've tried putting the following in the SMTPSecureSocket.MailSent event with no response, even though all of the emails are sent and received properly:

wEmail.stInstructions.TextColor = RGB(255,0,0)
wEmail.stInstructions.text= str(messagesSent)+" Reminders Successfully emailed; "+str(failedToSend)+" Messages failed."

Author:  RobertLob [ Sat Jan 05, 2013 9:21 am ]
Post subject:  Re: SMTPSecureSocket question

Ignore. Problem solved. Working now with same code. Not sure why.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/