Forum > Beginners
Sending Email with Indy
(1/1)
hugoengel2003:
I tried so hard to make a sending email aplication with Indy, but I didn't get!
Please, help-me!
JanRoza:
What version of Windows, Lazarus, FPC?
What have you tried so far, show your project so people know what you did and what is wrong.
Crystal balls are rare these days :D
Paul Breneman:
It isn't Indy, but here is a two year old Free Pascal example using Synapse that might be helpful:
http://turbocontrol.com/easyemail.htm
ChrisF:
Here is a simple test program.
This example is using directly the TIdSMTP class of Indy, but using the corresponding visual component of Indy instead is of course also possible: see "Indy Clients Protocols (nz)" panel in the IDE component palette.
Fields that must absolutely be changed in this sample (in "TForm1.Button2Click" code):
-IdMessage.Recipients.EmailAddresses : must have a valid recipient email address
-IdSMTP.Host: probably your own SMTP server (i.e. SMTP server of your ISP)
-IdSMTP.Port: eventually, the port number of the targeted SMTP server (25 in this sample)
Change the other fields according to your own needs.
** EDIT (2014-06-09) ** : Updated version for this sample. Indy dependency has been added to the test project for portable consideration (direct path to Indy library no more needed).
mica:
not Indy but Synapse
uses .....smtpsend....
SendToEx( MailFrom, MailTo, Subject, SMTPHost, MailData, Username, Password)
http://synapse.ararat.cz/doc/help/smtpsend.html
Navigation
[0] Message Index