NetTalk Central

Author Topic: Sending SMSs en Emails  (Read 2810 times)

Johan van Zyl

  • Full Member
  • ***
  • Posts: 180
  • jvz
    • View Profile
    • Email
Sending SMSs en Emails
« on: April 17, 2014, 12:31:56 PM »
see attached
www.medxinfo.co.za
Click Login | Register

Here is the code I'm trying to fit into a XHTML routine on the Help NetWebPage as mentioned my other topic just now.
"Why Register?
You do not have to register as a USER but if you are not registered you cannot Login and certain pages and information will not be visible to you and we will not be able to contact you.
To Register:
NOTE: OTP = One Time Password - only valid for this current session.
 You MUST register with a valid Email Address. Once that has been verified you may register, if so desired, your cell phone number.  In the case of certain types of USERS like LOCUMS it would be advantageous  to be contactable via email AND cell phone!
The Email Address and Cell No supplied must be valid as they will be verified.
Choose option A. or B.
A. If you want to Register with your Email Address AND your Cell No:
Login, Password, Last Name, First Name, Gender, Home Town, Country, Email Address AND Cell No must be filled in.
After all required fields have been filled in then click Request Email OTP.
An Email OTP will be generated and sent to the Email address typed in by you supplying you with an Email OTP - which must then be typed into the field Email OTP.
Now Click Request Cell No OTP.
 If the Email OTP typed in by you matches generated Email OTP then a Cell OTP will be generarated and sent to the Cell No typed in by you supplying you with a Cell OTP - which must then be typed into the field Cell OTP.
Now click Register.
If the Email OTP AND Cell OTP typed in by you matches the generated OTPs you will be registered as a User and you will be taken back to the Login Form - with the Login and Password already filled in - now just click Login.
B. If you want to register with your Email Address ONLY:
 Login, Password, Last Name, First Name, Gender, Home Town, Country and Email Address must be filled in.
After all required fields have been filled in then click Request Email OTP.
An Email OTP will be generated and sent to the Email address typed in by you supplying you with an Email OTP - which must then be typed into the field Email OTP.
Now click Register.
If the Email OTP typed in by you matches the generated Email OTP you will be registered as a User and you will be taken back to the Login Form - with the Login and Password already filled in - now just click Login."

OK - The Register Button at the bottom is the Save button.
Then there is the Request Email OTP and Request Cell OTP buttons.
When the Request Email OTP is clicked and Email OTP is generated and this Email OTP must then mailed to the email address supplied.
How do I achieve this - must that button call a NetWebForm? - modified Send Email From WebBrowser (11) but with no fields showing on the form as all info is passed from calling form?? Can I pass parameters to it like the First Name, Last Name and Email Address from the calling Form (RegisterForm)?
And if the Request Cell OTP is clicked and I now must send a sms? Have been using ClickAtall HTTP with success but not in NTWS mode.
The code to create OTPs and to verify that a valid Email OTP has been entered should be OK
Well the Email address, generated Email OTP and the Email OTP entered by user are all local variable? - these two OTP's must match - how do I display a message if they don't match to allow for a retry?




 

[attachment deleted by admin]
Johan van Zyl
Clarion 6.3 9058/C8 Gold/SQL/NetTalk WebServer

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Sending SMSs en Emails
« Reply #1 on: April 18, 2014, 01:12:18 AM »
it's almost impossible to read you post - it's just a wall of text - but you might consider adding information to your form as "display" fields which can display paragraphs of text.

cheers
Bruce