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

Posted on 2007-11-19
Last Modified: 2012-08-14
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
Question by:Marius0188
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +2
LVL 19

Expert Comment

ID: 20318056
afaik exchange also has a 'smtp plugin'. In other words, you can use smtp to communicate with an exchange, maybe this is interesting.

Author Comment

ID: 20318174
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).

LVL 19

Expert Comment

ID: 20318282
ok, in that case you'll have to figure out something else
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 25

Expert Comment

ID: 20318501
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)

Author Comment

ID: 20318644
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.

Expert Comment

ID: 21012524
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 :

Accepted Solution

Euronav earned 500 total points
ID: 21012537
The extended MAPI examples also works quite well

Expert Comment

ID: 21216658
Forced accept.

EE Admin

Featured Post

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses
Course of the Month8 days, 17 hours left to enroll

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question