How to use the regi...
 
Notifications
Clear all

How to use the registered mail account

5 Posts
2 Users
0 Reactions
1,101 Views
 sir
(@sir)
Posts: 6
Active Member
Topic starter
 

Player registration, login and custom data(with/without activation code by email)?how to set it?smile

 
Posted : 15/07/2016 10:20 am
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Set the constants REGISTER_EMAIL_* appropriately in config.php as documented at  http://skaredcreations.com/api/combu/page_config.html

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 15/07/2016 11:10 am
 sir
(@sir)
Posts: 6
Active Member
Topic starter
 

thanks!but...wub

// Email settings
define ("EMAIL_SENDER_ADDRESS", "admin@myserver.ext");
define ("EMAIL_SENDER_NAME", "Combu Admin");

 

I didn't find where to set the password?i want send a email to registrator

You can refer to this:

https://www.assetstore.unity3d.com/cn/#!/content/56634

 
Posted : 15/07/2016 11:44 am
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Sorry, but I don't understand your question.

Here is how it works when you have REGISTER_EMAIL_REQUIRED set to TRUE:

  • during the registration you'll set the email property before calling Update()
  • the webservice will send an email to that address:
    • EMAIL_SENDER_ADDRESS is the address of the sender and EMAIL_SENDER_NAME is its display name, you don't need to set your email address password because it's not using the mail server of EMAIL_SENDER_ADDRESS but it uses the internal one that is running on webserver
    • REGISTER_EMAIL_SUBJECT is the subject of the email
    • REGISTER_EMAIL_MESSAGE is the path to an HTML file on webserver that contains the message, the system has already a default file for this and it is /lib/email_register.html (that you can duplicate this and then edit to change the mail content; the link in my previous post contains more info about this, there isn't currently a way to write the password in the outgoing email because this would have required to send the password in clear on request and this is not good for security)

You'll also need the RESETPWD_EMAIL_SUBJECT and RESETPWD_EMAIL_MESSAGE to send an email when the user requests to reset its password (it works same way as REGISTER_EMAIL_SUBJECT and REGISTER_EMAIL_MESSAGE, you'll also find default values for this and the default mail content in /lib/email_resetpwd.html).

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 15/07/2016 12:13 pm
 sir
(@sir)
Posts: 6
Active Member
Topic starter
 

i see,thanks!wub

 
Posted : 15/07/2016 1:18 pm
Share: