diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-18 11:57:56 +0100 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-02-18 11:57:56 +0100 |
| commit | 0979cbdd39166d6b5a42380e3ff6297e77d1236d (patch) | |
| tree | b6de00056eb26b5cd995db09b3dfcbb9ecbd21d6 /lib/Plugins/Mailx.cpp | |
| parent | 5c22d0c110b8678509817abf9ecf10e3f48525d5 (diff) | |
| parent | 77ef93c89e3fa75d1a5c0f126bcbb001a152bacf (diff) | |
| download | abrt-0979cbdd39166d6b5a42380e3ff6297e77d1236d.tar.gz abrt-0979cbdd39166d6b5a42380e3ff6297e77d1236d.tar.xz abrt-0979cbdd39166d6b5a42380e3ff6297e77d1236d.zip | |
Merge branch 'master' of git://git.fedorahosted.org/git/crash-catcher
Diffstat (limited to 'lib/Plugins/Mailx.cpp')
| -rw-r--r-- | lib/Plugins/Mailx.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/Plugins/Mailx.cpp b/lib/Plugins/Mailx.cpp index cb26e39..2b8ef35 100644 --- a/lib/Plugins/Mailx.cpp +++ b/lib/Plugins/Mailx.cpp @@ -28,8 +28,8 @@ #define MAILX_SUBJECT "\"CrashCatcher automated bug report\"" CMailx::CMailx() : - m_sEmailFrom(""), - m_sEmailTo(""), + m_sEmailFrom("user@localhost"), + m_sEmailTo("root@localhost"), m_sParameters(""), m_sAttachments("") {} @@ -56,7 +56,7 @@ void CMailx::SendEmail(const std::string& pText) } -void CMailx::Report(const report_t& pReport) +void CMailx::Report(const crash_report_t& pReport) { std::stringstream ss; @@ -97,13 +97,13 @@ void CMailx::Report(const report_t& pReport) ss << "==============" << std::endl; ss << "See the attachment[s]" << std::endl; - if (pReport.m_bBinaryData1 != "") + if (pReport.m_sBinaryData1 != "") { - m_sAttachments = " -a " + pReport.m_bBinaryData1; + m_sAttachments = " -a " + pReport.m_sBinaryData1; } - if (pReport.m_bBinaryData2 != "") + if (pReport.m_sBinaryData2 != "") { - m_sAttachments = " -a " + pReport.m_bBinaryData2; + m_sAttachments = " -a " + pReport.m_sBinaryData2; } SendEmail(ss.str()); |
