Recent

Author Topic: How Send Email (Gmail, Hotmail, Yahoo)  (Read 27420 times)

luk2009

  • Jr. Member
  • **
  • Posts: 51
Re: How Send Email (Gmail, Hotmail, Yahoo)
« Reply #15 on: May 31, 2018, 02:22:57 pm »
Thanks for your answers

cgd

  • Newbie
  • Posts: 6
Re: How Send Email (Gmail, Hotmail, Yahoo)
« Reply #16 on: August 04, 2019, 07:36:12 pm »
Thank you so much for this topic... I was several days trying to understand why my old routines to send emails stopped working since some months... the SSL and TLS properties need to be defined nowadays to work with many email providers.

I use Lazarus 1.6, FreePascal 3.0.0

My email example program is working now in Windows10, 32b. But I also have to compile it in Ubuntu 32bits and Raspbian Stretch for Raspberry ARM... (I didn't do that yet)

Questions: do I have to provide dlls for OpenSSL with my Raspberry application? In affirmative case, which ones? (I see librarys por Windows and Linux, could I use the Linux ones for Raspbian?)

Thank you very much !!

toby

  • Sr. Member
  • ****
  • Posts: 270
Re: How Send Email (Gmail, Hotmail, Yahoo)
« Reply #17 on: August 04, 2019, 11:15:33 pm »
cgd

xmailer uses the synapse libraries so you must have them installed on your windows box - you can use the same files on your linux boxes

they will be bel recompiled for linux when you compile your xmailler program

the synapse files will also work on the rpi

you probably already have the linux openssl files on your linux boxes - if not they are very easy to install
« Last Edit: August 04, 2019, 11:19:44 pm by toby »

cgd

  • Newbie
  • Posts: 6
Re: How Send Email (Gmail, Hotmail, Yahoo)
« Reply #18 on: November 07, 2019, 09:24:11 pm »
xmailer is working great for me in win xp 32bits, win 10 64 bits, and raspbian stretch (raspberry pi3B+)!!
I still did not tested in ubuntu 32 and 64 bits...

Question: Has anyone used xmail to send an email with a html body? Could share a simple example of how to?
Thank you very much!

cgd

  • Newbie
  • Posts: 6
Re: How Send Email (Gmail, Hotmail, Yahoo)
« Reply #19 on: November 07, 2019, 10:06:09 pm »
I got it... it's simple:

function MailSimple(.....)
Var
    Mail : TSendMail;
begin
    ...
    ...
      Mail.ContentType := ctTextPlain ;    //for plain text
   //or
      Mail.ContentType := ctTextHTML ;   //for html text
   ...
end;

Ericktux

  • Sr. Member
  • ****
  • Posts: 352
Re: How Send Email (Gmail, Hotmail, Yahoo)
« Reply #20 on: October 20, 2024, 06:03:35 am »
Currently today 10/19/2024 I can no longer send emails  :(, I attach the error images that appear, if someone manages to use it or solve it please can you help me here

Thaddy

  • Hero Member
  • *****
  • Posts: 16177
  • Censorship about opinions does not belong here.
Re: How Send Email (Gmail, Hotmail, Yahoo)
« Reply #21 on: October 20, 2024, 07:45:26 am »
Version of your crypto lib(s) are too old, so the authentication fails. Your are probably using a crypto lib version (any, e.g. openssl) that does not support tls 1.3, although 1.2 might still work.
This is an ever recurring problem and I have posted this or similar answers in their hundreds.
See wikipedia:
https://en.wikipedia.org/wiki/Version_history_for_TLS/SSL_support_in_web_browsers
and https://developer.mozilla.org/en-US/docs/Glossary/TLS
For good measure, this goes for ALL browsers, not just Firefox.
https://support.mozilla.org/en-US/kb/secure-connection-failed-firefox-did-not-connect
« Last Edit: October 20, 2024, 07:53:20 am by Thaddy »
If I smell bad code it usually is bad code and that includes my own code.

paweld

  • Hero Member
  • *****
  • Posts: 1268
Re: How Send Email (Gmail, Hotmail, Yahoo)
« Reply #22 on: October 20, 2024, 09:01:04 am »
In general, it is Google that has blocked the ability to send emails when authenticating with a login and password. You must use OAuth or set up an additional password for the app: https://support.google.com/a/answer/9003945
Best regards / Pozdrawiam
paweld

silvercoder70

  • Jr. Member
  • **
  • Posts: 92
    • Tim Coates
Re: How Send Email (Gmail, Hotmail, Yahoo)
« Reply #23 on: October 20, 2024, 11:19:49 am »
Think that hotmail (office etc.) also require OAuth2 today as well.
Explore the beauty of modern Pascal programming with Delphi & Free Pascal - https://www.youtube.com/@silvercoder70

 

TinyPortal © 2005-2018