Sending smtp email on android device
Posted: Mon Apr 13, 2020 2:40 pm
Hi
I am using previously posted LCMail code to send an email.
Code includes
-- create the smtp message
put createSmtpMessage(tRecipient, tSender, tSubject, tMessage) into tPostData
-- send email
put tsNetSmtpSync(tURL, tSender, tRecipient, tPostData, tResponseHeaders,tBytes,tSettings) into tResult
The code which includes my username and password for my smtp account works fine when I run my app on my windows development machine but not on my android tablet (it fails to send the email and gives no warning or error message).
I want users to verify they have an NHS email account to gain access to part of my app so I am sending a code to the account they specify which they then copy and paste into an answer field for verification. Clearly I don't want the email to be displayed before it is sent hence my use of smtp. Any advice to get this to work or is there a more elegant way of validating an email address in Livecode that I can use?
Thx
Jason
I am using previously posted LCMail code to send an email.
Code includes
-- create the smtp message
put createSmtpMessage(tRecipient, tSender, tSubject, tMessage) into tPostData
-- send email
put tsNetSmtpSync(tURL, tSender, tRecipient, tPostData, tResponseHeaders,tBytes,tSettings) into tResult
The code which includes my username and password for my smtp account works fine when I run my app on my windows development machine but not on my android tablet (it fails to send the email and gives no warning or error message).
I want users to verify they have an NHS email account to gain access to part of my app so I am sending a code to the account they specify which they then copy and paste into an answer field for verification. Clearly I don't want the email to be displayed before it is sent hence my use of smtp. Any advice to get this to work or is there a more elegant way of validating an email address in Livecode that I can use?
Thx
Jason