1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxMailMessage
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma interface "msg.h"
21 * Encapsulates an email message
29 wxMailMessage(const wxString
& subject
, const wxString
& to
,
30 const wxString
& body
, const wxString
& attachment
= wxEmptyString
,
31 const wxString
& attachmentTitle
= wxEmptyString
)
36 if (!attachment
.IsEmpty())
38 m_attachments
.Add(attachment
);
39 m_attachmentTitles
.Add(attachmentTitle
);
47 void AddTo(const wxString
& to
) { m_to
.Add(to
); }
48 void AddCc(const wxString
& cc
) { m_cc
.Add(cc
); }
49 void AddBcc(const wxString
& bcc
) { m_bcc
.Add(bcc
); }
50 void AddAttachment(const wxString
& attach
, const wxString
& title
= wxEmptyString
)
51 { m_attachments
.Add(attach
); m_attachmentTitles
.Add(title
); }
53 void SetSubject(const wxString
& subject
) { m_subject
= subject
; }
54 void SetBody(const wxString
& body
) { m_body
= body
; }
57 wxArrayString m_to
; //The To: Recipients
58 wxArrayString m_cc
; //The CC: Recipients
59 wxArrayString m_bcc
; //The BCC Recipients
60 wxString m_subject
; //The Subject of the message
61 wxString m_body
; //The Body of the message
62 wxArrayString m_attachments
; //Files to attach to the email
63 wxArrayString m_attachmentTitles
; //Titles to use for the email file attachments