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
Marius0188Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
EuronavConnect With a Mentor Commented:
The extended MAPI examples also works quite well
http://www.imibo.com/imidev/delphi/les/index_2.html#Request06
0
 
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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
MerijnBSr. Software EngineerCommented:
ok, in that case you'll have to figure out something else
0
 
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
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.