Recent

Author Topic: Sending e-mail with Indy  (Read 7710 times)

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Sending e-mail with Indy
« on: October 20, 2009, 05:52:10 pm »

Hi all,

Someone has experience with sending e-mail with Indy?
Source or link will be appreciated.
Thanks.

clauslack

  • Sr. Member
  • ****
  • Posts: 275
Re: Sending e-mail with Indy
« Reply #1 on: October 20, 2009, 07:21:09 pm »
Hello

Here a litle example for adapt.

Works fine.

You must change function TForm1.ConectarStmp with yours mail's config.(user, host, port)

In another post I write that hotmail don't support UTF8, so I convert the memo to iso8859, you can adapt this too.
Maybe need (OpenSll libraries under Windows) libeay32.dll and ssleay32.dll.
Tested with Lazarus 0.9.27/0.9.29 fpc 2.2.4/2.3.1 (Indy 10.0.2.3)
Regards :)
« Last Edit: October 20, 2009, 07:25:32 pm by clauslack »

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: Sending e-mail with Indy
« Reply #2 on: October 20, 2009, 07:50:37 pm »

@clauslack
Can I get the link?
Thanks.

clauslack

  • Sr. Member
  • ****
  • Posts: 275
Re: Sending e-mail with Indy
« Reply #3 on: October 20, 2009, 08:18:49 pm »
Sorry

What link?
(for openssl for Windows, I don't remender, maybe http://code.google.com/p/openssl-for-windows/)

IndianaJones

  • Hero Member
  • *****
  • Posts: 509
Re: Sending e-mail with Indy
« Reply #4 on: October 21, 2009, 08:05:53 am »

Thanks for the source,
I will check it out and reply the result.
Regards.

clauslack

  • Sr. Member
  • ****
  • Posts: 275
Re: Sending e-mail with Indy
« Reply #5 on: October 23, 2009, 05:04:22 pm »
Tip
If you send mails to many recipients, don't use carbon copy because
some smtp servers has a limit.

You can make a loop with idSMTP.send(idmessage); and send mails from a database(for example)

Regards

 

TinyPortal © 2005-2018