File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -671,7 +671,7 @@ def smtp_send_mail(self, email):
671
671
@return: dictionary with response message
672
672
"""
673
673
logging .info ("Function call: smtp_send_mail" )
674
- if not email .get ('html' ) or not email .get ('text' ):
674
+ if ( not email .get ('html' ) or not email .get ('text' )) and not email . get ( 'template ' ):
675
675
return self .__handle_error ('Seems we have empty body' )
676
676
elif not email .get ('subject' ):
677
677
return self .__handle_error ('Seems we have empty subject' )
@@ -686,7 +686,7 @@ def smtp_send_mail_with_template(self, email):
686
686
@param email: string valid email address. We will send an email message to the specified email address with a verification link.
687
687
@return: dictionary with response message
688
688
"""
689
- logging .info ("Function call: smtp_send_mail_template " )
689
+ logging .info ("Function call: smtp_send_mail_with_template " )
690
690
if not email .get ('template' ):
691
691
return self .__handle_error ('Seems we have empty template' )
692
692
elif not email .get ('template' ).get ('id' ):
You can’t perform that action at this time.
0 commit comments