hi all,
this new topic on "send email" activity because i 've found the reason why it crash :
-- 31/07/2019 19:41:19: Extraction_Cabinet_Full.log: Setting up SMTP email
-- 31/07/2019 19:41:19: Extraction_Cabinet_Full.log: Email Attachment: D:\Toad_Log\Extraction_Cabinet_Full.log
-- 31/07/2019 19:41:19: Extraction_Cabinet_Full.log: Smtp Server: smtp.f*****.com
-- 31/07/2019 19:41:20: Extraction_Cabinet_Full.log: Smtp Port: 25
-- 31/07/2019 19:41:20: Extraction_Cabinet_Full.log: Begin email send
-- 31/07/2019 19:41:20: Extraction_Cabinet_Full.log: IOException occurred. InnerException message follows: Could not find a part of the path 'C:\Users\admintask_toad\AppData\Roaming\Quest Software\Toad Data Point 5.0\Automation\MailBee_637001988802551651.txt'.
-- 31/07/2019 19:41:21: Extraction_Cabinet_Full.log: Could not find a part of the path 'C:\Users\admintask_toad\AppData\Roaming\Quest Software\Toad Data Point 5.0\Automation\MailBee_637001988802551651.txt'.
-- 31/07/2019 19:41:21: Extraction_Cabinet_Full.log: MailBee.MailBeeIOException - IOException occurred. InnerException message follows: Could not find a part of the path 'C:\Users\admintask_toad\AppData\Roaming\Quest Software\Toad Data Point 5.0\Automation\MailBee_637001988802551651.txt'.
at MailBee.Logger.b(Boolean A_0)
at MailBee.Logger.b(String A_0, String A_1, LogMessageType A_2, bc A_3)
at a.d.f.a(MailMessage A_0, String A_1, EmailAddressCollection A_2, DeliveryNotificationOptions A_3, Smtp8bitDataConversion A_4, Boolean A_5, Boolean A_6, Boolean A_7, SendFailureThreshold A_8, Int32 A_9, ae A_10, Boolean A_11, k A_12, String A_13, a A_14)
at a.d.n.b(String A_0, EmailAddressCollection A_1)
at a.d.n.a(Boolean A_0, String A_1, EmailAddressCollection A_2)
at Quest.Toad.Workflow.Activities.SendEmailActivity.SendMail(SmtpServer server, MailMessage email)
Inner exception:
stem.IO.DirectoryNotFoundException - **Could not find a part of the path 'C:\Users\admintask_toad\AppData\Roaming\Quest Software\Toad Data Point 5.0\Automation\MailBee_637001988802551651.txt'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)
at MailBee.Logger.b(Boolean A_0)
-- 31/07/2019 19:41:21: Extraction_Cabinet_Full.log: ExceptionEmail - There were errors encountered sending the message. See the log file for details.
To schedule scripts, for security reason, i must use a specific batch user, not the one who made Toad install.
After manually create "C:\Users\admintask_toad\AppData\Roaming\Quest Software\Toad Data Point 5.0\Automation" problem was solved...
Is it possible, for next release, to be able to set working temp directories for activities ?
Regards
Franck