BrowseRefs: Context menu enhancements
[TortoiseGit.git] / src / TortoiseProc / Patch.h
blob5b7e2a149b625e75a512ef5c768d1bed1b00290b
1 #pragma once
3 #include "hwsmtp.h"
4 #include "TGitPath.h"
6 #define REG_SMTP_SERVER _T("Software\\TortoiseGit\\EMAIL\\SMTPSERVER")
7 #define REG_SMTP_PORT _T("Software\\TortoiseGit\\EMAIL\\PORT")
8 #define REG_SMTP_ISAUTH _T("Software\\TortoiseGit\\EMAIL\\ISAUTH")
9 #define REG_SMTP_USER _T("Software\\TortoiseGit\\EMAIL\\USER")
10 #define REG_SMTP_PASSWORD _T("Software\\TortoiseGit\\EMAIL\\PASSWORD")
12 class CPatch
14 protected:
15 // void AddRecipient(CSmtp &mail, CString &tolist, bool isCC= FALSE);
16 void GetNameAddress(CString &in, CString &name,CString &address);
17 public:
18 CPatch();
19 ~CPatch(void);
20 int Parser(CString &pathfile);
21 int Send(CString &pathfile,CString &To, CString &CC,bool bAttachment);
23 static int Send(CTGitPathList &list,CString &To,CString &CC, CString &subject,bool bAttachment,CString *errortext);
25 CString m_LastError;
26 CString m_Author;
27 CString m_Date;
28 CString m_Subject;
29 CString m_PathFile;
30 CStringA m_Body;
31 CString m_strBody;
32 void ConvertToArray(CString &to, CStringArray &Array);