Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity freezes on email...

Discussion in 'Scripting' started by Epictickle, Apr 21, 2014.

  1. Epictickle

    Epictickle

    Joined:
    Aug 12, 2012
    Posts:
    431
    So, I have a simple GUI button set up that will fire a method for sending an email through the game client. I want this for sending log files of my game to my companies support email... My problem here is that whenever I press the button it straight up freezes the game.. I never get an email... My buddies antivirus tells him that something in SSL is going on, so that's good... But the rest is just unknown..

    I'm using the example in the following link:
    http://answers.unity3d.com/questions/433283/how-to-send-email-with-c.html

    I don't want to use the mailto: protocol simply because I don't want the user to have to exit or minimize the game. I would rather them send it directly from the client.. But the application freezes HARD..

    Why is this?
     
  2. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    Probably some script has got into an infinite loop.
     
  3. Epictickle

    Epictickle

    Joined:
    Aug 12, 2012
    Posts:
    431
    I figured it out, and yes it was an infinite loop. I had the smtp port for my email service wrong and it was stuck trying to send an smtp request to a closed port xP