-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Email trouble #27
Comments
This is a very troublesome topic, since I have encountered a lot of similar problems and most of the time it was related to problems with the SMTP server (For example, google accounts causes a lot of problems in applications like these a lot). |
I am fairly certain I was using an email account associated with godaddy and using their mail server for the problem testing I reported. I may have been missing something, but I could not find a way to track down what was going on on that end. In the end, I have up and began using an old yahoo email account I had and then things worked. If I get back around to that project again soon, I will try and remember to test again and report back. |
Just to help out, my experience with hosting email accounts have involved some problems with these type of applications as well. Do verify if you are using the correct SMTP servers, and if the problem of only specific emails being received persists, contact customer support. It is likely that some emails were blocked, and the hosting support might help in figuring out what was different/dangerous in those emails. |
I am getting an error message of "email could not be sent, try again later" |
same for me "email could not be sent, try again later" |
Have the correct data been inserted here?
PHP-Login-System/assets/setup/env.php Lines 16 to 20 in de6d402
|
yes its correct. i test it with another programm but is it possible it has problems with self signed ssl cert? |
I try it now with my gmx account and it works. thx seems with my smtp is anything not correct. |
this is what i did to figure out why my SMTP server settings where not working. this is what i did to troubleshoot PHPMAILER smtp issues in this app file to edit: \verify\includes\sendverificationemail.phpedits to make: change to $mail->isSMTP(); **note: you can also set SMTPDebug = 4; if you want it to give full debug info including login credentials. (use during development only) change to
!!dont forget to revert the changes once youre done troubleshooting. also to get the verify process to complete(email link was invalid) i had to make the additional change: $url = "localhost/loginsystem/verify/includes/verify.inc.php?selector=" . $selector . "&validator=" . bin2hex($token); changed to $url = "domainname.com/verify/includes/verify.inc.php?selector=" . $selector . "&validator=" . bin2hex($token); not sure if this was the correct place to change it but everything worked after that. basically you can login and goto domainname.com/verify/ and it will give you a chance to resend validation email. once the debug is set on it should spew out the connection info. (if for some reason you need to re-verify youre account just open the users database and set your users 'verified_at' value back to null and it should let you send another code to the email. ps: thanks for the nice work on this project @msaad1999 |
I am having some odd email trouble.
using a test account at ethereal.email, emails seem to work fine.
PHPMailer configuration $mail = new PHPMailer(true); $mail->isSMTP(); $mail->Host = 'smtp.ethereal.email'; $mail->SMTPAuth = true; $mail->Username = '[email protected]'; $mail->Password = '1234xqzCE9TtzsagWH'; $mail->SMTPSecure = 'tls'; $mail->Port = 587;
All emails seem to go our properly, but this account is not suitable for wider testing, only for a very first test.
Using another account/server for phpmailer, this time ssl on port 465, the register and verify emails never show up but the password reset emails do show up.
Any thoughts on the best way to go about troubleshooting this would be welcome. I don't have access to the email server logs as far as I can tell.
The text was updated successfully, but these errors were encountered: