Recent

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

Bandy

  • New Member
  • *
  • Posts: 35
Working code to send email Yahoo to Gmail
« on: April 03, 2022, 07:32:02 pm »
Hello,

I need working code to send email Yahoo to Gmail.

Thank you.


alpine

  • Hero Member
  • *****
  • Posts: 1379
"I'm sorry Dave, I'm afraid I can't do that."
—HAL 9000

Bandy

  • New Member
  • *
  • Posts: 35
Re: Working code to send email Yahoo to Gmail
« Reply #3 on: April 04, 2022, 09:34:00 am »
I don't know why, but none of the example above don't work.
Please help me.

Bandy

  • New Member
  • *
  • Posts: 35
Re: Working code to send email Yahoo to Gmail
« Reply #4 on: April 04, 2022, 10:50:46 am »
I need WORKING WORKING WORKING code to send email from Yahoo to Gmail.

Please help me.
Thank you.

rvk

  • Hero Member
  • *****
  • Posts: 6704
Re: Working code to send email Yahoo to Gmail
« Reply #5 on: April 04, 2022, 10:59:18 am »
I need WORKING WORKING WORKING code to send email from Yahoo to Gmail.
Maybe you can explain WHAT is not working.

Error messages, code you really typed (with password crossed out), Error messages... O, and I forgot Error messages.

Just shouting it doesn't work isn't helpful.

Bandy

  • New Member
  • *
  • Posts: 35
Re: Working code to send email Yahoo to Gmail
« Reply #6 on: April 04, 2022, 05:15:16 pm »
I need WORKING WORKING WORKING code to send email from Yahoo to Gmail.
Maybe you can explain WHAT is not working.

Error messages, code you really typed (with password crossed out), Error messages... O, and I forgot Error messages.

Just shouting it doesn't work isn't helpful.

The code from AlexTP returns no errors, everything in typed correctly, but the email from Yahoo to Gmail is NOT sended.

rvk

  • Hero Member
  • *****
  • Posts: 6704
Re: Working code to send email Yahoo to Gmail
« Reply #7 on: April 04, 2022, 05:20:49 pm »
Does it go into the if statement of SMTP.Login?
Put a showmessage or something within to see if it comes to that point.

Did you put the openssl dlls in your exe directory?
Show your code calling to that function (with passwd crossed out).

Bandy

  • New Member
  • *
  • Posts: 35
Re: Working code to send email Yahoo to Gmail
« Reply #8 on: April 04, 2022, 05:26:56 pm »
I have openssl dlls in my exe directory.
Result is false.
Maybe Indy will work somehow.

rvk

  • Hero Member
  • *****
  • Posts: 6704
Re: Working code to send email Yahoo to Gmail
« Reply #9 on: April 04, 2022, 05:39:01 pm »
Result is false.
I asked if it got past the SMTP.Login line?

Result was set in the beginning so is the Result of SMTP.MailData etc false or the complete SendMail function result? Please be more elaborate.

If .Login is true you can split the maildata, mailfrom and mailto to see which one returns false.

Bandy

  • New Member
  • *
  • Posts: 35
Re: Working code to send email Yahoo to Gmail
« Reply #10 on: April 04, 2022, 05:43:22 pm »
Yes, it got past the SMTP.Login line.

Bandy

  • New Member
  • *
  • Posts: 35
Re: Working code to send email Yahoo to Gmail
« Reply #11 on: April 04, 2022, 05:51:40 pm »
Every individual function: MailFrom, MailTo, MailData returns False.

Bandy

  • New Member
  • *
  • Posts: 35
Re: Working code to send email Yahoo to Gmail
« Reply #12 on: April 04, 2022, 05:52:46 pm »
Why do I need all three functions?

bobby100

  • Sr. Member
  • ****
  • Posts: 271
    • Malzilla
Re: Working code to send email Yahoo to Gmail
« Reply #13 on: April 04, 2022, 06:00:49 pm »
Bandy, take a look here:
https://sourceforge.net/projects/smtp-test-suite/

Start the smtp-test-client and test your login etc.
When you have found which settings are working for you, take a look at the source-code of the smtp-test-client and use it with your settings (hard-code your settings if you like so).
Sending an email is not an one-shot process. There is some more handshaking between the server and the client.

Bandy

  • New Member
  • *
  • Posts: 35
Re: Working code to send email Yahoo to Gmail
« Reply #14 on: April 04, 2022, 06:07:32 pm »
Maybe Indy will work somehow.

 

TinyPortal © 2005-2018