Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 6437
  • Last Modified:

Delphi 7 :: Indy 10 :: Sent Email via Exchange Server

Hi Experts,

I want to sent emails using Delphi 7 and Indy 10 components.
This I can done with normal SMTP configuration.

What I need is an example code of how do sent emails if your application runs on a exchange server or by using exchange server settings? Which components etc....

Please show working example code.

Thanks in advance
0
Marius0188
Asked:
Marius0188
  • 2
  • 2
  • 2
  • +2
1 Solution
 
MerijnBSr. Software EngineerCommented:
afaik exchange also has a 'smtp plugin'. In other words, you can use smtp to communicate with an exchange, maybe this is interesting.
0
 
Marius0188Author Commented:
Is this plugin to be implemented on the server side?

Because the company will not change their server configuration, I will have to make it work from my side (software).

0
 
MerijnBSr. Software EngineerCommented:
ok, in that case you'll have to figure out something else
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
imitchieCommented:
you want to send email or access "sent mail"? there should be plenty of sample indy code for sending simple email via smtp server (exchange works via smtp)
0
 
Marius0188Author Commented:
I just want to be able to sent email using Indy.
Don't need to access any inboxes etc....

But I am not sure how exchange servers etc words but as far as I know I should use IMAP4 component of Indy. I have tried to build a small demo for testing purposes.

I start to connect to server but then I receives a EidProtocolException something about ".... in invalid state...." if that can help.
0
 
EuronavCommented:
This might get you started.  Code sample is for older version of indy but easy to fix compile errors and get it working on latest version.
see : http://delphi.about.com/od/internetintranet/l/aa020304a.htm
0
 
EuronavCommented:
The extended MAPI examples also works quite well
http://www.imibo.com/imidev/delphi/les/index_2.html#Request06
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
  • 2
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now