1 - Some mail servers do not reply to ICMP messages, so ping is meaningless.
2 - A successful ping doesn't mean that the email will be sent successfully.

So just send the email and handle the exception if it isn't sent.