email-attachments

UIImageView.Image to mail attachment with MonoTouch

徘徊边缘 提交于 2019-12-01 18:32:11
I am new to MonoTouch and I am trying to send an email with an image as attachment that a user will tame from camera or pick from gallery. I have created the program and it runs correctly (I have an imageview controller which loads an image from uiimagepicker to imageview. Then I call MFMailComposeViewController but I don't know how to pass the image from imageview to addAttachmentdata method. I suppose first I have to save the image from imageview as a file but I don't know how to do it and I can't find documentation for it. First you need to turn the UIImage into an NSData , e.g. using AsPNG

Gmail API PHP Client Library - How do you send large attachments using the PHP client library?

那年仲夏 提交于 2019-12-01 12:16:26
I'm using Google's PHP client library to send calls to Gmail's API. Using those resources, I can send messages with attachments using code like this: public function send_message(Google_Service_Gmail $gmail, $raw_message) { Log::info('Gmail API request \'users_messages->send\''); $postBody = new Google_Service_Gmail_Message(); $postBody->setRaw(Str::base64_encode_url($raw_message)); return $gmail->users_messages->send('me', $postBody, ['uploadType' => 'multipart']); } But I can't for the life of me figure out how send attachments larger than a few MB. I've found that it is necessary to use

sending email without user interaction android

笑着哭i 提交于 2019-12-01 10:33:53
I was trying to send email without user interaction. every thing worked until the part for sending. This is the sendemail function in the Gmailsender class that I am using public void sendEmail() throws MessagingException { Log.i("check","start"); String host = "smtp.gmail.com"; String from = "blabla@gmail.com"; //sender email, this is our website email String pass = "blablabla"; //password of sender email Properties props = System.getProperties(); props.put("mail.smtp.starttls.enable", "true"); // added this line props.put("mail.smtp.host", host); props.put("mail.smtp.user", from); props.put(

Receiving Email Attachments in App Engine Python errors on Unicode Text File

天涯浪子 提交于 2019-12-01 07:49:55
问题 I have some code to parse an email and find the attachments then store them into the Datastore as db.BlobProperties (might change that to Blobstore later). The problem is that when I send a UTF8 encoded text file it generates an error. The code basically saves the file and returns a key that is converted to a string then stored in the parent email entity. As you can see I decode the file then store it as a blob. I have sent lots of attachments and this code works on everything but Text

Android: mime type for email attachment not set

荒凉一梦 提交于 2019-12-01 06:34:09
I'm developing a very small application for Android 2.3.3. I want to send an email (through the android email app) containing a jpeg image as an attachment, below the relevat code (tested only with sdk emulator): public void sendArtwork(View aView){ EditText subj = (EditText)findViewById(R.id.edit_subj); EditText descr = (EditText)findViewById(R.id.edit_descr); Intent emailIntent = new Intent(Intent.ACTION_SEND); emailIntent.setType("image/jpeg"); // attachment is a jpeg emailIntent.putExtra(Intent.EXTRA_EMAIL,new String[]{"contribute@unintentional.org"}); emailIntent.putExtra(Intent.EXTRA

Mangled URL Parameters in IE9

心不动则不痛 提交于 2019-12-01 06:33:41
I'm seeing mangled URL parameters coming from IE9 desktop clients. The links are sent via email, and all of the mangled URLs come from the plain-text version of the email. I'm almost sure that it has nothing to do with my stack (django, nginx, mandrill) The values for the parameters have characters exactly transposed. The original character is the mangled one minus 13 places (eg. rznvy_cynva = email_plain , ubgryfpbz = hotelscom ). Here is one example of a mangled request that came through: GET /book/48465?sid=rznvy_cynva&order=q09362qs55-741722-442521-98n2-n88s4nnr87192n&checkOut=07-17-15

Mangled URL Parameters in IE9

♀尐吖头ヾ 提交于 2019-12-01 05:29:35
问题 I'm seeing mangled URL parameters coming from IE9 desktop clients. The links are sent via email, and all of the mangled URLs come from the plain-text version of the email. I'm almost sure that it has nothing to do with my stack (django, nginx, mandrill) The values for the parameters have characters exactly transposed. The original character is the mangled one minus 13 places (eg. rznvy_cynva = email_plain , ubgryfpbz = hotelscom ). Here is one example of a mangled request that came through:

How Set Attachment Name to Show Properly in Outlook

不羁岁月 提交于 2019-12-01 04:43:32
I'm creating an email with a MIME attachment from a BizTalk 2016 SMTP Send Port. However, I think any knowledge that anyone can share from any other language about the oddities of Outlook and MIME might help me fix the issue below. In Outlook, the attachment shows as body.txt, but when I click "File Save" it shows the name that I used when I created it (and that's what the user wants to see). What I'm referring to is the the left side where it says "body.txt" above the 5k and to the right of the attachment icon in the screen shot below: In BizTalk C# Pipeline component, that attachment was set

Android: mime type for email attachment not set

怎甘沉沦 提交于 2019-12-01 04:17:20
问题 I'm developing a very small application for Android 2.3.3. I want to send an email (through the android email app) containing a jpeg image as an attachment, below the relevat code (tested only with sdk emulator): public void sendArtwork(View aView){ EditText subj = (EditText)findViewById(R.id.edit_subj); EditText descr = (EditText)findViewById(R.id.edit_descr); Intent emailIntent = new Intent(Intent.ACTION_SEND); emailIntent.setType("image/jpeg"); // attachment is a jpeg emailIntent.putExtra

email attachment from the MemoryStream comes empty

懵懂的女人 提交于 2019-12-01 02:49:18
_data is a byte[] array of Attachment data. When I'm doing this: var ms = new MemoryStream(_data.Length); ms.Write(_data,0,_data.Length); mailMessage.Attachments.Add(new Attachment(ms, attachment.Name)); Attachment comes empty. Actually outlook shows the filesize but it's incorrect. Well, I thought there is a problem in my _data. Then I decided to try this approach: var ms = new MemoryStream(_data.Length); ms.Write(_data,0,_data.Length); fs = new FileStream(@"c:\Temp\"+attachment.Name,FileMode.CreateNew); fs.Write(ms.GetBuffer(), 0, ms.GetBuffer().Length); fs.Flush(); fs.Close(); mailMessage