Cisco IOS Embedded Event Manager (EEM)

thanks for this useful article ,
I tried to configure in GNS3 here is my steps :
1- I connected R1 to internet and it can access to smtp server
2- here is my configuration :

event manager applet TEST22 
 event syslog pattern "Interface Ethernet0/1, changed state to down"
 action 1.0 mail server "smtp_server.ccnp.iq" to "XXX@YYY.iq" from "R2@YYY.iq" subject "Interface IS DOWN" body "Please try to fix it ASAP"
!

3- I got this error "

*Mar  1 01:11:23.571: fh_policy_send_mail(): smtp connect attempt: 5
R1#
*Mar  1 01:11:28.575: smtp_connect connect fail: 260
*Mar  1 01:11:28.579: fh_policy_send_mail(): fh_policy_smtp_connect failed at attempt 5
R1#
*Mar  1 01:11:28.579: %HA_EM-3-FMPD_SMTP: Error occured when sending mail to SMTP server: XXX@YYY.iq : error in connecting to SMTP server
*Mar  1 01:11:28.579: %HA_EM-3-FMPD_ERROR: Error executing applet TEST22 statement 1.0