Since Splunk sends email message as plain text, it can not have HTML content. However, if your email client has Auto Formatting turned on (for example in Microsoft Outlook Desktop App with Autoformat option turned on), then you can directly say
your base search | sendemail content_type=html message="Splunk Alert \n Test Link: http:\\localhost:8000 .\n My Test Alert from email: firstname.lastname@example.org ." ...
PS: Outlook Web App I had to change content_type from html to plain, so that the Web App auto formats the content and identify @ for email and http:// for hyperlink.
Having said this, it is better to modify sendemail.py for custom formatting of email message.
Hi @niketnilay ,
Could you please suggest me what are the changes required in sendemail.py. If we click on "Visit Dashboard" it will open dashboard, like we have "View results " in alert mail email which redirect to result of that particular alert.