..I don't remember what I did but it's working fine now.
Code:
SEROUT2 PORTD.6, 84,["AT+CMGS=",34,str TELNO\11,34,13,10]