Thank you SurfTim for checking the code.
I tried it again but it is still showing me the same message. I am making all the changes as stated in the code.(Mac, Ip, subnet, gateway, public ip, email server, email addresses)
my ethernet shield is connected with a cisco DPC3825 modem, Do you think it has to be with the type of modem i am using ?