hello rakesh -
thanks for the help. It worked for inline command in search.
below command worked and mail was received.
index=main | head 5 | sendemail to=xxxx@gmail.com server=smtp.gmail.com:465 subject="Here is an email notification" message="This is an example message" sendresults=true inline=true format=raw use_ssl=1
but scheduled alert is still taking the mail server incorrectly. i have tried updating the settings in emails settings and restarted the splunk. also checked the alert_actions.conf and it is set fine.
python log for scheduled alert:
2016-01-31 01:13:10,979 CST ERROR sendemail:115 - Sending email. subject="Splunk Alert: Server error", results_link="http://Boopal-MindPalace:8000/app/search/@go?sid=scheduler__admin__search__RMD5d4bfbc9a7af21f58_at_1454224380_7", recipients="[u's.boopal@xxxx']", server="mail.mydomain.com"
2016-01-31 01:13:10,980 CST ERROR sendemail:378 - [Errno 10061] No connection could be made because the target machine actively refused it while sending mail to: xxxx@gmail.com
... View more