File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -224,15 +224,17 @@ def send_notification_email(
224224
225225 # Ensure the sender and server are configured from Prefs
226226 if not sender :
227- log .info ("Sender email is not configured. Please check IJ_Prefs.txt." )
227+ log .info ("[.imcf.sender_email] is not configured in '~/.imagej/ IJ_Prefs.txt' ." )
228228 return
229229 if not server :
230- log .info ("SMTP server is not configured. Please check IJ_Prefs.txt." )
230+ log .info ("[.imcf.smtpserver] is not configured in '~/.imagej/ IJ_Prefs.txt' ." )
231231 return
232232
233+ log .debug ("Using SMTP server [%s]." , server )
234+
233235 # Ensure the recipient is provided
234236 if not recipient .strip ():
235- log .info ("Recipient email is required." )
237+ log .info ("Recipient email is required, not sending email notification ." )
236238 return
237239
238240 # Form the email subject and body
@@ -261,7 +263,7 @@ def send_notification_email(
261263 try :
262264 smtpObj = smtplib .SMTP (server )
263265 smtpObj .sendmail (sender , recipient , message )
264- log .debug ("Successfully sent email" )
266+ log .debug ("Successfully sent email to <%s>." , recipient )
265267 except smtplib .SMTPException as err :
266268 log .warning ("Error: Unable to send email: %s" , err )
267269 return
You can’t perform that action at this time.
0 commit comments