06-13-2023, 06:01 PM
Hi, my program which uses indy 10.6.2.0 was working fine until the beginning of June. It will no longer send emails or ftp. I don't event know where to start. My sending code is below and errors skip the first to Catch attempts. So I have no good idea as to what's up. Any suggestions? This is important for our little non profit.
Any help I can get will be appreciated. I'm out of my depth.
Bob
Code:
try
{
gSMTP->Send(idMsg);
MessageSent = true;
// see text with heading A below
}
catch(const std::runtime_error& re)
{
// speciffic handling for runtime_error
//std::cerr << "Runtime error: " << re.what() << std::endl;
BobMessage("Runtime error: "+String(re.what()));
MessageSent = false;
Close();
}
catch(const std::exception& ex)
{
// speciffic handling for all exceptions extending std::exception, except
// std::runtime_error which is handled explicitly
//std::cerr << "Error occurred: " << ex.what() << std::endl;
BobMessage("Error occurred: "+String(ex.what()));
MessageSent = false;
Close();
}
catch(...)
{
MessageSent = false;
BobMessage("Failure on Send to "+ ToEdit->Text+"\nConnect seemed to work");
Close();
// see text with heading B below
}
Any help I can get will be appreciated. I'm out of my depth.
Bob