Thread View: borland.public.cppbuilder.internet.web
3 messages
3 total messages
Started by H. R.
Fri, 23 Jul 2004 15:04
Sending e-mail
Author: H. R.
Date: Fri, 23 Jul 2004 15:04
Date: Fri, 23 Jul 2004 15:04
8 lines
997 bytes
997 bytes
Hi, What is the best way for sending e-mail from a win-application written by BCB6.0? Which component or class do you propose? Is TSendMail class a good solution? How does it works? Regards,
Re: Sending e-mail
Author: Michel Leunen
Date: Fri, 23 Jul 2004 19:21
Date: Fri, 23 Jul 2004 19:21
19 lines
1632 bytes
1632 bytes
H. R. wrote: > What is the best way for sending e-mail from a win-application written by BCB6.0? > Which component or class do you propose? Is TSendMail class a good solution? How does it works? I don't know what TSendmail is but both Indy which is shipped with BCB6 or ICS (www.overbyte.be) which I use, contain the components needed to send email via a smtp server. Alternatively, you can use MAPI to send a mail. Michel -- ---------------------------------------- Michel Leunen mailto: see my homepage. C++Builder, C++BuilderX, BCC5.5.1 Web site: http://www.leunen.com/ ----------------------------------------
Re: Sending e-mail
Author: Babak
Date: Sat, 24 Jul 2004 16:49
Date: Sat, 24 Jul 2004 16:49
18 lines
1481 bytes
1481 bytes
Peoples are suggesting Indy , but in addition I can write some FastNet
codes;
SMTP->Host="smtp.somehost.sth"
SMTP->UserID="useridfromsite";
SMTP->PostMessage->FromAddress="address@somehost.sth";
SMTP->PostMessage->FromName="Screen Name";
SMTP->PostMessage->ReplyTo="a_reply@address.sth";
SMTP->PostMessage->Subject="Subject";
SMTP->PostMessage->ToAddress->Add("a@b.c");//because its a list
SMTP->PostMessage->Body->Add("hello world");//TStringList
SMTP->PostMessage->Date=Date();
SMTP->Connect();
SMTP->SendMail();
Sorry if I wrote a very simple one
you can check return values , error catcher such as try{}catch() etc...
Babak :">
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads