Sending attachments in Windows Phone - windows-phone-7

I have been reading through the forums that it is not possible to send attachments through emails in Windows phone. Is this accurate? Is creating a web service my only option?
Any suggestions?
Thanks
Jai

Unfortunatly, the current SDK (7.1.1) doesn't allow us to send email messages with attachments; all you can send is text!
The only way is to get the file content (byte array) you want to send, encode it to Base64, and just set the message text to this enconded content...

Related

PHPMailer thread/conversation in outlook not working

I've achieved the "conversation/thread" effect in gmail, using this code
$phpmailer->MessageID = $message_id;
and with this, in gmail all e-mails sent (with the same value in $message_id) are received in the same "conversation/thread", but this dont work in outlook, both windows 10 email app and outlook app for windows 10...
How can i achieve the same result as in gmail in outllook?
Don't re-use the same message ID for multiple messages. There are headers specifically for creating threads, and the definitive explanation for them is here. In short, add the Message-ID of the message you are replying to in a References header, and optionally also into an In-reply-to header. You can create those headers in PHPMailer using addCustomHeader().

Can you send rich text messages via Twilio?

I am trying to send a rich text message via Twilio. I am able to send regular SMS messages, but I want to include a hyperlink in the body of the text.
I tried the twilio mediaUrl to include an rtf file, but that didn't work. Including html in the body of a message doesn't work as it just sends in plain text.
I'm posting via curl to the twilio endpoints, so i'd prefer not to have to get into PHP or some other language to achieve this. I just want to send raw data to twilio and receive a rich text message back, if it's possible.
Twilio developer evangelist here.
Using Twilio you can send MMS messages to numbers in the US and Canada. When you pass a mediaUrl the file needs to be hosted somewhere publicly on the web and it will then be included within the message.
You can pass files of any of the mime types listed here, though when sending RTF the result will depend on how well the receiving device supports RTF files.
If you want to include a link, I'd recommend shortening the URL (using bit.ly or similar) and just sending it as part of the text. Most smart phones will auto link the URL. Built in SMS apps on phones don't support markup of any sort, which is why your attempt with HTML just showed the raw markup.
Let me know if this helps at all.

How to send files with Sinch Instant Message?

I am developing a chat app and I am using Sinch SDK for JavaScript. My question is simple.
How can I send files through the Instant Message, to another user that I am chatting with?
It's only text messages, no attachments.
Sinch until now supported text only , therefore you can benefit from texting attachments between two devices.
Make your own API to upload files to your server when uploading is successfully done you can send json object to sinch client to tell him an file send successfully like this
{ "type":"image" , "value":"<your-url-image-in-your-server>"}
The receiver device can fetch this message and convert it from text to json object and receive the file from value attribute.
And you can do same for any type of files (Images - Sound - PDF ...etc).
I hope to help any one to use Sinch for sending attachments.

How to send email with an attachment using Windows Phone 7 API?

My WP7 application requirement is to send the email with an attachment and use device default SMTP settings.
I have tried EmailComposeTask class but it doesn't have any member for attachment.
The other idea, i am thinking is to upload the file on server and then send the email from that server.
What you think if there is no way to send the email with an attachment using WP7 API?
Your observation is correct, at this point in time EmailComposeTask doesn't support attachments and this is the only facility to send email programatically from the device at the moment.
As you note, you can communicate with a server which can perform this task on behalf of your app.
I found a wp7 and wp8 library that does it: http://www.windowsphonegeek.com/marketplace/components/livemailmessage
Try to create web service to send mail in your webserver. so, we can call the from your app to send mail.
I hope upcoming version it will be possible!
Please check this URL for more details http://forums.silverlight.net/forums/p/209808/493532.aspx
I've found this article, but I did not make any test yet.
From the author:
EmailComposeTask won’t allow you to send attachments, but this doesn’t mean that you cannot send files through it. .NET Framework has these two amazing methods: Convert.ToBase64String and Convert.FromBase64String. The first will allow the developer to convert a byte array (byte[]) to a Base64-encoded string, the other one will do the same operation in reverse.
Reference:
Pushing the Limits of the Windows Phone SDK and Sending Files via EmailComposeTask

How to send an SMS with image to handphone?

I'm using the service of a web site,and I can send text message using their interface(in PHP),but when I try to send an image :
<img src="http://www.google.com/images/srpr/nav_logo27.png" />
I'm receiving exactly the same code,not an image.
Anyone has experience with SMS services?
"Short Messages" are intended for plain text and losing money to Telcos. If you want do to anything with multimedia (like sending images), use EMS (Enhanced Message Service) or MMS (Multimedia Messaging Service). If you want to embed stuff from the web, use e-mail - the person who receives your message has to load the image from the internet anyway, and it's free for you if you send it from a computer.

Resources