for a nice SMTP component, check out Indy, at http://www.indyproject.org/Sockets/Download/Borland.iwp
Indy uses blocking sockets, so there's no messing around with event handlers all over the place to respond to connects, disconnects, bits of messages sent etc you just connect send disconnect (hint: for a MIME email, create a tIDMessage , then create a tIDText (passing the tIDMessage .messageparts as parameter) that will contain the text body of the email. Next create a tIDAttachment ( again passing the tIDMessage.messageparts as the first parameter , this makes it an attachment to the tIDMessage), then just send the tIDMessage using a tIdSMTP ) Paul. Roshanak Farhoodi wrote: >Dear Delphi helpers, > >Recently I fall into an urgent need for adding a "send mail" button to one of >my applications for sending some reports to a predefined set of email >addresses. Does any1 has any experience about how this can b done? >Thanks so much in advance, > >Roshanak > > >__________________________________________________ >Do You Yahoo!? >Tired of spam? Yahoo! Mail has the best spam protection around >http://mail.yahoo.com >_______________________________________________ >Delphi mailing list -> [email protected] >http://www.elists.org/mailman/listinfo/delphi > > > _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

