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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email confirm

Status
Not open for further replies.

drfb

Programmer
Jul 5, 2002
23
Hi!
I have realized a program with which I send an email to my friends but I would like to know if someone know how it's possible to receive an automatically confirm (obviusly by email) (something like outlook)

Thanks,
Franz
 

Hi

yes it is possible..Use the TOutlookApplcation in Builder and use the example below to guide you.

hope this helps

Regards

BuilderSpec


void __fastcall TForm1::Button1Click(TObject *Sender)
{
_NameSpaceDisp ns;
_MailItemDisp ml;
TOLEBOOL Request=true;

OutlookApplication1->Connect();
ns = OutlookApplication1->GetNamespace(WideString("MAPI"));
ml = OutlookApplication1->CreateItem(olMailItem);
ml.set_Subject(WideString(Subject->Text));
ml.set_To(WideString(To->Text));
ml.set_Body(WideString(Body->Text));
ml.set_ReadReceiptRequested ( Request );
ml.Display(true);


}
 
Thank you very much for your help.
I'm trying to use your code but the builder doesn't compile the " ml.Display(true);"
could you help me?
Where can I find more information about outlookapllication component?

Thank you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
f.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top