Recent

Author Topic: How send the email and Attach a file with Lazarus?  (Read 29938 times)

Fortuna1

  • Full Member
  • ***
  • Posts: 164
How send the email and Attach a file with Lazarus?
« on: July 10, 2010, 12:11:37 pm »
How send  mail with Lazrus
and how Attach a file  and sen with mail?


Can anyone help with case.
Thanks

stonefull

  • Jr. Member
  • **
  • Posts: 54
Re: How send the email and Attach a file with Lazarus?
« Reply #1 on: July 10, 2010, 01:58:14 pm »
Use lnet. You can download it in lnet.wordpress.com.

Fortuna1

  • Full Member
  • ***
  • Posts: 164
Re: How send the email and Attach a file with Lazarus?
« Reply #2 on: July 10, 2010, 03:48:29 pm »
Working very good.
Thanks.

Silvio Clécio

  • Guest
Re: How send the email and Attach a file with Lazarus?
« Reply #3 on: July 10, 2010, 06:28:24 pm »
Hello,

Please, take a look at this project:

http://code.google.com/p/lazsolutions

Good luck. ;)

cpalx

  • Hero Member
  • *****
  • Posts: 753
Re: How send the email and Attach a file with Lazarus?
« Reply #4 on: July 11, 2010, 03:20:49 am »
Any idea how to send mail in mac?, synapse fails in mac

Silvio Clécio

  • Guest
Re: How send the email and Attach a file with Lazarus?
« Reply #5 on: July 11, 2010, 04:10:12 am »
I don't have the MAC to try a test, but the staff has updated the Synapse. Please, can you test if lazsendmail works on MAC?

cpalx

  • Hero Member
  • *****
  • Posts: 753
Re: How send the email and Attach a file with Lazarus?
« Reply #6 on: July 11, 2010, 04:12:47 am »
it does not work, the problem is synapse, it calls to libc and does not work in mac

cpalx

  • Hero Member
  • *****
  • Posts: 753
Re: How send the email and Attach a file with Lazarus?
« Reply #7 on: July 11, 2010, 04:20:51 am »
with the last synapse, it could compile, but i dont know ow to execute, it does not have a gui ...

cpalx

  • Hero Member
  • *****
  • Posts: 753
Re: How send the email and Attach a file with Lazarus?
« Reply #8 on: July 11, 2010, 04:44:39 am »
i tried
./lazsendmail -from=xxxxx@gmail.com -to=cortiz@xxxxxx.com  -subject=prueba -user=xxxx@gmail.com -password=xxxxx -host=smtp.gmail.com -port=587 -ssl=true -tls=true -message=cpal

and i have this
-------------------------
SMTP error: MailFrom.
Permanent Failure-Other or undefined security status530 5.7.0 Must issue a STARTTLS command first. q17sm336647ybk.17

Try sending again

-------------------------

the mails and password are ok y trid with port 465 and the error is another one

-------------------------
SMTP error: Login.
???-Other undefined Status

Try sending again

-------------------------

i am getting crazy ...

Silvio Clécio

  • Guest
Re: How send the email and Attach a file with Lazarus?
« Reply #9 on: July 11, 2010, 05:17:11 am »
You need to install the Libs for sending email.

For Win I use libeay32.dll and ssleay32.dll. In Linux I install with sudo apt-get install libssl-dev. Probably exists in the MAC a Lib for sending email.

These Libs are also used by Firefox, Chrome, PostgreSQL, Thunderbird... etc.

cpalx

  • Hero Member
  • *****
  • Posts: 753
Re: How send the email and Attach a file with Lazarus?
« Reply #10 on: July 11, 2010, 05:07:13 pm »
The files exists, i will continue trying

krexon

  • Jr. Member
  • **
  • Posts: 80
Re: How send the email and Attach a file with Lazarus?
« Reply #11 on: July 11, 2010, 09:43:27 pm »
Try 'blat' (http://www.blat.net/). I use it for several years :)

cpalx

  • Hero Member
  • *****
  • Posts: 753
Re: How send the email and Attach a file with Lazarus?
« Reply #12 on: July 12, 2010, 12:58:49 am »
I need it works in Windows / Linux and mac

Fortuna1

  • Full Member
  • ***
  • Posts: 164
Re: How send the email and Attach a file with Lazarus?
« Reply #13 on: July 12, 2010, 07:55:32 am »
I try  attached  inet sample.


lnet/examples/visual/smtp/smtptest.lpi

Its work fine.
I tested in Linux.


I think it works Windows / Linux and mac

krexon

  • Jr. Member
  • **
  • Posts: 80
Re: How send the email and Attach a file with Lazarus?
« Reply #14 on: July 12, 2010, 09:22:04 am »
http://caspian.dotconf.net/menu/Software/SendEmail/

[Supported Platforms: Linux, BSD, OS X, Windows 98, Windows NT, Windows 2000, & Windows XP]
SendEmail is licensed under the GNU GPL, either version 2 of the License or (at your option) any later version.

 

TinyPortal © 2005-2018