Writing “I will give you talaaq”

Q: I would like to know if talaaq given via sms is valid because I was very angry and upset and in so much of doubt and confused and I was influenced by my friend to do it and he told me to just do what he says. So being in that state of mind I was not thinking properly so I wrote “I will give you talaaq (islamic divorce) and sent it and after 2 days later he said must do the same send another sms and again 2 days later another. He didn’t explain about talaaq to me and about the iddat period and the time to reconcile between each period. I got different answers because people say sms is not valid and if influenced by someone to do it then it is not valid. So I would appreciate if you could shed some light on this topic. We want to reconcile and work things out but not sure where we stand because there is a lot going on.

A: If you wrote “I will give you talaaq” then this does not constitute talaaq.