2001-08-21 05:11:20 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: email.h
|
|
|
|
// Purpose: wxEmail: portable email client class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2001-08-21
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2002-09-07 08:28:46 -04:00
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
2001-08-21 05:11:20 -04:00
|
|
|
#pragma interface "email.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _WX_EMAIL_H_
|
|
|
|
#define _WX_EMAIL_H_
|
|
|
|
|
|
|
|
#include "wx/net/msg.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* wxEmail
|
|
|
|
* Miscellaneous email functions
|
|
|
|
*/
|
|
|
|
|
|
|
|
class wxEmail
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
//// Ctor/dtor
|
|
|
|
wxEmail() {};
|
|
|
|
|
|
|
|
//// Operations
|
|
|
|
|
|
|
|
// Send a message.
|
|
|
|
// Specify profile, or leave it to wxWindows to find the current user name
|
2001-09-06 15:27:52 -04:00
|
|
|
static bool Send(wxMailMessage& message, const wxString& profileName = wxEmptyString,
|
|
|
|
const wxString& sendMail = wxT("/usr/lib/sendmail -t"));
|
2001-08-21 05:11:20 -04:00
|
|
|
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //_WX_EMAIL_H_
|
|
|
|
|