Recent

Author Topic: Working code to send email Yahoo to Gmail  (Read 5671 times)

rvk

  • Hero Member
  • *****
  • Posts: 6704
Re: Working code to send email Yahoo to Gmail
« Reply #15 on: April 04, 2022, 06:43:44 pm »
Maybe Indy will work somehow.
That won't work either.
You are probably just using the wrong authentication data.

For example. You can check this with
Code: Pascal  [Select][+][-]
  1. Showmessage(SMTP.FullResult.Text);
after the SMTP.MailFrom() line.

If it gives you something like:
Quote
530-5.7.0 Authentication Required. Learn more at
530 5.7.0  https://support.google.com/mail/?p=WantAuthError xxxxxx - gsmtp
you are using your normal gmail login-data and you can't do that. That won't work in indy either.

You could create a app-password and use that.
Goto https://myaccount.google.com/security and create an App password for E-mail / Windows-computer
Use that with your username and this function will work (if you called it correctly, but you still haven't shown that).

Edit: oops, your issue was with yahoo to gmail.
Not sure if yahoo also has app passwords but you can still look at the fullresult text to see the problem.

Edit #2: yeah. Yahoo also needs app passwords.
https://help.yahoo.com/kb/SLN15241.html
« Last Edit: April 04, 2022, 06:55:55 pm by rvk »

bobby100

  • Sr. Member
  • ****
  • Posts: 271
    • Malzilla
Re: Working code to send email Yahoo to Gmail
« Reply #16 on: April 04, 2022, 06:46:18 pm »
Bandy, both Indy and Synapse are working.

Don't expect anyone here to register a Yahoo account just to test it for you. I gave you a link in my previous post for a program (it uses Synapse).
Download it, unpack and load the file that I attached to this message, fill your password for your Yahoo account, click on 'Test' and post the log here (delete your password from the log before posting if it is visible there).
After that, I can help you further.

Bandy

  • New Member
  • *
  • Posts: 35
Re: Working code to send email Yahoo to Gmail
« Reply #17 on: April 04, 2022, 06:58:06 pm »
Bandy, both Indy and Synapse are working.

Don't expect anyone here to register a Yahoo account just to test it for you. I gave you a link in my previous post for a program (it uses Synapse).
Download it, unpack and load the file that I attached to this message, fill your password for your Yahoo account, click on 'Test' and post the log here (delete your password from the log before posting if it is visible there).
After that, I can help you further.
SMTP Login
     <- 220 smtp.mail.yahoo.com ESMTP ready
     -> EHLO smtp.mail.yahoo.com
     <- 250-kubenode505.mail-prod1.omega.ir2.yahoo.com Hello smtp.mail.yahoo.com [178.138.35.169])
        250-PIPELINING
        250-ENHANCEDSTATUSCODES
        250-8BITMIME
        250-SIZE 41697280
     <- 535 5.7.0 (#AUTH005) Too many bad auth attempts.
     -> AUTH LOGIN
     <-
SMTP Logout
     -> QUIT
SMTP STATUS: Logout:???-Other undefined Status
OK!
« Last Edit: April 04, 2022, 07:06:09 pm by Bandy »

bobby100

  • Sr. Member
  • ****
  • Posts: 271
    • Malzilla
Re: Working code to send email Yahoo to Gmail
« Reply #18 on: April 04, 2022, 07:00:12 pm »
It seems that your Yahoo account is suspended because of too many login failures.

Update:
Please delete the text after the AUTH PLAIN from your log (your previous message). It is your hashed password. Don't leave it here on the forum.

rvk

  • Hero Member
  • *****
  • Posts: 6704
Re: Working code to send email Yahoo to Gmail
« Reply #19 on: April 04, 2022, 07:03:54 pm »
And remove the text after auth plain in your reply because it has your email and password encoded.

(And change your yahoo password for good measure.)

Bandy

  • New Member
  • *
  • Posts: 35
Re: Working code to send email Yahoo to Gmail
« Reply #20 on: April 04, 2022, 07:06:43 pm »
And remove the text after auth plain in your reply because it has your email and password encoded.

(And change your yahoo password for good measure.)
No, my Yahoo account is working fine on my laptop browser and my Android phone.

rvk

  • Hero Member
  • *****
  • Posts: 6704
Re: Working code to send email Yahoo to Gmail
« Reply #21 on: April 04, 2022, 07:08:48 pm »
No, my Yahoo account is working fine on my laptop browser and my Android phone.
Try to create an app password (from the faq posted).

https://help.yahoo.com/kb/SLN15241.html

bobby100

  • Sr. Member
  • ****
  • Posts: 271
    • Malzilla
Re: Working code to send email Yahoo to Gmail
« Reply #22 on: April 04, 2022, 07:12:32 pm »
https://support.cdesoftware.com/kb/a1909/535-5_7_0-auth005-too-many-bad-auth-attempts-error-when-trying-to-send-email_.aspx

It is Yahoo that does not allow 3rd party apps to access it. You must adjust your Yahoo settings. The same goes for Gmail.

https://www.google.com/search?client=firefox-b-d&q=yahoo+mail+535+5.7.0+%28%23AUTH005%29+Too+many+bad+auth+attempts.


Edit#2: or try what rvk suggested, with generated passwords. I didn't know such a thing existed. @rvk - thank you for the info. I have always modified the Gmail account settings to allow 3rd party apps (less secure).

Bandy

  • New Member
  • *
  • Posts: 35
Re: Working code to send email Yahoo to Gmail
« Reply #23 on: April 04, 2022, 07:24:48 pm »
No, my Yahoo account is working fine on my laptop browser and my Android phone.
Try to create an app password (from the faq posted).

https://help.yahoo.com/kb/SLN15241.html
I created the app password.

Bandy

  • New Member
  • *
  • Posts: 35
Re: Working code to send email Yahoo to Gmail
« Reply #24 on: April 04, 2022, 07:37:56 pm »
What should I do next, please?

rvk

  • Hero Member
  • *****
  • Posts: 6704
Re: Working code to send email Yahoo to Gmail
« Reply #25 on: April 04, 2022, 07:39:47 pm »
What should I do next, please?
Dud you ran bobby's code with that app password?

If it still gives you the same error, did you create a new app password?

Bandy

  • New Member
  • *
  • Posts: 35
Re: Working code to send email Yahoo to Gmail
« Reply #26 on: April 04, 2022, 07:49:00 pm »
What should I do next, please?
Dud you ran bobby's code with that app password?

If it still gives you the same error, did you create a new app password?
I run smtp_test_client.exe and Too many bad auth attempts is still displayed.
I created a new app password.

bobby100

  • Sr. Member
  • ****
  • Posts: 271
    • Malzilla
Re: Working code to send email Yahoo to Gmail
« Reply #27 on: April 04, 2022, 07:50:43 pm »
You did put the generated app password instead of your personal password in the smtp-test-client and it did't work?

rvk

  • Hero Member
  • *****
  • Posts: 6704
Re: Working code to send email Yahoo to Gmail
« Reply #28 on: April 04, 2022, 07:53:18 pm »
And did you also set the option to allow apps to use less secure sign in?
(This is a separate option)

As stated by the link bobby already gave you:
Quote
To resolve, go to https://login.yahoo.com/account/security and then enable the option to allow apps that use less secure sign in.

Bandy

  • New Member
  • *
  • Posts: 35
Re: Working code to send email Yahoo to Gmail
« Reply #29 on: April 04, 2022, 07:57:50 pm »
You did put the generated app password instead of your personal password in the smtp-test-client and it did't work?
Yes.

 

TinyPortal © 2005-2018