Recent

Author Topic: (SOLVED) synapse mail  (Read 12819 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
(SOLVED) synapse mail
« on: September 13, 2011, 08:09:01 am »
Whoever tells me how to send emails with synapse? I'm just a small example. thanks
« Last Edit: September 14, 2011, 03:41:39 pm by xinyiman »
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1927
Re: synapse mail
« Reply #1 on: September 13, 2011, 10:57:48 am »
Whoever tells me how to send emails with synapse? I'm just a small example. thanks

Synapse help will tell you:
http://synapse.ararat.cz/doc/help/smtpsend.html

SendTo or SentToEx are simple functions.

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: synapse mail
« Reply #2 on: September 13, 2011, 11:00:11 am »
But if you wanted to use GMail as the SMTP server?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

Shebuka

  • Sr. Member
  • ****
  • Posts: 427
Re: synapse mail
« Reply #3 on: September 13, 2011, 03:42:05 pm »
But if you wanted to use GMail as the SMTP server?
Try SentToEx with
Code: [Select]
    Port = 465
    Host = 'smtp.gmail.com'
    Password = 'YourPassword'
    Username = 'YourUserName@gmail.com'
and with associated SSL connection and TLS

see here for setting them http://synapse.ararat.cz/doc/help/smtpsend.TSMTPSend.html

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: synapse mail
« Reply #4 on: September 13, 2011, 05:03:19 pm »
ok thanks
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

Silvio Clécio

  • Guest

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: synapse mail
« Reply #6 on: September 14, 2011, 08:13:11 am »
Thank you  :)
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2256
    • Lazarus and Free Pascal italian community
Re: synapse mail
« Reply #7 on: September 14, 2011, 03:41:22 pm »
I solved with the help of Stefano Cortelli. And I created a library to use it. At the following address is the solution: www.liuheschool.com/informatica/Lazarus/MyLibMail/Libreria_Posta.zip

To just install linux: libssl-dev
For windows: the dll should already be in the folder Libreria_Posta.

Libreria_Posta\ = folder with the library
Libreria_Posta\ProvaLib = example test

 8-)
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

 

TinyPortal © 2005-2018