Error sending email from hardware esp8266(local server)

hello…
please help me
cat /root/log/blynk.log

21:02:08.243 ERROR- Error sending push. Reason MismatchSenderId
21:02:09.716 ERROR- Error sending email from hardware. From user mohammad, to : ahmadi.mohammadjon@gmail.com. Reason : 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 https://support.google.com/mail/?p=BadCredentials h83sm1172601lfi.16 - gsmtp

i am confident that we are using the password

Did you read the part in the local server set up about validating Gmail accounts?

Maybe try another gmail account where you are 100% sure of the password and you have done the correct validation.

yes set up
mail.smtp.auth=true
mail.smtp.starttls.enable=true
mail.smtp.host=smtp.gmail.com
mail.smtp.port=587
mail.smtp.username=example@gmail.com
mail.smtp.password=
i saved the mail.properties file in the server neighborhood
and run:java -jar Arduino/blynk-server/server-0.27.0.jar -dataFolder Arduino/blynk-server/blynk-data

ok but i’m sure thats right

:thinking:

Read the docs again, that wasn’t the Gmail verification I was referring to.

i’ve read something i did not understand.please help
they found that the mail.properties file did not open/read

:expressionless:

Paste it here.

:no_mouth:

You didn’t specify correctly email and password for your mail account in mail.properties file.

As my kindergarten teacher always said… Please use your words.

I am also reading something I don’t understand… you have to create the mail.properties file yourself… then populate it with the correct information.

It is also recommended you create a basic Gmail address WITHOUT any 2-step verification. And also set to “Allow less secure apps” https://github.com/blynkkk/blynk-server#enabling-mail-on-local-server

1 Like

tnx for your response

mail.smtp.auth=true
mail.smtp.starttls.enable=true
mail.smtp.host=smtp.gmail.com
mail.smtp.port=587
mail.smtp.username=ahmadi.mohammadjon@gmail.com
mail.smtp.password=**************

but it still does not work
I think the problem is that it does not read the mail.properties file

tnx for your response

i did …

I think the problem is that it does not read the mail.properties file

What are you installing your Local Server on and can you show us the directory listing of where that file is located?

dear Gunner

up:roll_eyes:

Not quite what I meant by “words” :wink:

Just a stab in the dark here… but since Google pretty much ignores periods in email addresses… try changing from:

mail.smtp.username=ahmadi.mohammadjon@gmail.com

to

mail.smtp.username=ahmadimohammadjon@gmail.com

I’m guessing the OP skipped over the “allow less secure apps” part.

1 Like

:star_struck::star_struck::star_struck::star_struck::star_struck:

ok ok ok
tnx a lot

I faced the same problem. In my case the solution was to put my mail credentials inside the mail.properties file, but still inside the server jar. I used winrar to do this, like this:

1 I rename the jar to rar
2 I opened the jar as winrar
3 I edited the mail.properties file and saved it
4 winrar asked me if I wanted to update the mail.properties file
5 I said yes and I succeeded