Are you running the ISE and the scheduled task on the same machine?
Are you the admin of the mail server you're using as the SMTP server? Are there restrictions in place to allow only certain IP addresses to use the SMTP server? Is the IP address "x.x.x.x" in the SMTP server's "5.7.1" status response one of the allowed (or perhaps the restricted) list of addresses?