few days before my phpmailer function works fine but now it gives me this error
The following From address failed: mona18shri@gmail.com Mailer Error: The following From address failed: mona18shri@gmail.com

SMTP server error: 5.5.1 Authentication Required. Learn more at 530 5.5.1 http://support.google.com/mail/bin/answer.py?answer=14257 d17sm9100541obu.0 - gsmtp

what can i do for this error any suggetion plz help

Did you change your password perhaps?

@pritaeas
i am not change anythig i am just working on it and project is dilivred to client now they are facing this problem.

So the server it is running on has changed?

Hi,

So, you deliver this script to your client? You use the client's gmail account to send mail through script?

If that is your case, all you have to do is tell your client to run the script one more time, and then a failure should occur again, instruct your client or whoever owned the email address to login to their google account. Upon successful login to the gmail account, wait for the red bar notification on top of the page, click this notification and confirm that they have knowledge of the server's IP sending an email and requesting an authorization using their gmail account credentials..

kind of like this...

server PHP MAIL---> initiate mail function -->use gmail account credential instead of the server's default -->data send to gmail for authentication-->

Authentication response--> true? email is sent
Authentication response--> false? SMTP server error: 5.5.1 

I might have the wrong understanding about your question.

sorry for let reply i will give a try may be clint change gmail account password that i am using in it thanx for your co-operation but i am still don't know what is the actual problem