THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/01/2007 at 11:34, xxxxxxxx wrote:
So far, really bad. Crashes every time - I've sent the BugReport to Maxon as additional assistance. Email addresses below have been changed to protect the innocent (me!). I've tried with/without attachments and with/without SENDMAIL_SENDDIRECTLY. Here's the code:
// Can email be sent?
if (!SendMailAvailable())
{
MessageDialog(GeLoadString(IPPS_MSG_CANTEMAIL));
return;
}
// Does the IPPLog.txt file exist?
if (!GeFExist(log_Filename))
{
MessageDialog(GeLoadString(IPPS_MSG_EMAILNOLOG));
return;
}
// Does the IPPLog.txt file contain anything?
AutoAlloc<BaseFile> bfile;
if (bfile)
{
if (bfile->Open(log_Filename))
{
if (bfile->GetLength() < 300)
{
MessageDialog(GeLoadString(IPPS_MSG_EMAILLOGEMPTY));
return;
}
bfile->Close();
}
}
// Let user add text to email message body
EmailMsgDialog emdialog;
emdialog.Open(-1,-1, 400, 320);
if (!emdialog.GetResult()) return;
Filename* attach[2];
attach[0] = &log;_Filename;
attach[1] = NULL;
String toEmail = "x@y";
String bccEmail = "y@z";
// Send email with IPPLog.txt as attachment to me for examination
if (SendMail(String("interPoser Pro Report Log"), &toEmail;, NULL, &bccEmail;, attach[0], emdialog.GetUserMsg(), SENDMAIL_SENDDIRECTLY))
MessageDialog(GeLoadString(IPPS_MSG_EMAILSENT));
else MessageDialog(GeLoadString(IPPS_MSG_EMAILFAILED));
Thank you very much,
Robert