 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
adboy
Joined: 15 Feb 2014 Posts: 3 Country: United States |
|
Error Configuring and Sending Emails |
|
Hello All,
I am getting the following error when trying to use MailSend command to a local smtp server.
"An error occurred while executing automation script Line 4: The mail server doesn't like the sender name, have you set your mail address correctly?"
I have tried the same credentials using Outlook Express and my own java test class and it works.
The command is
MailSend( "downloads@abc.com", "mypassword123", "user@yahoo.com", "Test Email to from 24x7", "Test Email from OPS01 24x7 scheduler")
I do have the SMTP Server and SMTP Sender address set correctly in the Options popup window.
I have the above commands working in another installation of 24x7 but the difference is that that account does not have a password.
Is there something that I need to do in order to send out emails using an account that requires both username and password for authentication ?
Any help is greatly appreciated.
Thanks,
Adi
|
|
Sat Feb 15, 2014 1:03 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Can you please try the same from a JavaScript job?
mail.Send( "downloads@abc.com", "mypassword123", "user@yahoo.com", "Test Email to from 24x7", "Test Email from OPS01 24x7 scheduler") ;
What error message if any do you get in a JavaScript job?
|
|
Sat Feb 15, 2014 11:40 am |
|
 |
adboy
Joined: 15 Feb 2014 Posts: 3 Country: United States |
|
|
|
Thank you SysOp for your reply.
I tried Mail.Send in a Java Script job but keep getting this error
ERROR: An error occurred while executing automation script: TypeError: Send is not a function.
|
|
Sun Feb 16, 2014 12:30 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Apologies, that should have been b]Mail.send[/b] not mail.Send - JavaSCript is case sensitive
|
|
Mon Feb 17, 2014 6:55 pm |
|
 |
adboy
Joined: 15 Feb 2014 Posts: 3 Country: United States |
|
|
|
I changed to use Mail.send but still no luck. The error is
"Job completed with exit code 1. This exit code does not satisfy job exit code condition. Job failed."
We have got the problem fixed on our end by changing the local SMTP configuration to accept mails without the password. This change works with both the old version of 24x7 and the newer version. It looks like there is a problem with 24x7 in dealing with authentication.
Thanks for the help.
|
|
Tue Feb 18, 2014 10:17 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|