Solved

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

Posted on 2007-11-19
9
6,042 Views
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
0
Comment
Question by:Marius0188
  • 2
  • 2
  • 2
  • +2
9 Comments
 
LVL 19

Expert Comment

by:MerijnB
Comment Utility
afaik exchange also has a 'smtp plugin'. In other words, you can use smtp to communicate with an exchange, maybe this is interesting.
0
 

Author Comment

by:Marius0188
Comment Utility
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
 
LVL 19

Expert Comment

by:MerijnB
Comment Utility
ok, in that case you'll have to figure out something else
0
 
LVL 25

Expert Comment

by:imitchie
Comment Utility
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:Marius0188
Comment Utility
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
 
LVL 1

Expert Comment

by:Euronav
Comment Utility
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
 
LVL 1

Accepted Solution

by:
Euronav earned 500 total points
Comment Utility
The extended MAPI examples also works quite well
http://www.imibo.com/imidev/delphi/les/index_2.html#Request06
0
 
LVL 1

Expert Comment

by:Computer101
Comment Utility
Forced accept.

Computer101
EE Admin
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now