2001-08-21 09:11:20 +00: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
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_EMAIL_H_
|
|
|
|
#define _WX_EMAIL_H_
|
|
|
|
|
|
|
|
#include "wx/net/msg.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* wxEmail
|
|
|
|
* Miscellaneous email functions
|
|
|
|
*/
|
|
|
|
|
2003-08-03 17:11:53 +00:00
|
|
|
class WXDLLIMPEXP_NETUTILS wxEmail
|
2001-08-21 09:11:20 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
//// Ctor/dtor
|
|
|
|
wxEmail() {};
|
|
|
|
|
|
|
|
//// Operations
|
|
|
|
|
|
|
|
// Send a message.
|
2004-05-25 11:20:37 +00:00
|
|
|
// Specify profile, or leave it to wxWidgets to find the current user name
|
2001-09-06 19:27:52 +00:00
|
|
|
static bool Send(wxMailMessage& message, const wxString& profileName = wxEmptyString,
|
2005-09-02 23:36:19 +00:00
|
|
|
const wxString& sendMail = wxT("/usr/sbin/sendmail -t"));
|
2001-08-21 09:11:20 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //_WX_EMAIL_H_
|
|
|
|
|