Sorry buddy, I'm not sure how to fix that. I'm still not quite clear as how you are sending email. If you are using a service like gmail, shouldn't the error pop-up inside the service itself?
Anyways, hopefully someone else can shed some light on this for you. Best of luck.