English 中文(简体)
是否可能在我的邮件收发处添加信息?
原标题:Is it possible to Add Attachments to my Mail App?

I want to add attachments to my Mail App Is it possible? I am sending mails and receiving mails in my Application but i dont know how to send attachments through mail. please give me a solution for this

Thanks,
Anand

我正在与Furry SDK And Webservices交换电文,但我需要寄送信。 或者如何向网络服务寄送寄寄寄售物?

如果我们通过指示,我们就使用“@”。

当我们向网络服务提供原始数据时,我们使用了什么?

在我的数据应用中

NSString *soapMsg = [NSString stringWithFormat:@"<?xml version="1.0" encoding="utf-8"?>
                     <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
                     <soap12:Body>
                     <InsertAttachmentint xmlns="http://tempuri.org/">
                     <Filename>string</Filename>
                     <FileType>string</FileType>
                     <FileContentint>base64Binary</FileContentint>
                     </InsertAttachmentint>
                     </soap12:Body>
                     </soap12:Envelope>"];

在上述肥皂中,我们在Sting地点使用“%@”,有关基准64Binary的内容是什么?

最佳回答
Try this
NSString *str_html = @"Content of file";
NSString *filenameForSub = [NSString stringWithFormat:@"%@_Fr.cvs",str_date];
    NSData *myData = [str_html dataUsingEncoding:NSUTF8StringEncoding]; 

    [mailController addAttachmentData:myData mimeType:@"text/cvs" fileName:filenameForSub];
    [mailController setMessageBody:filenameForSub isHTML:YES];

进而联系

问题回答




相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签