Thread View: borland.public.cppbuilder.internet.web
2 messages
2 total messages
Started by Charles Leggette
Mon, 23 Aug 2004 16:03
Babak's Email Using FastNet fail's on Connection
Author: Charles Leggette
Date: Mon, 23 Aug 2004 16:03
Date: Mon, 23 Aug 2004 16:03
19 lines
1569 bytes
1569 bytes
I used your suggestion, but I get a "Connection Failed" response. Any Idea
as to why. I notice there's no password or authenication info...how does one
instantiate those properties??
try
{
SMTP->Host="mail.xxxx.com";//"smtpauth.earthlink.net";
SMTP->UserID="charlie";//"xxxxxxxxxx@earthlink.net";
SMTP->PostMessage->FromName="Screen Name";
SMTP->PostMessage->ReplyTo="xxxxxxxxxxxx@earthlink.net";
SMTP->PostMessage->Subject="MySubject";
// 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();
}
catch(...)
{
}
Re: Babak's Email Using FastNet fail's on Connection
Author: Pedram
Date: Tue, 24 Aug 2004 06:54
Date: Tue, 24 Aug 2004 06:54
40 lines
2160 bytes
2160 bytes
I guess Your Header is not complete
Then try this :
SMTP->Host="some VALID smtp Host address";
SMTP->UserID="Your VALID User ID there";
SMTP->PosrMessage->FromName="ValidName";
SMTP->PosrMessage->FromAddress="ValidAddress";
SMTP->PostMessage->Date=Date();
SMTP->PostMessage->Subject="Test";
SMTP->PosrMessage->ReplyTo="VALID Address";
SMTP->PostMessage->Body->Add("Simple Test");
SMTP->PostMessage->ToAddress->Add("Reciever");
SMTP->Connect();
SMTP->SendMail();
Tell me if there is something wrong and problem persist
Charles Leggette wrote in message <412a155d$1@newsgroups.borland.com>...
>I used your suggestion, but I get a "Connection Failed" response. Any Idea
>as to why. I notice there's no password or authenication info...how does
one
>instantiate those properties??
>try
>{
> SMTP->Host="mail.xxxx.com";//"smtpauth.earthlink.net";
> SMTP->UserID="charlie";//"xxxxxxxxxx@earthlink.net";
> SMTP->PostMessage->FromName="Screen Name";
> SMTP->PostMessage->ReplyTo="xxxxxxxxxxxx@earthlink.net";
> SMTP->PostMessage->Subject="MySubject";
>// 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();
> }
> catch(...)
> {
> }
>
>
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