diff options
Diffstat (limited to 'ACE/examples/APG/Naming/EMail.h')
-rw-r--r-- | ACE/examples/APG/Naming/EMail.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ACE/examples/APG/Naming/EMail.h b/ACE/examples/APG/Naming/EMail.h new file mode 100644 index 00000000000..fc38913a10a --- /dev/null +++ b/ACE/examples/APG/Naming/EMail.h @@ -0,0 +1,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 */ |