sender e-mail address

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

sender e-mail address

Post by francof » Wed May 27, 2015 6:13 pm

Hi all,
there is a manner by code to see the e-mail address, used like sender address, before to send e-mail?

best regards
franco

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: sender e-mail address

Post by Klaus » Wed May 27, 2015 9:59 pm

Buonasera franco,

sorry, what exactly do you mean?
Are you using "revmail..."?


Best

Klaus

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Re: sender e-mail address

Post by francof » Thu May 28, 2015 6:43 am

Ciao Klaus,

I try to explain better: at present now I not want to send mails.
I only want to verify the address of the account created on the device.

best
franco

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: sender e-mail address

Post by Klaus » Thu May 28, 2015 3:50 pm

Hi franco,

OK, get it, but I'm afraid you cannot access any of the iOS settings from within your LC app.
At least not with the built-in means. Maybe with an external, but no idea if something
like this exists.

If it does, you may find it here: http://mergext.com


Best

Klaus

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Re: sender e-mail address

Post by francof » Thu May 28, 2015 6:45 pm

ciao Klaus,

this is a very bad news. :( I will see to the link you have posted.
Have you idea if this is possible in android environment?

best
franco

Klaus
Posts: 14182
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: sender e-mail address

Post by Klaus » Thu May 28, 2015 8:53 pm

Sorry, same for Android.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10044
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: sender e-mail address

Post by FourthWorld » Thu May 28, 2015 9:17 pm

francof wrote:at present now I not want to send mails.
I only want to verify the address of the account created on the device.
There may be another way to solve the problem. Why do you want to verify the email address?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Re: sender e-mail address

Post by francof » Thu May 28, 2015 9:33 pm

thanks Klaus.

Hi Richard,
only to automatically associate my app to an unique user.

best
franco

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10044
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: sender e-mail address

Post by FourthWorld » Thu May 28, 2015 9:43 pm

Maybe the UUID function would help?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Re: sender e-mail address

Post by francof » Fri May 29, 2015 7:12 am

FourthWorld wrote:Maybe the UUID function would help?
maybe!

I've quickly reading at this voice in the dictionary, where can I find more info?
on what is based the construction of the uuid?

thanks
ciao
franco

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10044
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: sender e-mail address

Post by FourthWorld » Fri May 29, 2015 6:56 pm

The Dictionary entry is a bit sparse, but this background on UUID may be helpful:
http://en.wikipedia.org/wiki/Universall ... identifier
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Re: sender e-mail address

Post by francof » Sat May 30, 2015 11:46 am

if I'm not wrong, uuid is random generated, this isn't good for me: if I generate it several times, on the same device, the UUID will be always different.
I need the code be always the same ( obviously on the same device: computer, smartphone, iphone).

anyway, this note in the dictionary: " If type is "md5" or "sha1" then it returns a version 3 (md5) or version 5 (sha1) UUID. Here namespace_id should be the UUID of the namespace in which name sits, and name can be any string. "
where say: "...Here namespace_id should be the UUID of the namespace in which name sits, and name can be any string. "
it's very obscure for me.

best
franco

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10044
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: sender e-mail address

Post by FourthWorld » Sat May 30, 2015 2:20 pm

Have you considered asking the user for their email address?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

francof
Posts: 237
Joined: Fri Apr 11, 2014 10:51 am

Re: sender e-mail address

Post by francof » Sat May 30, 2015 5:06 pm

FourthWorld wrote:Have you considered asking the user for their email address?
yes, but the problem is another one: every time user open the app, I must read some unambiguous data of the device where the app is installed. a data strictly personal of that device.

on android I've solved using mobileBuildInfo function.
when app start, code reads that info to do a control. if there is a match app go ahead, otherwise...

ciao
fanco

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7390
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: sender e-mail address

Post by jacque » Sat May 30, 2015 5:41 pm

Android build info is not reliable, some manufacturers use the same info on all the devices of the same model. And of the devices I've looked at, many of the identifying entries are listed as simply "unknown" which will match other models too.

The best method is to assign a unique identifier on first launch and store it in a preference file. Read the file to get the assigned ID whenever you need it.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply