Aside from enabling ssl in your configuration, you also need to set the correct port, which is not 25. It's 587.
<smtp deliveryMethod="Network" from="someaccount@gmail.com">
<network
host="smtp.gmail.com"
port="587"
enableSsl="true"
userName="someaccount@gmail.com"
password="somepassword"
defaultCredentials="false"/>
</smtp>