summaryrefslogtreecommitdiff
path: root/ACE/examples/APG/Naming/EMail.h
blob: fc38913a10abd289e089468341947e1ed71b9419 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// $Id$

#ifndef EMAIL_H
#define EMAIL_H

#include "ace/Log_Msg.h"

class EMail
  {
  public:
    EMail()
    { }

    int send (const char *to,
              const char *from,
              const char *subject,
              const char *message)
    {
      ACE_DEBUG ((LM_ERROR, ACE_TEXT ("To:\t%s\n"), to));
      ACE_DEBUG ((LM_ERROR, ACE_TEXT ("From:\t%s\n"), from));
      ACE_DEBUG ((LM_ERROR, ACE_TEXT ("Subject:\t%s\n"), subject));
      ACE_DEBUG ((LM_ERROR, ACE_TEXT ("\n%s\n"), message));

      return 0;
    }
  };

#endif /* EMAIL_H */