Solved

How to do the email?

Posted on 2001-08-09
2
138 Views
Last Modified: 2010-04-06
I would like to ask how can I do the emai by using the own company server..how to write the program that can call all email to all the person in my contact list..my address book?
0
Comment
Question by:lbseong
2 Comments
 

Accepted Solution

by:
BryGuy earned 50 total points
ID: 6368575
Here is a code snip that uses MAPI to recieve the addresses from your address book and places them in a ListBox ... you should be able to modify it for your needs:

...
var
  RecipDesc     : TMapiRecipDesc;
  Recips        : ulong;
  RecipDescs    : PMapiRecipDesc;
  i             : integer;
...

if (MapiAddress (0, 0, 'Select Recipients', 4, '', 0, RecipDesc, 0, 0,
    @Recips, RecipDescs) = SUCCESS_SUCCESS) then
  begin
    for i := 0 to Recips - 1 do
      ListBox1.Items.Append (PMapiRecipDesc(PChar(RecipDescs) + i *
        SizeOf(TMapiRecipDesc))^.lpszAddress);
    MapiFreeBuffer (RecipDescs);
  end;

As for sending the mail - there are many methods... SMTP, you can get the direct MX address for SMTP server(s), use MAPI to send, etc...

Bryan Ashby
0
 

Author Comment

by:lbseong
ID: 6406771
let said i would like to call the email function in one system,can it be done?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
indy tidtcpclient threading issue 8 63
Comparing dates in Delphi. Greater than/ Less than 3 117
Delphi Form ownership 4 73
can't find the executable in Simulator 1 80
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 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