|
@@ -112,7 +112,7 @@
|
|
|
// if(self.mail_content==nil)
|
|
// if(self.mail_content==nil)
|
|
|
// self.mail_content=@"";
|
|
// self.mail_content=@"";
|
|
|
|
|
|
|
|
- NSString* htmlbody = [NSString stringWithFormat:@"<p>%@</p></br>%@%@",@"Process description:",appinfo,userinfo];
|
|
|
|
|
|
|
+ NSString* htmlbody = [NSString stringWithFormat:@"<p>%@</p></br>%@%@</br></br>%@",@"Process description:",appinfo,userinfo,[appDelegate.downloadlog stringByReplacingOccurrencesOfString:@"\n" withString:@"</br>"]];
|
|
|
|
|
|
|
|
[mc setMessageBody:htmlbody
|
|
[mc setMessageBody:htmlbody
|
|
|
isHTML:YES];
|
|
isHTML:YES];
|
|
@@ -130,8 +130,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- [mc addAttachmentData:data mimeType:@"text/plain" fileName:@"offlinelog.txt"];
|
|
|
|
|
- [mc addAttachmentData:data1 mimeType:@"text/plain" fileName:@"db.zip"];
|
|
|
|
|
|
|
+// [mc addAttachmentData:data mimeType:@"text/plain" fileName:filename];
|
|
|
|
|
+ [mc addAttachmentData:data1 mimeType:@"application/zip" fileName:@"db.zip"];
|
|
|
|
|
|
|
|
[self presentModalViewController:mc animated:YES];
|
|
[self presentModalViewController:mc animated:YES];
|
|
|
|
|
|