Menu
Jan 08, 2017 Log on to incoming mail server (IMAP): The connection to the server was interrupted, If this problem continues, contact your server administrator or internet service provider (ISP). To resolve this problem, try the following solutions. Solution 1: Make sure you can sign in to your Microsoft account online. Sign in online to your Microsoft account.If you can't, verify that you've typed the email address and password correctly.
I have used phpmailer() concept to send mail to users from my shared server using php script, but I'm not able to send even though everything is right in my script according to phpmailer code.
My code like this:
Note: I have used ' GMail ' as my SMTP server and SMTPSecure is ' ssl ' and port is '465' and username & passwords are my GMail username & password
I used VPS shared server and I kept my php script on that server.
I think there is no problem in my php script and I don't know why it doesn't work.
I got the ERROR like this.
Please give some solution for that.
Thanks in Advance.
Thanks in Advance.
Remember: I use Shared Server Name 'VPS.mydomain.com' and I want to use GMail as my SMTP server to send mail to users.
callmebob3,05222 gold badges1818 silver badges3333 bronze badges
Punniyam MoorthiPunniyam Moorthi30811 gold badge88 silver badges1919 bronze badges
9 Answers
A bit late, but perhaps someone will find it useful.
Links that fix the problem (you must be logged into google account):
Some explanation of what happens:
This problem can be caused by either 'less secure' applications trying to use the email account (this is according to google help, not sure how they judge what is secure and what is not) OR if you are trying to login several time in a row OR if you change countries (for example use VPN, move code to different server or actually try to login from different part of the world).
To resolve I had to: (first time)
- login to my account via web
- view recent attempts to use the account and accept suspicious access: THIS LINK
- disable the feature of blocking suspicious apps/technologies: THIS LINK
This worked the first time, but few hours later, probably because I was doing a lot of testing the problem reappeared and was not fixable using the above method. In addition I had to clear the captcha (the funny picture, which asks you to rewrite a word or a sentence when logging into any account nowadays too many times) :
- after login to my account I went HERE
- Clicked continue
Hope this helps.
callmebobcallmebob3,05222 gold badges1818 silver badges3333 bronze badges
Use this:
this link allow acces to google account
UPDATE 19-05-2017:
These url you must to visit from the IP address that will be send email
Sanya SnexSanya Snex
As others already suggested, you can enable the 'less secure' applications or you can simply switch from
ssl
to tls
:![Sugar wrong server location user name or password please try again yahoo Sugar wrong server location user name or password please try again yahoo](/uploads/1/2/5/6/125685904/760796516.jpg)
When using
tls
there's no need to grant access for less secure applications, just make sure, IMAP is enabled.Sebastian HenzlSebastian Henzl
Solved the problem - PHPMailer - SMTP ERROR: Password command failed when send mail from my server
Important:
Go to google Setting and do 'less secure' applications enables. It will work.It Worked for Me.
![Sugar wrong server location user name or password please try again yahoo Sugar wrong server location user name or password please try again yahoo](/uploads/1/2/5/6/125685904/644141764.png)
7,4041414 gold badges3131 silver badges6060 bronze badges
Ajitabh RanjanAjitabh Ranjan
I face the same problem, and think that I do know why this happens.
The gmail account that I use is normally used from India, and the webserver that I use is located in The Netherlands.
Google notifies that there was a login attempt from am unusualy location and requires to login from that location via a web browser.
Furthermore I had to accept suspicious access to the gmail account via https://security.google.com/settings/security/activity
But in the end my problem is not yet solved, because I have to login to gmail from a location in The Netherlands.
I hope this will help you a little! (sorry, I do not read email replies on this email address)
privacyprivacy
For those who are still unable to get it working, try the following in addition to the method provided by @CallMeBob.
PHP.ini
- Go to C:xamppphp , edit php.ini file with notepad.
- Press CTRL+F on your keyboard, input sendmail_path on the search bar and click Find Next twice.
- Right now, you should be at the [mail munction] section.
Remove the semicolon for this line: sendmail_path = 'C:xamppsendmailsendmail.exe' -t'
Add a semicolon for this line:sendmail_path='C:xamppmailtodiskmailtodisk.exe'
Add a semicolon for this line:sendmail_path='C:xamppmailtodiskmailtodisk.exe'
SendMail.ini
- Go to C:xamppsendmail, edit sendmail.ini file with notepad
- Change the following:
- smtp_server=smtp.gmail.com
- smtp_port=465
- [email protected]
- auth_password=your-gmail-password
- [email protected]
Note:
** smtp_port must tally with your those written in your php code.
** Remember to change your-gmail-username and your-gmail-password to whichever account you are using.
**
** smtp_port must tally with your those written in your php code.
** Remember to change your-gmail-username and your-gmail-password to whichever account you are using.
**
Hope this helps! :)
RafilsonRafilson
If you are G Suit user it can be solved by Administrator
- Go to your Admin panel
- Type in top search bar «Security» (Select Security with Shield icon)
- Open Basic settings
- Goto Less secure apps section
- Press: Go to settings for less secure apps ››
And now select one of Radio Buttona) Disable access to less secure apps for all users (Recommended)b) Allow users to manage their access to less secure appsc) Enforce access to less secure apps for all users (Not Recommended)
Usually It does not working because of a)! And will start working immediately with c) option. b) – option will need more configuration for each user in GSuit
Hope it helps
VladimirVladimir
This error is due to more security features of gmail..
Once this error is generated...Please login to your gmail account..there you can find security alert from GOOGLE..follow the mail...check on click for less secure option..Then try again phpmailer..
BhanuBhanu
Your mail won't be sent online unless you complete the two-step verification for your g-mail account and use that password.
user10800773
Not the answer you're looking for? Browse other questions tagged phpemailsmtpphpmailer or ask your own question.
I can't change my password when I run my application. It always stuck up on Validation Summary and I can't change my password.Is there something on the code that need to change or configuration is needed? This is the error I receive.
Password change was unsuccessful. Please correct the errors and try again. The current password is incorrect or the new password is invalid.
But I am sure that I type my current password correctly.
MODELAccountModel.cs
Controller
John H9,61633 gold badges2525 silver badges6161 bronze badges
program taylorprogram taylor
1 Answer
The validation is working just fine, thats why you get 'The current password is incorrect or the new password is invalid.' in your error report. Something is happening in your membership provider that is causing your flag to not be true... debug into this spot
Let me know what you find!
Brent EcholsBrent Echols