Skip to content

Commit

Permalink
be: md
Browse files Browse the repository at this point in the history
  • Loading branch information
getrebuild committed Sep 1, 2023
1 parent 5a5efd7 commit 8443eb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion @rbv
Submodule @rbv updated from 3b0f74 to 180069
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import com.rebuild.core.support.i18n.Language;
import com.rebuild.core.support.integration.SMSender;
import com.rebuild.utils.CommonsUtils;
import com.rebuild.utils.MarkdownUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;

Expand Down Expand Up @@ -188,7 +189,8 @@ private Set<Object> sendToAccounts(OperatingContext operatingContext) {
}

if (msgType == MTYPE_MAIL && RegexUtils.isEMail(mobileOrEmail)) {
SMSender.sendMailAsync(mobileOrEmail, message[1], message[0]);
String mdHtml = MarkdownUtils.render(message[0]);
SMSender.sendMailAsync(mobileOrEmail, message[1], mdHtml);
send.add(mobileOrEmail);
}
}
Expand Down

0 comments on commit 8443eb1

Please sign in to comment.