I have a script which is written for some reporting purpose, we store the data in JIRA database and while sending the email we fetch the data from the table and send it..
For example
def dataRecord= sql.rows("select userName, userEmail from jira.UserData where userId= ${UserId}")
String emailId= dataRecord.userEmail
I am able to fetch the required data from above.
String sendAddress = emailId+otherSendersEmailId
When i am trying to send the email with the above data, i get the below exception, i think the String return value with [] is the problem, but i am not sure how to solved this, could someone please help me ??
com.atlassian.mail.MailException: javax.mail.internet.AddressException: Local address contains illegal character in string ``[abc@gmail.com]''