Sending a string via email from Unity?

Is there a way to send a predefined message from within Unity via email? What I want to do is send the information that is defined and stored as a string within Unity to a email account as soon as the game has reached the end. This is so that I can have records of the metrics I want to record. I know you can send a email from within Unity because the following link has something on this matter:

Can you please provide me with sample code in Javascript to explain your solution to my problem. Thank you for your help.

It’s not Javascript but i hope these links helps:

and

Oops! Ok, just looked online and noticed I needed to include the ‘using System.Net.Mail;’ and the ‘using System.Net’.

Nevermind!

However I am facing a new issue now. The game now takes ages to startup, and eventually comes up with an error saying:


SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP, Boolean requireSocketPolicy)
System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP)
System.Net.Sockets.TcpClient.Connect (System.Net.IPEndPoint remote_end_point)
System.Net.Sockets.TcpClient.Connect (System.Net.IPAddress ipAddresses, Int32 port)
Rethrow as SmtpException: Message could not be sent.
System.Net.Mail.SmtpClient.Send (System.Net.Mail.MailMessage message)
Email.SendEmail () (at Assets/Standard Assets/Email.cs:48)


any ideas?