Hi Neven I've just been down this track and used ICS - Internet Component Suite (Aka FPIETTE's Components). It's free :-)
Here are some sites: http://www.overbyte.be http://www.rtfm.be/fpiette/indexuk.htm http://users.swing.be/francois.piette/indexuk.htm The one "gotcha" I found was that the component would regularly report back an error saying it wasn't ready, e.g. after sending one email and then wanting to send another. I spent ages trying to find the answer on google and ended up resorting to the following: repeat Application.ProcessMessages; until SmtpCli1.State in [smtpReady, smtpInternalReady]; SmtpCli1.Mail; // send the email to the smtp server for it to forward repeat Application.ProcessMessages; until SmtpCli1.State in [smtpReady, smtpInternalReady]; SmtpCli1.Quit; // close connection to smtp server So the idea is, make sure the connection is ready before mailing and before quitting. IF you go with this component and need any other help, just let me know. Cheers Dave Jollie Developer, TOWER NZ IT * *: 09 368 4259 *: 09 306 6801 *: [EMAIL PROTECTED] *: 46 Parnell Rd, Parnell, Auckland -----Original Message----- From: Neven MacEwan [mailto:[EMAIL PROTECTED] Sent: Thursday, 11 September 2003 3:05PM To: Multiple recipients of list delphi Subject: [DUG]: SImple smtp agent Hi Can anyone recommend a component for sending emails via an SMTP server? Simple (non HTML) with attachments TIA Regards Neven N.K. MacEwan B.E. E&E Ph 649 621 0001 Fax 649 621 0400 [EMAIL PROTECTED] --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
