Home > Back-end >  Did the DELPHI examples of direct link EXCHANGE
Did the DELPHI examples of direct link EXCHANGE

Time:09-26

I have implemented the DELPHI call OUTLOOK send mail, but now the client and do not have OUTLOOK, so all the links in DELPHI, I see a OUTLOOKAPPLICATION SERVER panel, but don't know how to do it, anyone give some thoughts greatly, thank you very much ~ ~ ~

CodePudding user response:

Need to install outlook, the outlook ocx component of outlookapplication also packaging

CodePudding user response:

Using Delphi controls within the Indy, can send EMail directly,

Usually use the three controls TIdPOP3 TIdMessage, TIdSMTP can,



The above is related to the interface, for reference only.

CodePudding user response:

refer to the second floor lyhoo163 response:
using Delphi controls within the Indy, can directly send EMail,

Usually use the three controls TIdPOP3 TIdMessage, TIdSMTP can,



The above is related to the interface, for reference only.


Yes SMTP mail can be sent, but now the environment is the company's internal EXCHANGE, using the inbox is internal, that is a problem, the EXCHANGE SMTP all don't know what is ~ ~,,,, this is the key

CodePudding user response:

reference 1st floor Playmaster response:
need to install outlook, outlook ocx component of outlookapplication also packaging

Consult OUTLOOKAPPLIACTION prawns that is not a don't need to open the OUTLOOK can transfer mail, all user account password is saved in the software

CodePudding user response:

 if IdSMTP1. Connected then 
IdSMTP1. Disconnect;
IdSMTP1. AuthenticationType:=atNone;
IdSMTP1. Host:=mhost;
IdSMTP1. HeloName:=mhost;
IdSMTP1. Port:=25;
IdSMTP1. Connect;


Try

Bodylist. The Clear;
Bodylist. Add (mbody);
IdHTML:=TIdText. Create (IdMessage1 MessageParts, bodylist);
IdHTML. ContentType:='text/HTML;
IdHTML. ContentTransfer:='8 bit;//8 bit


With IdMessage1 do
The begin
From the Text:=mfrom;
Recipients. EMailAddresses:=mto;
CCList. EMailAddresses:=MCC;
BccList. EMailAddresses:=MBCC;
Subject:=msub;
ReceiptRecipient. Text:=' ';
If priorityhigh='H' then
Priority:=mpHighest else
Priority:=mpNormal;

end;
IdSMTP1. Send (IdMessage1);
Except,

end;


Do you want to have a domain can email account.

CodePudding user response:

reference 5 floor fansfantasy reply:
 if IdSMTP1. Connected then 
IdSMTP1. Disconnect;
IdSMTP1. AuthenticationType:=atNone;
IdSMTP1. Host:=mhost;
IdSMTP1. HeloName:=mhost;
IdSMTP1. Port:=25;
IdSMTP1. Connect;


Try

Bodylist. The Clear;
Bodylist. Add (mbody);
IdHTML:=TIdText. Create (IdMessage1 MessageParts, bodylist);
IdHTML. ContentType:='text/HTML;
IdHTML. ContentTransfer:='8 bit;//8 bit


With IdMessage1 do
The begin
From the Text:=mfrom;
Recipients. EMailAddresses:=mto;
CCList. EMailAddresses:=MCC;
BccList. EMailAddresses:=MBCC;
Subject:=msub;
ReceiptRecipient. Text:=' ';
If priorityhigh='H' then
Priority:=mpHighest else
Priority:=mpNormal;

end;
IdSMTP1. Send (IdMessage1);
Except,

end;


Do you want to have a domain can email account.
thank you master, the system will prompt the error connect with SSL, as if through the SSL authentication?

CodePudding user response:

Vvccjj444
reference 4 floor response:
Quote: refer to 1st floor Playmaster response:

Need to install outlook, the outlook ocx component of outlookapplication also packaging

Consult OUTLOOKAPPLIACTION prawns that is not a don't need to open the OUTLOOK can transfer mail, all user account password is saved in the software

Need to install, and use it every time you don't need to open the outlook,

CodePudding user response:

Your computer with a browser can log in to your exchange mailbox?

CodePudding user response:

refer to the eighth floor fansfantasy response:
your computer with a browser can log in to your exchange mailbox?

Can, can, OWA landing directly, but use SMTP connection error, I don't know why
Landing, OWA domain \ username is also want to write so?

CodePudding user response:


Consult OUTLOOKAPPLIACTION prawns that is not a don't need to open the OUTLOOK can transfer mail, all user account password is saved in the software

Need to install, and use it every time you don't need to open the outlook,


refer to 7th floor Playmaster response:
Quote: refer to 4th floor vvccjj444 response:

Quote: refer to 1st floor Playmaster response:

Need to install outlook, the outlook ocx component of outlookapplication also packaging

Consult OUTLOOKAPPLIACTION prawns that is not a don't need to open the OUTLOOK can transfer mail, all user account password is saved in the software

Need to install, and use it every time you don't need to open the outlook,
now I can only call outlook to send, that is to say open outlook to minimize line, installed but not open iaOUTLOOK don't know how, please comment, thank you

CodePudding user response:

You just installed outlook (after successful installation will be automatically registered corresponding ocx component), don't need to start the outlook email, have to do is just run your own program,

CodePudding user response:

If it's just emailing, configuration EXCHANGE POP and SMTP service, DELPHI controls a lot in this regard, if you need to outlook will need to install OFFICE operation, through the ACTIVEX method call
  • Related