December 10, 201015 yr I am trying to use the send emial with attachment script and just get a returned value of "ERROR". I am able to run the script using the scriptmaster file to successfully send email. I also run the RegisterGroovy step right before this step and get a result of "1" - which I think means it worked. Here is my code: Set Variable[$test; Value:SendEmailWithAuthentication( "[email protected]" ; " [email protected]" ; "Send Mail Test" ; "Test Body" ; "" ; "smtp.******.com" ;" wim@*****.com" ;"*****" )] Any obviuos mistakes? I checked SMLastError and its says javax.mail.AuthenticationFailedException but I have no idea what that means.
December 10, 201015 yr You're getting an "Authentication Failed" error, which means that there is a problem with your username, password, or you need to be using SSL and you aren't.
December 10, 201015 yr Author Thanks! Turned out I had an extra space in the username field....stupid mistake.
Create an account or sign in to comment