need help on sending an email using spark scala
have a look here: https://www.crackinghadoop.com/email-spark-dataset-html-format/
it focuses on sending datasets, but you should be able to strip the example to your need.
View solution in original post
Thanks it works