Recent

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

luk2009

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

cgd

  • New member
  • *
  • 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

  • Jr. Member
  • **
  • Posts: 66
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

  • New member
  • *
  • 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

  • New member
  • *
  • 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;

 

TinyPortal © 2005-2018