I want to send a mail via Groovy. I tried with the mail command in mac and its working fine.
This is the command I'm using :
echo $message | mail -s "subject" [email protected]
Where message is a gstring :
def message = """ Hi
Test mail """
The problem I'm facing is; when the mail is delivered the message is coming in a single line rather than the way it stored.
Where I'm making the mistake??