Solved

How to do the email?

Posted on 2001-08-09
2
145 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
[X]
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 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month5 days, 5 hours left to enroll

635 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