Author Topic: Mail with variables  (Read 1859 times)

niro

  • Guest
Mail with variables
« on: October 27, 2012, 04:12:08 pm »
Hi all, i tryed a lot of times to send mail with "mailto:". if i just use any text it work good, but if i use variables the mail doesnt open. so someone can tell me how exactly i can send this mail with variables please.
Thanks!

Nico91

  • Guest
Re: Mail with variables
« Reply #1 on: October 28, 2012, 08:25:30 am »
What do you mean with "variable"?

niro

  • Guest
Re: Mail with variables
« Reply #2 on: October 28, 2012, 01:04:27 pm »
i mean, if i just put text it work.like this:
Code: [Select]
sprintf(buffer,"anymail@gmail.com?subject=RegisterUserDetails&body=EMAI=anymail%%0A%%0DNAME=anuname");but if i use with variables and the input is in language that other then english the mail doesnt open. like this:
Code: [Select]
sprintf(buffer,"mailto:animail@gmail.com?subject=RegisterUserDetails&body=EMAIL=%s%%0A%%0DNAME=%s",EditText1,EditText2);why this is happen?
« Last Edit: October 28, 2012, 01:08:24 pm by niro »

tim

  • Administrator
  • Hero Member
  • *****
  • Posts: 1595
  • Karma: +11/-1
    • View Profile
    • DragonFireSDK
Re: Mail with variables
« Reply #3 on: November 05, 2012, 10:10:57 am »
Are you making sure that the EditText1 and EditText2 strings are percent encoded?

http://en.wikipedia.org/wiki/Percent-encoding
Tim Sommers
DragonFireSDK Team

niro

  • Guest
Re: Mail with variables
« Reply #4 on: November 07, 2012, 11:09:36 am »
its a variebals how can i encode thiss?