are there any script steps in there that are not server compatible?
No. All are server compatible.
Loop, Send Mail, Goto next record, etc.
You should be able to run the script from the server as you are doing. I would make sure that no firewalls are blocking port 25 or whatever else may be designated as your smtp port.
A quick way to test if emails are being sent sucessfully is to create a quick backup script and in the server admin console, set up it to send you an email. Once you have it setup, run the backup script. If you get the email then most likelyyour port is fine, if not I would definitely start looking to do a port check.
You can try using telnet to that server on the port.
Actuall, I've done that. I have the script send me email when it runs. That's the only email I recieve. Could it be the email address? I entered it manually instead of using the arrow (-->) to pick the address from the contacts. Do you know of any bugs with this script?
The email entered was in the standard format, email@example.com
Thanks for your help,
So after some more testing, I was able to send email by running the script on my PC through the server (it did not use the email client to send email), but when I try and run it as a scheduled task from the server, no luck.
Any additional help would be appreciated.
- I am able to run the send mail script from FMP 10 successfully
- Running the script from the server (scheduled task) fails. I only recieve the system email telling me the script ran.
- Testing the SMTP setting on the server are successful, through the Admin Console.
So, my only conclusion is that there is a problem with the server installation, settings or maybe even a firewall rule that's preventing the script from actulaly sending the email.
Any other suggestions?
Thanks in advance,
Do you see any error messages in the server's log after the script is run? That might also give you a clue.
Nope. The task run is listed in the log, but no error messages are present.
Try creating a brand new script with only the Send Mail script with SMTP. Also leave out the Name field under User Info.
Try also using an account with [Full Access] to run the script.
I'll give that a try and report back. Appreciate your help!
Mr Vodka, that worked! I'm not sure why, but I added a new script with only the send mail function, left the user information (name) blank and tried running from the server, and it worked!! I recieved both emails. The one generated by the send mail script and the system email telling me the scheduled task was run.
I appreciate all your help.
Glad that you got it working. You may have had a server incompatible script step in there. Also there have been issues with having a value in the name field for the user settings.
It was a firewall issue because you were getting the other emails from server. That is why I had you test it earlier.