Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Emailing 1

Status
Not open for further replies.

heydyrtt

Programmer
Dec 12, 2001
63
US
This is a helpdesk program, when a person enters a trouble call and assigns a tech to the call, to be able to send an email in the blind to the tech assigned. Any help appreciated. I'm using BCB6

Thanks

Heydyrtt
 
You will need to use SNMP. There is a good article May 1999 of C++ Builders Developer's Journal:
James P. Cottingham
-----------------------------------------
[sup]To determine how long it will take to write and debug a program, take your best estimate, multiply that by two, add one, and convert to the next higher units.[/sup]
 
Thanks 2ffat, have a purple star



Thanks


Heydyrtt
 
2ffat,

Have you done this, I get it to connect and everything but when it gets to SendMail it error's out. Gives message "Incomplete header" do you do what I'm leaving out, I have everything that the above linked showed. Code below.

void __fastcall TTroubleFrm::btnSend1Click(TObject &Sender)
{
SMTP1->Connect();
SMTP1->ClearParameters();
SMTP1->PostMessage->FromAddress = edName->Text;
SMTP1->PostMessage->FromName = edName->Text;
SMTP1->PostMessage->ToAddress->Add();
SMTP1->PostMessage->Subject = LookupClient->Text;
SMTP1->PostMessage->LocalProgram = " SSC-HelpDesk";
SMTP1->PostMessage->Body->Assign(DBMemo1->Lines);
SMTP1->PostMessage->Body->Assign(DBMemo2->Lines);
SMTP1->SendMail();

Heydyrtt
 
Nevermind, found it
SMTP1->PostMessage->ToAddress->Add();
Was the problem.

Heydyrtt
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top