Activation and Chng...
 
Notifications
Clear all

Activation and ChngePwd are not beig sent by server

8 Posts
2 Users
0 Reactions
893 Views
(@hsilva)
Posts: 22
Eminent Member
Topic starter
 

Hi. When I call newUser.Update, a new record is generated in the database, including the activation code, but the activation code is never sent to the user's account. The same thing happens when I call User.ResetPassword (the code is generated, but it's not sent, I already verified the spam folder as well). Any idea what might be going on?

It's related to an app that I am just developing, several weeks ago it worked well (sending the mails), but a few days ago I noticed that the mails were no longer sent. Can the update influence this? (Weeks ago I updated Unity to 5.5.0f3 and I had to update also Combu, today I installed the latest version, 2.14, but I still have the problem).

Any help is welcome.

Thanks in advance.

 
Posted : 13/02/2017 4:38 am
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Hi, I tried right now on our host (where this website is hosted) and it worked, I received the email in my inbox (not even spam).

You could try to add the following in /lib/Mail.php at line 51 (before "return"):

AppLog::Info($esito ? "MAIL SENT" : "MAIL ERROR: " . $this->ErrorInfo);

This should add a line in your applog file with relevant informations if the sending fails.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 13/02/2017 12:35 pm
(@hsilva)
Posts: 22
Eminent Member
Topic starter
 

Thanks for your prompt response.

After adding this line and making five ChngePwd requests to four different email accounts (unfortunately, without receiving the mail at any), these messages were recorded in file _logs/applog.log:

13/02/2017 08:16:59 [INFO] MAIL SENT
13/02/2017 08:18:53 [INFO] MAIL SENT
13/02/2017 08:44:13 [INFO] MAIL SENT
13/02/2017 08:45:11 [INFO] MAIL SENT
13/02/2017 08:45:29 [INFO] MAIL SENT

With this we would be certain that the messages were sent ? (Sorry if the question is obvious, I'm not a PHP expert). For example, is it possible, for whatever reason, that a web hosting provider (GoDaddy.com is my case) to block the sending of emails?

Do you have any additional suggestions on how to track this problem?

I really appreciate your help.

 
Posted : 13/02/2017 5:03 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Well, the answer is yes, if it says that the mail has been sent then it means that the mail function (meant not as our PHP script but the server bin/executable/function) declared it as correctly sent.

I remember something about some issues in sending mails from GoDaddy but don't remember right now, I'll check my mail/posts/PMs to see if I still have a message for it and will get back at here once I'll find it. Eventually if I don't find anything I'll contact you back by PM to see if there's something we can check together in a skype text chat (in which case I'll need FTP credentials to make some tests directly on your hosting, but I'll ask eventually later).

PS: please be patient possibly if I'll not answer in a fashion time, but I'm working hard on the next 3.0 version of Combu which will be a big refactor of server side scripts and I'm adding also security by using RSA+AES encryption of every call to web services, this will be a huge improvement for security and cleaning server code.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 13/02/2017 5:12 pm
(@hsilva)
Posts: 22
Eminent Member
Topic starter
 

Thank you very much for your support.

It's possible that the problem is some detail in the configuration of the server, because I just made a PHP script to send an email and also tells me that it has been sent, but it does not arrive. So I'm going to try this side and if I need more help, I'll let you know.

By the way, it seems like great news that Combu 3 is on the way. Despite my current problem, which I think has nothing to do with Combu, my experience with your product has been magnificent and it's good to know that it continues to develop.

Thanks!

 
Posted : 13/02/2017 10:04 pm
(@hsilva)
Posts: 22
Eminent Member
Topic starter
 

As a summary, in the event that someone has a similar experience in the future, the problem was that GoDaddy blocked (without giving me notice) the email output sent from scripts installed in my hosting, because it was "compromised" (Hacked to use it in sending spam, supposedly). They recommend, among other things, use captchas in registration forms. Hard work on security is waiting for me.

Greetings.

 
Posted : 14/02/2017 6:51 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Wow, really unfair to blacklist without even notify the client. Let me say, my friend, GoDaddy sucks so much in professionalism (I moved out from there a few years ago)! 🙁

PS: Combu 3.0 closed beta is almost done, I published a current state on this website to a couple of testers, if you want to partecipate in the closed beta then let me know and I'll add it to your account (of course you shouldn't use it in production environment until an official stable version is released, it's just for testing purpose).

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 14/02/2017 7:07 pm
(@hsilva)
Posts: 22
Eminent Member
Topic starter
 

Skared Creations said
Wow, really unfair to blacklist without even notify the client. Let me say, my friend, GoDaddy sucks so much in professionalism (I moved out from there a few years ago)! 🙁

PS: Combu 3.0 closed beta is almost done, I published a current state on this website to a couple of testers, if you want to partecipate in the closed beta then let me know and I'll add it to your account (of course you shouldn't use it in production environment until an official stable version is released, it's just for testing purpose).  

Thank you very much for the opportunity, unfortunately I'm still climbing the learning curve and I don't think I'm in a position to make valuable contributions with beta tests on Combu 3. However, I like the idea and hopefully I can participate in future beta tests.

Regarding my hosting, I'm just considering switching. Hoping not to abuse the forums, I will allow myself to open a new topic (in order to avoid mixing two different themes in this thread) about comments of Combu users regarding hosting providers, on the idea of ​​taking elements to help me choose a new hosting (and at the same time users of Combu may in the future obtain and share information on the subject). I hope that in that thread you can tell me please 1) to which hosting you moved when you left GD, 2) how useful for Combu are A2Hosting, Google Cloud and AWS and 3) what other providers you know are good for Combu.

 
Posted : 15/02/2017 4:57 am
Share: