Article View: borland.public.cppbuilder.internet.web
Article #1760Re: Sending e-mail
From: 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 :">
Technical Details
Message-ID:
<4102949d@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41012900$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,ca8b3c3a265b4b79 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Babak" <babak_info@hot.pop> Newsgroups: borland.public.cppbuilder.internet.web References: <41012900$1@newsgroups.borland.com> Subject: Re: Sending e-mail Date: Sat, 24 Jul 2004 21:19:15 +0430 Lines: 20 X-Newsreader: Microsoft Outlook Express 4.72.3110.37 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.37 NNTP-Posting-Host: 62.60.157.36 Message-ID: <4102949d@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1090688157 62.60.157.36 (24 Jul 2004 09:55:57 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail