Sending email maybe have problems, how to deal with them?

32 views
Skip to first unread message

Rob...@163.com

unread,
Aug 4, 2011, 7:03:51 AM8/4/11
to Crashrpt
Crashrpt is very convenient to use.
I looked through the document, and found only three ways to send
report.

1. via HTTP (I don't want to setup a http server)
2. via Simple MAPI (It's deprecated)
3. via SMTP (I have to use this)

While using SMTP to send report, I recieve an error in function
"DnsQuery". Our LAN do not have Name Server.
So I modified the src code of CrashSender and hard code our mail
server ip address into it.(Just only for test) After that, I recieve
another error said that email content is invalid. SMTP protocol
request "Date:*******\r\n" in the head of msg. So I changed the code
and added date. Now I can recieve my crash report email but the
attachment in the email are recognized as texts. I'm not familiar with
SMTP, could anyone help me?

zexspectrum

unread,
Aug 6, 2011, 12:53:22 AM8/6/11
to cras...@googlegroups.com
Did you try to use CR_INSTALL_INFO::pszSmtpProxy parameter? It allows to define IP address and port for your SMTP server without any code modifications.

About the Date header, I think this may be a deffect in CrashRpt, if some SMTP servers require the presence of Date. I will add the Date header in the next release.

About email attachments.. I do not know why your server recognizes them as text. In my tests, they are recognized correctly. I have no ideas how to help you with this.

RobotR

unread,
Aug 8, 2011, 1:48:41 AM8/8/11
to Crashrpt
It seems that our SMTP server require "Date", and recognize
attachments incorrectly.
Our server is mdaemon 10.1.1. Thank you for your suggestion!

Reply all
Reply to author
Forward
0 new messages