Office 365 json api | send emails with inline attachments

I send the description my team is having with the json integration with Office API 365.
We want to send an email with inline attachments through the JSON API.
With that objective, what we are doing:
1. Create an empty draft message;
2. Send the several inline attachments;
3. Update the body of the draft message (with cid images inline);
4. Send the message;
What is are our issue with the API?
We are unable to set the "ContentType" properties when we submit the attachments to the Office API 365.
Despite the "ContentType" we send, it is always null.
We are using the following API: POST https://outlook.office365.com/api/v1.0/me/messages/{message_id}/attachments
That's the reason we think that despite the inline image then it is found in the body, it cannot be displayed because the contenttype it is not set correctly.
Please give us some direction.
Best Regards,

Answered here:
http://stackoverflow.com/questions/27377376/how-do-i-send-email-with-inline-attachments

Similar Messages

  • Can´t send emails with pdf attachments - why?

    Since i moved all my accounts to my new airbook (OS X 10.8.2) everything works fine BUT i am not able to send emails with pdf attachments.I have an exchange and a mac.account - but they both won`t work.
    The emails stay put in the local ausgang? exit box and won`t move away unless i delete them.
    i checked the accounts, the activity - all says it works fine - but it doesn`t!
    Maybe in the *deep* of my mac is one thing that says no pdf - but where can i find it?
    I appreciate every helpful hint :-)
    greetings

    it tries to send the email for about five minutes and than gives the message *server doesn't work* you want to try another? repeat? or later?
    when i change the server e.g. from exchange to mac - tries again and without further notice i find the message in the outbox - even when i click that one and *send* again - nothing changes......
    I already tried to name the attachments in.pdf - i also change the pdf to jpeg - nothing works - all emails i write after that go immediately to the outbox - so when i want to send messages at all i need to delete the ones with the attachment or send the other ones manually
    Please notice in the activity window there is a lot of traffic :-) but it doesn`t help
    i even closed all other programmes like excel,safari and stuff - but still
    and i still have al lot of free GB on my airbook....
    any idea????

  • Sending email with multiple attachments

    Hi forum,
    I am able to send email with a single attachment using maildemo.sql from: http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html
    But now I am trying to send email with more than 1 attachment and it does not work. My code that calls the above mentioned package is as follows:
    <code>
    PROCEDURE send (
    psender VARCHAR2,
    precipients VARCHAR2,
    pcc VARCHAR2,
    pbcc VARCHAR2,
    psubject VARCHAR2,
    pmessage VARCHAR2,
    pnumattach NUMBER) -- The number of attachments that need to be sent
    IS
    p_blob BLOB;
    p_filename VARCHAR2(200);
    p_filetype VARCHAR2(200);
    p_currSeq NUMBER;
    conn utl_smtp.CONNECTION;
    i NUMBER;
    j NUMBER;
    len NUMBER;
    BEGIN
    IF pnumattach > 1
    THEN
    conn := SEND_EMAIL_HELPER.begin_mail(
              sender => psender,
              recipients => precipients,
              subject => psubject,
              mime_type => send_email_helper.MULTIPART_MIME_TYPE);
    j := 0;
    SELECT seq_attach_transact_id.CURRVAL INTO p_currSeq FROM dual; -- seq_attach_transact_id is a primary key that identifies every single attachment in the table
    WHILE (j < pnumattach) LOOP
    p_currSeq := p_currSeq - j;
    SELECT blob_content INTO p_blob FROM wwdoc_document WHERE transaction_id = p_currSeq;
    SELECT name INTO p_filename FROM wwdoc_document WHERE transaction_id = p_currSeq;
    SELECT mime_type INTO p_filetype FROM wwdoc_document WHERE transaction_id = p_currSeq;
    SEND_EMAIL_HELPER.begin_attachment(
    conn => conn,
    mime_type => p_filetype,
    inline => TRUE,
    filename => p_filename,
    transfer_enc => 'base64');
    -- split the Base64 encoded attachment into multiple lines
    i := 1;
    len := DBMS_LOB.getLength(p_blob);
    WHILE (i < len) LOOP
    IF(i + SEND_EMAIL_HELPER.MAX_BASE64_LINE_WIDTH < len)THEN
    UTL_SMTP.Write_Raw_Data (conn,
    UTL_ENCODE.Base64_Encode(
    DBMS_LOB.SUBSTR(p_blob, SEND_EMAIL_HELPER.MAX_BASE64_LINE_WIDTH, i)));
    ELSE
    UTL_SMTP.Write_Raw_Data (conn,
    UTL_ENCODE.Base64_Encode(
    DBMS_LOB.SUBSTR(p_blob, (len - i)+1, i)));
    END IF;
    UTL_SMTP.Write_Data(conn, UTL_TCP.CRLF);
    i := i + SEND_EMAIL_HELPER.MAX_BASE64_LINE_WIDTH;
    END LOOP;
    SEND_EMAIL_HELPER.end_attachment(conn => conn);
    END LOOP;
    SEND_EMAIL_HELPER.attach_text(
    conn => conn,
    data => pmessage,
    mime_type => 'text/html');
    SEND_EMAIL_HELPER.end_mail( conn => conn );
    ELSE
    utl_mail.send(psender,precipients,pcc,pbcc,psubject,pmessage);
    END IF;
    END send;
    </code>
    Can anyone please tell me where am i going wrong.
    Message was edited by:
    Monk

    The easiest is to send an e-mail with multiple attachments to yourself and then view the message in raw to see how it is formatted - how the boundaries work. what the boundary headers are, etc.
    Then you use that as a template for your PL/SQL code to generate a MIME body for an e-mail that has multiple attachments.
    To debug.. have your PL/SQL code send sample e-mails with multiple attachment to your account, view it in raw format and compare that to the original format you've based your template on.
    And none of this is really a PL/SQL issue.. it is all about formatting a valid MIME message for an e-mail.

  • Sending email with 2 attachments in PDF Format

    Hi,
    I have 2 ALV Layouts, totally different in Structure.
    Now I need to convert these 2 ALV layout to 2 different PDF files and send email with thses 2 attachments.
    Can anyone provide me with sample report.
    I tried searching  for it  but there is no clue for ALV report-> PDF -> email.
    Thanks
    Mohan

    Hello,
    I doubt if you really searched before posting. You will find many posts indicating how to convert your report output be it ALV or classical into spool and then in to pdf. After you get the pdf binary format, its pretty much the same attaching those and sending E-mail
    Vikranth

  • Can't send emails with picture attachments

    All of a sudden, I can't sent emails with picture attachments. I last tried this a few weeks ago and it worked, now it doesn't.
    I have tried a battery pull while the phone is on, registered on the network again and had the service books resent and nothing works.
    Anyone else have this problem or have any ideas of how to fix it?

    Can you please provide more information? Are you getting any error message when attaching or sending the pictures? Are you able to send other types of attachments? Is this happening for all email accounts on your BlackBerry?
    -FS
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • Send email with multiple attachments using MS outlook

    Hi,
    Is it possible to send an email with multiple attachments using MS outlook. (Using activex)
    Regards,
    Neha

    nehrnul wrote:
    Hey thanks for the reply. I'll try that way also.
    but currently my requirement is to send email using MS Outlook. And I found 1 solution using invoke node
    Regards,
    Neha
    That' "requirement" sounds like it was written by someone who is trying to drive the design of the application.  Without knowing your personal situation it's hard for me to say, but if I had to guess I would say the real requirement is to send an email with multiple attachements, and the person giving that requirement thought sending it through Outlook would be the best way.  You should get clairification on what the real intend of that requirement is.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Office 365 unable to send mail with automatic address

    hi,
    I am unable to send email from outlook 2013 (configured to office 365 exchange) it appears a message as "sorry something went wrong. you may want to try again"
    I have configured a old pst file along with same outlook.. 
    it can send easly with typing manually email address .
    please provide me the solution..
    regards
    [email protected]

    Hi,
    Please first try to log into your OWA and check if you can send email using autocomplete address. If OWA works fine, it means the problem is specific to Outlook client.
    If this issue only happen with single or several addresses, we can just delete the address by clicking 'X' after the address:
    If this issue happen to all autocomplete addresses, there may be a problem with your autocomplete cache. We can rename the cache file to resolve the problem. You can refer to the following KB article for detailed steps:
    http://support.microsoft.com/kb/2682333/en-us
    Hope this helps.
    Regards,
    Steve Fan
    TechNet Community Support

  • Send email with multiple attachments

    Hi All,
    Thanks for any help in advanced.
    I am trying to write a procedure that will attach mutiple selected documents that are saved in a report. The portion that I am having the problem with is how to pass only the documents that have been selected by the checkbox to the procedure. I have the document with instructions on how to add multiple documents from a table but not when selected from a checkbox.
    Thanks Again for any help.

    With that query in mind, an on submit page process like the following should do the trick:
    DECLARE
         v_apex_id NUMBER;
         v_blob BLOB;
         v_filename varchar2(50);
         v_mimetype varchar2(50);
    BEGIN
         v_apex_id := APEX_MAIL(
                        p_to       => '[email protected]',   -- change to your email address
                        p_from     => '[email protected]', -- change to a real senders email address
                        p_body     => 'message body',
                        p_subj     => 'Attach images and send');
         for i in 1..APEX_APPLICATION.g_f02.COUNT LOOP
              select filename, mimetype, content into v_filename, v_mimetype, v_blob
              from emp_ecm_documents
              where id = apex_application.g_f02(i);
              APEX_MAIL.ADD_ATTACHMENT(
                   p_mail_id    => v_apex_id,
                   p_attachment => v_blob,
                   p_filename   => v_filename,
                   p_mime_type  => v_mimetype);
         END LOOP;
         APEX_MAIL.PUSH_QUEUE;
    END;API's used:
    APEX_MAIL : http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/apex_mail.htm#CIHDIEJI
    APEX_APPLICATION: http://download.oracle.com/docs/cd/E17556_01/doc/apirefs.40/e15519/apex_app.htm#insertedID2
    Ta,
    Trent

  • Safari Crashes when sending email with any attachments

    Recently I've discovered that sending ANY type of attachment via Gmail crashes safari. (I can include crash report)
    I tried using my old AOL email instead of Gmail and the same result occurs, either it hangs or crashes.
    I downloaded Firefox and the same thing happens, so it isn't just a browser problem. I tried reconfiguring fire walls, etc, still crashed.
    Anyone else suffering from the same crash problem when emailing an attachment?

    The problem persists, maybe someone would have a better idea if the error report was posted, so here it is. Thanks for helping me out guys!
    Date/Time: 2008-02-13 15:31:10.373 -0800
    OS Version: 10.4.11 (Build 8S2167)
    Report Version: 4
    Command: Safari
    Path: /Applications/Safari.app/Contents/MacOS/Safari
    Parent: WindowServer [1023]
    Version: 3.0.4 (523.12.2)
    Build Version: 2
    Project Name: WebBrowser
    Source Version: 45231202
    PID: 1070
    Thread: 2
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNPROTECTIONFAILURE (0x0002) at 0x00000000
    Thread 0:
    0 libSystem.B.dylib 0x90009cd7 machmsgtrap + 7
    1 com.apple.CoreFoundation 0x9082d23b CFRunLoopRunSpecific + 2014
    2 com.apple.CoreFoundation 0x9082ca56 CFRunLoopRunInMode + 61
    3 com.apple.HIToolbox 0x92dec878 RunCurrentEventLoopInMode + 285
    4 com.apple.HIToolbox 0x92debf82 ReceiveNextEventCommon + 385
    5 com.apple.HIToolbox 0x92debdd9 BlockUntilNextEventMatchingListInMode + 81
    6 com.apple.AppKit 0x93272485 _DPSNextEvent + 572
    7 com.apple.AppKit 0x93272076 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 137
    8 com.apple.Safari 0x00009208 0x1000 + 33288
    9 com.apple.AppKit 0x9326bdfb -[NSApplication run] + 512
    10 com.apple.AppKit 0x9325fd4f NSApplicationMain + 573
    11 com.apple.Safari 0x00090652 0x1000 + 587346
    12 com.apple.Safari 0x000027a9 0x1000 + 6057
    Thread 1:
    0 libSystem.B.dylib 0x900248c7 semaphorewait_signaltrap + 7
    1 com.apple.WebCore 0x94f2da81 WebCore::IconDatabase::syncThreadMainLoop() + 235
    2 com.apple.WebCore 0x94f29f2a WebCore::IconDatabase::iconDatabaseSyncThread() + 180
    3 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 2 Crashed:
    0 com.apple.CoreFoundation 0x908110a2 CFRetain + 56
    1 com.apple.CFNetwork 0x9101e646 _CFNetConnectionErrorOccurred + 22
    2 com.apple.CFNetwork 0x910200f2 httpRequestPayloadCallBack + 134
    3 com.apple.CoreFoundation 0x9087ab7a _CFStreamSignalEventSynch + 281
    4 com.apple.CoreFoundation 0x9082cf1a CFRunLoopRunSpecific + 1213
    5 com.apple.CoreFoundation 0x9082ca56 CFRunLoopRunInMode + 61
    6 com.apple.Foundation 0x928339ef +[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:] + 259
    7 com.apple.Foundation 0x927fe2c0 forkThreadForFunction + 123
    8 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 3:
    0 libSystem.B.dylib 0x90009cd7 machmsgtrap + 7
    1 com.apple.CoreFoundation 0x9082d23b CFRunLoopRunSpecific + 2014
    2 com.apple.CoreFoundation 0x9082ca56 CFRunLoopRunInMode + 61
    3 com.apple.Foundation 0x9285abca +[NSURLCache _diskCacheSyncLoop:] + 206
    4 com.apple.Foundation 0x927fe2c0 forkThreadForFunction + 123
    5 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 4:
    0 libSystem.B.dylib 0x9001a1cc select + 12
    1 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 5:
    0 libSystem.B.dylib 0x900248c7 semaphorewait_signaltrap + 7
    1 com.apple.Foundation 0x92854250 -[NSConditionLock lockWhenCondition:] + 39
    2 com.apple.Syndication 0x9a13f966 -[AsyncDB _run:] + 181
    3 com.apple.Foundation 0x927fe2c0 forkThreadForFunction + 123
    4 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 6:
    0 libSystem.B.dylib 0x90009cd7 machmsgtrap + 7
    1 ...romedia.Flash Player.plugin 0x18288341 memcopy_mmx + 709497
    2 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 7:
    0 libSystem.B.dylib 0x900248c7 semaphorewait_signaltrap + 7
    1 ...romedia.Flash Player.plugin 0x1814f572 0x17dc0000 + 3732850
    2 ...romedia.Flash Player.plugin 0x18186e68 Flash_EnforceLocalSecurity + 124992
    3 ...romedia.Flash Player.plugin 0x1814f81c 0x17dc0000 + 3733532
    4 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 8:
    0 libSystem.B.dylib 0x900248c7 semaphorewait_signaltrap + 7
    1 ...romedia.Flash Player.plugin 0x1814f572 0x17dc0000 + 3732850
    2 ...romedia.Flash Player.plugin 0x18186e68 Flash_EnforceLocalSecurity + 124992
    3 ...romedia.Flash Player.plugin 0x1814f81c 0x17dc0000 + 3733532
    4 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 9:
    0 libSystem.B.dylib 0x90026d5c kevent + 12
    1 ...ple.CoreServices.CarbonCore 0x90cb8c68 PrivateMPEntryPoint + 51
    2 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 10:
    0 libSystem.B.dylib 0x900248c7 semaphorewait_signaltrap + 7
    1 ...ple.CoreServices.CarbonCore 0x90cb8e0d MPWaitOnQueue + 198
    2 com.apple.DesktopServices 0x92724943 TNodeSyncTask::SyncTaskProc(void*) + 143
    3 ...ple.CoreServices.CarbonCore 0x90cb8c68 PrivateMPEntryPoint + 51
    4 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 11:
    0 libSystem.B.dylib 0x900248c7 semaphorewait_signaltrap + 7
    1 com.apple.Foundation 0x92854250 -[NSConditionLock lockWhenCondition:] + 39
    2 com.apple.AppKit 0x933492a4 -[NSUIHeartBeat _heartBeatThread:] + 377
    3 com.apple.Foundation 0x927fe2c0 forkThreadForFunction + 123
    4 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 12:
    0 libSystem.B.dylib 0x90009cd7 machmsgtrap + 7
    1 com.apple.CoreFoundation 0x9082d23b CFRunLoopRunSpecific + 2014
    2 com.apple.CoreFoundation 0x9082ca56 CFRunLoopRunInMode + 61
    3 com.apple.Foundation 0x92833d1a -[NSRunLoop runMode:beforeDate:] + 182
    4 com.apple.Foundation 0x92833c16 -[NSRunLoop run] + 75
    5 com.apple.Safari 0x00047a63 0x1000 + 289379
    6 com.apple.Foundation 0x927fe2c0 forkThreadForFunction + 123
    7 libSystem.B.dylib 0x90024227 pthreadbody + 84
    Thread 2 crashed with X86 Thread State (32-bit):
    eax: 0x00000000 ebx: 0x90811078 ecx: 0x00000016 edx: 0x00000016
    edi: 0xb02208b8 esi: 0x00000000 ebp: 0xb0220878 esp: 0xb0220850
    ss: 0x0000001f efl: 0x00010246 eip: 0x908110a2 cs: 0x00000017
    ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
    Binary Images Description:
    0x1000 - 0x119fff com.apple.Safari 3.0.4 (523.12.2) /Applications/Safari.app/Contents/MacOS/Safari
    0x33a000 - 0x33cfff com.google.GoogleModLoader 1.0.0 (1.0.0.27) /Library/InputManagers/GoogleModLoader/GoogleModLoader.bundle/Contents/MacOS/Go ogleModLoader
    0x6d5000 - 0x6dcfff com.google.Desktop.SafariSearchResultsMod 1.0.3 (1.0.3.301) /Library/Application Support/Google/Mods/SafariSearchResults.gmod/Contents/MacOS/SafariSearchResults
    0x6e4000 - 0x6eefff com.google.Desktop.SafariWebHistoryMod 1.0.3 (1.0.3.301) /Library/Application Support/Google/Mods/SafariWebHistory.gmod/Contents/MacOS/SafariWebHistory
    0x717000 - 0x729fff com.cocoamug.TabExpose ??? (1.8) /Library/InputManagers/TabExpose/TabExpose.bundle/Contents/MacOS/TabExpose
    0x73a000 - 0x73afff com.apple.applescript.component 1.10.7 /System/Library/Components/AppleScript.component/Contents/MacOS/AppleScript
    0x110b000 - 0x1178fff com.DivXInc.DivXDecoder 6.6.0 /Library/QuickTime/DivX Decoder.component/Contents/MacOS/DivX Decoder
    0x12b4000 - 0x12b4fff com.apple.osax.digihub 1.0 /System/Library/ScriptingAdditions/Digital Hub Scripting.osax/Contents/MacOS/Digital Hub Scripting
    0x12b8000 - 0x12e3fff com.apple.osax.standardadditions 1.10.7 (???) /System/Library/ScriptingAdditions/StandardAdditions.osax/Contents/MacOS/Standa rdAdditions
    0x17dc0000 - 0x183bdfff com.macromedia.Flash Player.plugin 9.0.115 (1.0.4f60) /Library/Internet Plug-Ins/Flash Player.plugin/Contents/MacOS/Flash Player
    0x8f8c0000 - 0x8f95ffff com.apple.QuickTimeImporters.component 7.4.1 (14) /System/Library/QuickTime/QuickTimeImporters.component/Contents/MacOS/QuickTime Importers
    0x8fe00000 - 0x8fe4afff dyld 46.16 /usr/lib/dyld
    0x90000000 - 0x90171fff libSystem.B.dylib /usr/lib/libSystem.B.dylib
    0x901c1000 - 0x901c3fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib
    0x901c5000 - 0x90202fff com.apple.CoreText 1.1.3 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
    0x90229000 - 0x902fffff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x9031f000 - 0x90774fff com.apple.CoreGraphics 1.258.77 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    0x9080b000 - 0x908d3fff com.apple.CoreFoundation 6.4.9 (368.31) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x90911000 - 0x90911fff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x90913000 - 0x90a07fff libicucore.A.dylib /usr/lib/libicucore.A.dylib
    0x90a57000 - 0x90ad6fff libobjc.A.dylib /usr/lib/libobjc.A.dylib
    0x90aff000 - 0x90b63fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
    0x90bd2000 - 0x90bd9fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
    0x90bde000 - 0x90c51fff com.apple.framework.IOKit 1.4.8 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x90c66000 - 0x90c78fff libauto.dylib /usr/lib/libauto.dylib
    0x90c7e000 - 0x90f24fff com.apple.CoreServices.CarbonCore 682.28 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x90f67000 - 0x90fcffff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x91008000 - 0x91047fff com.apple.CFNetwork 129.22 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x9105a000 - 0x9106afff com.apple.WebServices 1.1.3 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServ icesCore.framework/Versions/A/WebServicesCore
    0x91075000 - 0x910f4fff com.apple.SearchKit 1.0.7 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x9112e000 - 0x9114cfff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x91158000 - 0x91166fff libz.1.dylib /usr/lib/libz.1.dylib
    0x91169000 - 0x91308fff com.apple.security 4.5.2 (29774) /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x91406000 - 0x9140efff com.apple.DiskArbitration 2.1.2 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x91415000 - 0x9141cfff libbsm.dylib /usr/lib/libbsm.dylib
    0x91420000 - 0x91446fff com.apple.SystemConfiguration 1.8.6 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x91458000 - 0x914cefff com.apple.audio.CoreAudio 3.0.5 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x9151f000 - 0x9151ffff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x91521000 - 0x9154cfff com.apple.AE 314 (313) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ AE.framework/Versions/A/AE
    0x9155f000 - 0x91633fff com.apple.ColorSync 4.4.10 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x9166e000 - 0x916ebfff com.apple.print.framework.PrintCore 4.6 (177.13) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
    0x91718000 - 0x917c1fff com.apple.QD 3.10.25 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
    0x917e7000 - 0x91832fff com.apple.HIServices 1.5.2 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
    0x91851000 - 0x91867fff com.apple.LangAnalysis 1.6.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
    0x91873000 - 0x9188dfff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ FindByContent.framework/Versions/A/FindByContent
    0x91897000 - 0x918d4fff com.apple.LaunchServices 182 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LaunchServices.framework/Versions/A/LaunchServices
    0x918e8000 - 0x918f4fff com.apple.speech.synthesis.framework 3.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x918fb000 - 0x9193bfff com.apple.ImageIO.framework 1.5.6 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
    0x9194e000 - 0x91a00fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
    0x91a46000 - 0x91a5cfff libcups.2.dylib /usr/lib/libcups.2.dylib
    0x91a61000 - 0x91a7ffff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x91a84000 - 0x91ae3fff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x91af5000 - 0x91af9fff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x91afb000 - 0x91b83fff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRaw.dylib
    0x91b87000 - 0x91bc4fff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x91bca000 - 0x91be4fff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x91be9000 - 0x91bebfff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x91bed000 - 0x91ccbfff libxml2.2.dylib /usr/lib/libxml2.2.dylib
    0x91ce8000 - 0x91ce8fff com.apple.Accelerate 1.3.1 (Accelerate 1.3.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x91cea000 - 0x91d78fff com.apple.vImage 2.5 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
    0x91d7f000 - 0x91d7ffff com.apple.Accelerate.vecLib 3.3.1 (vecLib 3.3.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
    0x91d81000 - 0x91ddafff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
    0x91de3000 - 0x91e07fff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
    0x91e0f000 - 0x92218fff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
    0x92252000 - 0x92606fff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
    0x92633000 - 0x92720fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
    0x92722000 - 0x927a0fff com.apple.DesktopServices 1.3.7 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    0x927e1000 - 0x92a11fff com.apple.Foundation 6.4.9 (567.36) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x92b1d000 - 0x92b27fff com.apple.framework.AppleTalk 1.2.0 (???) /System/Library/Frameworks/AppleTalk.framework/Versions/A/AppleTalk
    0x92b2b000 - 0x92b42fff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x92b4d000 - 0x92ba5fff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x92bb9000 - 0x92bb9fff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x92bbb000 - 0x92bcbfff com.apple.ImageCapture 3.0.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x92bd9000 - 0x92be1fff com.apple.speech.recognition.framework 3.6 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
    0x92be7000 - 0x92becfff com.apple.securityhi 2.0.1 (24742) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
    0x92bf2000 - 0x92c83fff com.apple.ink.framework 101.2.1 (71) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
    0x92c97000 - 0x92c9afff com.apple.help 1.0.3 (32.1) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x92c9d000 - 0x92cbafff com.apple.openscripting 1.2.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x92cca000 - 0x92cd0fff com.apple.print.framework.Print 5.2 (192.4) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
    0x92cd6000 - 0x92d39fff com.apple.htmlrendering 66.1 (1.1.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering
    0x92d5d000 - 0x92d9efff com.apple.NavigationServices 3.4.4 (3.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x92dc5000 - 0x92dd2fff com.apple.audio.SoundManager 3.9.1 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
    0x92dd9000 - 0x92ddefff com.apple.CommonPanels 1.2.3 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
    0x92de3000 - 0x930d8fff com.apple.HIToolbox 1.4.10 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
    0x931de000 - 0x931e9fff com.apple.opengl 1.4.16 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x931ee000 - 0x93209fff com.apple.DirectoryService.Framework 3.2 /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
    0x93259000 - 0x93259fff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x9325b000 - 0x93911fff com.apple.AppKit 6.4.9 (824.44) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x93c92000 - 0x93d0dfff com.apple.CoreData 91 (92.1) /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x93d46000 - 0x93dfffff com.apple.audio.toolbox.AudioToolbox 1.4.7 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x93e42000 - 0x93e42fff com.apple.audio.units.AudioUnit 1.4.2 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x93e44000 - 0x94005fff com.apple.QuartzCore 1.4.12 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x9404b000 - 0x9408cfff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
    0x94094000 - 0x940cefff libGLImage.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
    0x940d3000 - 0x940e9fff com.apple.CoreVideo 1.4.2 /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x94182000 - 0x941c0fff com.apple.vmutils 4.0.2 (93.1) /System/Library/PrivateFrameworks/vmutils.framework/Versions/A/vmutils
    0x94204000 - 0x94214fff com.apple.securityfoundation 2.2.1 (28150) /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoun dation
    0x94221000 - 0x9425efff com.apple.securityinterface 2.2.1 (27695) /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInter face
    0x9427a000 - 0x94289fff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
    0x94290000 - 0x9429bfff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    0x942e7000 - 0x94301fff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    0x94307000 - 0x9461efff com.apple.QuickTime 7.4.1 (14) /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
    0x947a2000 - 0x948e8fff com.apple.AddressBook.framework 4.0.6 (490) /System/Library/Frameworks/AddressBook.framework/Versions/A/AddressBook
    0x94974000 - 0x94983fff com.apple.DSObjCWrappers.Framework 1.1 /System/Library/PrivateFrameworks/DSObjCWrappers.framework/Versions/A/DSObjCWra ppers
    0x9498a000 - 0x949b3fff com.apple.LDAPFramework 1.4.2 (69.1.1) /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
    0x949b9000 - 0x949c8fff libsasl2.2.dylib /usr/lib/libsasl2.2.dylib
    0x949cc000 - 0x949f1fff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib
    0x949fd000 - 0x94a1afff libresolv.9.dylib /usr/lib/libresolv.9.dylib
    0x94bc6000 - 0x94c9efff edu.mit.Kerberos 5.5.25 /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
    0x94d46000 - 0x94df6fff com.apple.WebKit 523.12.2 /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
    0x94e5c000 - 0x94efffff com.apple.JavaScriptCore 523.12 /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
    0x94f27000 - 0x953ecfff com.apple.WebCore 523.12.2 /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.frame work/Versions/A/WebCore
    0x958ad000 - 0x958b1fff com.apple.URLMount 2.1.7 /System/Library/PrivateFrameworks/URLMount.framework/Versions/A/URLMount
    0x9690b000 - 0x9690bfff com.apple.vecLib 3.3.1 (vecLib 3.3.1) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
    0x96f76000 - 0x96f7bfff com.apple.agl 2.5.9 (AGL-2.5.9) /System/Library/Frameworks/AGL.framework/Versions/A/AGL
    0x97277000 - 0x9728bfff com.apple.AppleShareClient 1.5.3 /System/Library/Frameworks/AppleShareClient.framework/Versions/A/AppleShareClie nt
    0x97294000 - 0x972d3fff com.apple.AppleShareClientCore 1.5.3 /System/Library/Frameworks/AppleShareClientCore.framework/Versions/A/AppleShare ClientCore
    0x97302000 - 0x97316fff com.apple.audio.CoreAudioKit 1.0.1 /System/Library/Frameworks/CoreAudioKit.framework/Versions/A/CoreAudioKit
    0x98057000 - 0x980e8fff com.apple.applescript 1.10.7 /System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
    0x9827d000 - 0x990fdfff com.apple.QuickTimeComponents.component 7.4.1 (14) /System/Library/QuickTime/QuickTimeComponents.component/Contents/MacOS/QuickTim eComponents
    0x9a13d000 - 0x9a174fff com.apple.Syndication 1.0.7 (55) /System/Library/PrivateFrameworks/Syndication.framework/Versions/A/Syndication
    0x9a190000 - 0x9a1a2fff com.apple.SyndicationUI 1.0.7 (55) /System/Library/PrivateFrameworks/SyndicationUI.framework/Versions/A/Syndicatio nUI
    Model: MacBook1,1, BootROM MB11.0061.B03, 2 processors, Intel Core Duo, 1.83 GHz, 2 GB
    Graphics: Intel GMA 950, GMA 950, Built-In, spdisplaysintegratedvram
    Memory Module: BANK 0/DIMM0, 1 GB, DDR2 SDRAM, 667 MHz
    Memory Module: BANK 1/DIMM1, 1 GB, DDR2 SDRAM, 667 MHz
    AirPort: spairportwireless_card_type_airportextreme (0x168C, 0x86), 1.2.2
    Bluetooth: Version 1.9.5f4, 2 service, 0 devices, 1 incoming serial ports
    Network Service: Built-in Ethernet, Ethernet, en0
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: TOSHIBA MK8032GSX, 74.53 GB
    Parallel ATA Device: MATSHITACD-RW CW-8221
    USB Device: Built-in iSight, Micron, Up to 480 Mb/sec, 500 mA
    USB Device: Apple Internal Keyboard / Trackpad, Apple Computer, Up to 12 Mb/sec, 500 mA
    USB Device: Bluetooth USB Host Controller, Apple, Inc., Up to 12 Mb/sec, 500 mA
    USB Device: IR Receiver, Apple Computer, Inc., Up to 12 Mb/sec, 500 mA

  • Send email with attachments

    Hi, I like to buy an IPad, but a friend of mine has one and he cannot send emails with differtent attachments. It is only possible, to take a picture for example, and send it as a mail. Is there another software? or wat to do?

    There is the GoodReader app (http://itunes.apple.com/us/app/goodreader-for-ipad/id363448914?mt=8#) which supports a number of different file formats (there may be other apps but GoodReader is the one that I've got) :
    GoodReader not only supports massive PDF and TXT files, but also handles the most popular file types:
    • MS Office - .doc, .ppt., .xls
    • iWork ’08/’09
    • HTML and Safari webarchives
    • High resolution images
    • Even audio and video!
    Depending on the apps where you are working on the document, you could then copy them (if the document's 'owning' app supports it) into GoodReader (or you could just store them in GoodReader anyway), and then select and send multiple file types from within the app as attachments to an email.

  • Office 365 files api with php not responding.

    I am trying to access OneDrive for Business using the office 365 rest api. Our code is in php and we can access email, contacts etc fine but the files api doesn't return any kind of response to our requests. We already have a combine access token from
    the consent process. I do get a Unknown SSL protocol error in connection to ... error from curl but thats all. Can anyone help?

    Hi,
    As this question is more relate to Office 365 and PHP development, I suggest you post it to Office 365 or PHP Forum, you will get more help and confirmed answers from there.
    Or use the Fiddler to monitor the requests and responses data.
    http://www.telerik.com/fiddler
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Sharepoint Online - Send email with attachment

    Hi All,
    is there some way how to send email with attachment, which is attached to list item in host web?
    I tried some of solutions but none of them not working.
    Server side:
    For example event receiver after added list item with attachment - Because it is office 365, in SandBox solution I can´t use SmtpClient class.
    Any other ideas?
    Client side:
    For example client web part with REST call. It works fine until I don´t need access to attachment.
    string oDataUrlAttach = "/_api/Web/lists/getbytitle('ListName')/Items(6)/AttachmentFiles('Document.docx')/$value";
                HttpWebRequest itemRequestAttach = (HttpWebRequest)HttpWebRequest.Create(sharepointUrl.ToString() + oDataUrlAttach);
                itemRequest.Method = "GET";
                itemRequest.Accept = "application/atom+xml";
                itemRequest.ContentType = "application/atom+xml;type=entry";
                itemRequest.Headers.Add("Authorization", "Bearer " + accessToken);
                HttpWebResponse itemResponseAttach = (HttpWebResponse)itemRequestAttach.GetResponse();
    Here I get error: The remote server returned an error: (403) Forbidden.
    But other calls are OK. I can get all items from my list except attachments.
    Any ideas?
    Thank you.

    Why hasn't this been answered?
    Sam Ogle

  • How to send Email with attachments

    Hi im Trying to send a file as attachment using EMail Activity operator.
    Can we do it using Email activity? If yes, then how can we do it? If no, then please tell me about any other method using which i can send a email with attachments.
    Regards
    Vibhuti

    Better late than never, a comprehensive demo on the topic:
    REM
    REM maildemo.sql - A PL/SQL package to demonstrate how to use the UTL_SMTP
    REM package to send emails in ASCII and non-ASCII character sets, emails
    REM with text or binary attachments.
    REM
    REM Note: this package relies on the UTL_ENCODE PL/SQL package in Oracle 9i.
    CREATE OR REPLACE PACKAGE demo_mail IS
      ----------------------- Customizable Section -----------------------
      -- Customize the SMTP host, port and your domain name below.
      smtp_host   VARCHAR2(256) := 'smtp-server.some-company.com';
      smtp_port   PLS_INTEGER   := 25;
      smtp_domain VARCHAR2(256) := 'some-company.com';
      -- Customize the signature that will appear in the email's MIME header.
      -- Useful for versioning.
      MAILER_ID   CONSTANT VARCHAR2(256) := 'Mailer by Oracle UTL_SMTP';
      --------------------- End Customizable Section ---------------------
      -- A unique string that demarcates boundaries of parts in a multi-part email
      -- The string should not appear inside the body of any part of the email.
      -- Customize this if needed or generate this randomly dynamically.
      BOUNDARY        CONSTANT VARCHAR2(256) := '-----7D81B75CCC90D2974F7A1CBD';
      FIRST_BOUNDARY  CONSTANT VARCHAR2(256) := '--' || BOUNDARY || utl_tcp.CRLF;
      LAST_BOUNDARY   CONSTANT VARCHAR2(256) := '--' || BOUNDARY || '--' ||
                                                  utl_tcp.CRLF;
      -- A MIME type that denotes multi-part email (MIME) messages.
      MULTIPART_MIME_TYPE CONSTANT VARCHAR2(256) := 'multipart/mixed; boundary="'||
                                                      BOUNDARY || '"';
      MAX_BASE64_LINE_WIDTH CONSTANT PLS_INTEGER   := 76 / 4 * 3;
      -- A simple email API for sending email in plain text in a single call.
      -- The format of an email address is one of these:
      --   someone@some-domain
      --   "Someone at some domain" <someone@some-domain>
      --   Someone at some domain <someone@some-domain>
      -- The recipients is a list of email addresses  separated by
      -- either a "," or a ";"
      PROCEDURE mail(sender     IN VARCHAR2,
               recipients IN VARCHAR2,
               subject    IN VARCHAR2,
               message    IN VARCHAR2);
      -- Extended email API to send email in HTML or plain text with no size limit.
      -- First, begin the email by begin_mail(). Then, call write_text() repeatedly
      -- to send email in ASCII piece-by-piece. Or, call write_mb_text() to send
      -- email in non-ASCII or multi-byte character set. End the email with
      -- end_mail().
      FUNCTION begin_mail(sender     IN VARCHAR2,
                    recipients IN VARCHAR2,
                    subject    IN VARCHAR2,
                    mime_type  IN VARCHAR2    DEFAULT 'text/plain',
                    priority   IN PLS_INTEGER DEFAULT NULL)
                    RETURN utl_smtp.connection;
      -- Write email body in ASCII
      PROCEDURE write_text(conn    IN OUT NOCOPY utl_smtp.connection,
                     message IN VARCHAR2);
      -- Write email body in non-ASCII (including multi-byte). The email body
      -- will be sent in the database character set.
      PROCEDURE write_mb_text(conn    IN OUT NOCOPY utl_smtp.connection,
                     message IN            VARCHAR2);
      -- Write email body in binary
      PROCEDURE write_raw(conn    IN OUT NOCOPY utl_smtp.connection,
                    message IN RAW);
      -- APIs to send email with attachments. Attachments are sent by sending
      -- emails in "multipart/mixed" MIME format. Specify that MIME format when
      -- beginning an email with begin_mail().
      -- Send a single text attachment.
      PROCEDURE attach_text(conn         IN OUT NOCOPY utl_smtp.connection,
                   data         IN VARCHAR2,
                   mime_type    IN VARCHAR2 DEFAULT 'text/plain',
                   inline       IN BOOLEAN  DEFAULT TRUE,
                   filename     IN VARCHAR2 DEFAULT NULL,
                      last         IN BOOLEAN  DEFAULT FALSE);
      -- Send a binary attachment. The attachment will be encoded in Base-64
      -- encoding format.
      PROCEDURE attach_base64(conn         IN OUT NOCOPY utl_smtp.connection,
                     data         IN RAW,
                     mime_type    IN VARCHAR2 DEFAULT 'application/octet',
                     inline       IN BOOLEAN  DEFAULT TRUE,
                     filename     IN VARCHAR2 DEFAULT NULL,
                     last         IN BOOLEAN  DEFAULT FALSE);
      -- Send an attachment with no size limit. First, begin the attachment
      -- with begin_attachment(). Then, call write_text repeatedly to send
      -- the attachment piece-by-piece. If the attachment is text-based but
      -- in non-ASCII or multi-byte character set, use write_mb_text() instead.
      -- To send binary attachment, the binary content should first be
      -- encoded in Base-64 encoding format using the demo package for 8i,
      -- or the native one in 9i. End the attachment with end_attachment.
      PROCEDURE begin_attachment(conn         IN OUT NOCOPY utl_smtp.connection,
                        mime_type    IN VARCHAR2 DEFAULT 'text/plain',
                        inline       IN BOOLEAN  DEFAULT TRUE,
                        filename     IN VARCHAR2 DEFAULT NULL,
                        transfer_enc IN VARCHAR2 DEFAULT NULL);
      -- End the attachment.
      PROCEDURE end_attachment(conn IN OUT NOCOPY utl_smtp.connection,
                      last IN BOOLEAN DEFAULT FALSE);
      -- End the email.
      PROCEDURE end_mail(conn IN OUT NOCOPY utl_smtp.connection);
      -- Extended email API to send multiple emails in a session for better
      -- performance. First, begin an email session with begin_session.
      -- Then, begin each email with a session by calling begin_mail_in_session
      -- instead of begin_mail. End the email with end_mail_in_session instead
      -- of end_mail. End the email session by end_session.
      FUNCTION begin_session RETURN utl_smtp.connection;
      -- Begin an email in a session.
      PROCEDURE begin_mail_in_session(conn       IN OUT NOCOPY utl_smtp.connection,
                          sender     IN VARCHAR2,
                          recipients IN VARCHAR2,
                          subject    IN VARCHAR2,
                          mime_type  IN VARCHAR2  DEFAULT 'text/plain',
                          priority   IN PLS_INTEGER DEFAULT NULL);
      -- End an email in a session.
      PROCEDURE end_mail_in_session(conn IN OUT NOCOPY utl_smtp.connection);
      -- End an email session.
      PROCEDURE end_session(conn IN OUT NOCOPY utl_smtp.connection);
    END;
    CREATE OR REPLACE PACKAGE BODY demo_mail IS
      -- Return the next email address in the list of email addresses, separated
      -- by either a "," or a ";".  The format of mailbox may be in one of these:
      --   someone@some-domain
      --   "Someone at some domain" <someone@some-domain>
      --   Someone at some domain <someone@some-domain>
      FUNCTION get_address(addr_list IN OUT VARCHAR2) RETURN VARCHAR2 IS
        addr VARCHAR2(256);
        i    pls_integer;
        FUNCTION lookup_unquoted_char(str  IN VARCHAR2,
                          chrs IN VARCHAR2) RETURN pls_integer AS
          c            VARCHAR2(5);
          i            pls_integer;
          len          pls_integer;
          inside_quote BOOLEAN;
        BEGIN
           inside_quote := false;
           i := 1;
           len := length(str);
           WHILE (i <= len) LOOP
          c := substr(str, i, 1);
          IF (inside_quote) THEN
            IF (c = '"') THEN
              inside_quote := false;
            ELSIF (c = '\') THEN
              i := i + 1; -- Skip the quote character
            END IF;
            GOTO next_char;
          END IF;
          IF (c = '"') THEN
            inside_quote := true;
            GOTO next_char;
          END IF;
          IF (instr(chrs, c) >= 1) THEN
             RETURN i;
          END IF;
          <<next_char>>
          i := i + 1;
           END LOOP;
           RETURN 0;
        END;
      BEGIN
        addr_list := ltrim(addr_list);
        i := lookup_unquoted_char(addr_list, ',;');
        IF (i >= 1) THEN
          addr      := substr(addr_list, 1, i - 1);
          addr_list := substr(addr_list, i + 1);
        ELSE
          addr := addr_list;
          addr_list := '';
        END IF;
        i := lookup_unquoted_char(addr, '<');
        IF (i >= 1) THEN
          addr := substr(addr, i + 1);
          i := instr(addr, '>');
          IF (i >= 1) THEN
         addr := substr(addr, 1, i - 1);
          END IF;
        END IF;
        RETURN addr;
      END;
      -- Write a MIME header
      PROCEDURE write_mime_header(conn  IN OUT NOCOPY utl_smtp.connection,
                         name  IN VARCHAR2,
                         value IN VARCHAR2) IS
      BEGIN
        utl_smtp.write_data(conn, name || ': ' || value || utl_tcp.CRLF);
      END;
      -- Mark a message-part boundary.  Set <last> to TRUE for the last boundary.
      PROCEDURE write_boundary(conn  IN OUT NOCOPY utl_smtp.connection,
                      last  IN            BOOLEAN DEFAULT FALSE) AS
      BEGIN
        IF (last) THEN
          utl_smtp.write_data(conn, LAST_BOUNDARY);
        ELSE
          utl_smtp.write_data(conn, FIRST_BOUNDARY);
        END IF;
      END;
      PROCEDURE mail(sender     IN VARCHAR2,
               recipients IN VARCHAR2,
               subject    IN VARCHAR2,
               message    IN VARCHAR2) IS
        conn utl_smtp.connection;
      BEGIN
        conn := begin_mail(sender, recipients, subject);
        write_text(conn, message);
        end_mail(conn);
      END;
      FUNCTION begin_mail(sender     IN VARCHAR2,
                    recipients IN VARCHAR2,
                    subject    IN VARCHAR2,
                    mime_type  IN VARCHAR2    DEFAULT 'text/plain',
                    priority   IN PLS_INTEGER DEFAULT NULL)
                    RETURN utl_smtp.connection IS
        conn utl_smtp.connection;
      BEGIN
        conn := begin_session;
        begin_mail_in_session(conn, sender, recipients, subject, mime_type,
          priority);
        RETURN conn;
      END;
      PROCEDURE write_text(conn    IN OUT NOCOPY utl_smtp.connection,
                     message IN VARCHAR2) IS
      BEGIN
        utl_smtp.write_data(conn, message);
      END;
      PROCEDURE write_mb_text(conn    IN OUT NOCOPY utl_smtp.connection,
                     message IN            VARCHAR2) IS
      BEGIN
        utl_smtp.write_raw_data(conn, utl_raw.cast_to_raw(message));
      END;
      PROCEDURE write_raw(conn    IN OUT NOCOPY utl_smtp.connection,
                    message IN RAW) IS
      BEGIN
        utl_smtp.write_raw_data(conn, message);
      END;
      PROCEDURE attach_text(conn         IN OUT NOCOPY utl_smtp.connection,
                   data         IN VARCHAR2,
                   mime_type    IN VARCHAR2 DEFAULT 'text/plain',
                   inline       IN BOOLEAN  DEFAULT TRUE,
                   filename     IN VARCHAR2 DEFAULT NULL,
                      last         IN BOOLEAN  DEFAULT FALSE) IS
      BEGIN
        begin_attachment(conn, mime_type, inline, filename);
        write_text(conn, data);
        end_attachment(conn, last);
      END;
      PROCEDURE attach_base64(conn         IN OUT NOCOPY utl_smtp.connection,
                     data         IN RAW,
                     mime_type    IN VARCHAR2 DEFAULT 'application/octet',
                     inline       IN BOOLEAN  DEFAULT TRUE,
                     filename     IN VARCHAR2 DEFAULT NULL,
                     last         IN BOOLEAN  DEFAULT FALSE) IS
        i   PLS_INTEGER;
        len PLS_INTEGER;
      BEGIN
        begin_attachment(conn, mime_type, inline, filename, 'base64');
        -- Split the Base64-encoded attachment into multiple lines
        i   := 1;
        len := utl_raw.length(data);
        WHILE (i < len) LOOP
           IF (i + MAX_BASE64_LINE_WIDTH < len) THEN
          utl_smtp.write_raw_data(conn,
             utl_encode.base64_encode(utl_raw.substr(data, i,
             MAX_BASE64_LINE_WIDTH)));
           ELSE
          utl_smtp.write_raw_data(conn,
            utl_encode.base64_encode(utl_raw.substr(data, i)));
           END IF;
           utl_smtp.write_data(conn, utl_tcp.CRLF);
           i := i + MAX_BASE64_LINE_WIDTH;
        END LOOP;
        end_attachment(conn, last);
      END;
      PROCEDURE begin_attachment(conn         IN OUT NOCOPY utl_smtp.connection,
                        mime_type    IN VARCHAR2 DEFAULT 'text/plain',
                        inline       IN BOOLEAN  DEFAULT TRUE,
                        filename     IN VARCHAR2 DEFAULT NULL,
                        transfer_enc IN VARCHAR2 DEFAULT NULL) IS
      BEGIN
        write_boundary(conn);
        write_mime_header(conn, 'Content-Type', mime_type);
        IF (filename IS NOT NULL) THEN
           IF (inline) THEN
           write_mime_header(conn, 'Content-Disposition',
             'inline; filename="'||filename||'"');
           ELSE
           write_mime_header(conn, 'Content-Disposition',
             'attachment; filename="'||filename||'"');
           END IF;
        END IF;
        IF (transfer_enc IS NOT NULL) THEN
          write_mime_header(conn, 'Content-Transfer-Encoding', transfer_enc);
        END IF;
        utl_smtp.write_data(conn, utl_tcp.CRLF);
      END;
      PROCEDURE end_attachment(conn IN OUT NOCOPY utl_smtp.connection,
                      last IN BOOLEAN DEFAULT FALSE) IS
      BEGIN
        utl_smtp.write_data(conn, utl_tcp.CRLF);
        IF (last) THEN
          write_boundary(conn, last);
        END IF;
      END;
      PROCEDURE end_mail(conn IN OUT NOCOPY utl_smtp.connection) IS
      BEGIN
        end_mail_in_session(conn);
        end_session(conn);
      END;
      FUNCTION begin_session RETURN utl_smtp.connection IS
        conn utl_smtp.connection;
      BEGIN
        -- open SMTP connection
        conn := utl_smtp.open_connection(smtp_host, smtp_port);
        utl_smtp.helo(conn, smtp_domain);
        RETURN conn;
      END;
      PROCEDURE begin_mail_in_session(conn       IN OUT NOCOPY utl_smtp.connection,
                          sender     IN VARCHAR2,
                          recipients IN VARCHAR2,
                          subject    IN VARCHAR2,
                          mime_type  IN VARCHAR2  DEFAULT 'text/plain',
                          priority   IN PLS_INTEGER DEFAULT NULL) IS
        my_recipients VARCHAR2(32767) := recipients;
        my_sender     VARCHAR2(32767) := sender;
      BEGIN
        -- Specify sender's address (our server allows bogus address
        -- as long as it is a full email address ([email protected]).
        utl_smtp.mail(conn, get_address(my_sender));
        -- Specify recipient(s) of the email.
        WHILE (my_recipients IS NOT NULL) LOOP
          utl_smtp.rcpt(conn, get_address(my_recipients));
        END LOOP;
        -- Start body of email
        utl_smtp.open_data(conn);
        -- Set "From" MIME header
        write_mime_header(conn, 'From', sender);
        -- Set "To" MIME header
        write_mime_header(conn, 'To', recipients);
        -- Set "Subject" MIME header
        write_mime_header(conn, 'Subject', subject);
        -- Set "Content-Type" MIME header
        write_mime_header(conn, 'Content-Type', mime_type);
        -- Set "X-Mailer" MIME header
        write_mime_header(conn, 'X-Mailer', MAILER_ID);
        -- Set priority:
        --   High      Normal       Low
        --   1     2     3     4     5
        IF (priority IS NOT NULL) THEN
          write_mime_header(conn, 'X-Priority', priority);
        END IF;
        -- Send an empty line to denotes end of MIME headers and
        -- beginning of message body.
        utl_smtp.write_data(conn, utl_tcp.CRLF);
        IF (mime_type LIKE 'multipart/mixed%') THEN
          write_text(conn, 'This is a multi-part message in MIME format.' ||
         utl_tcp.crlf);
        END IF;
      END;
      PROCEDURE end_mail_in_session(conn IN OUT NOCOPY utl_smtp.connection) IS
      BEGIN
        utl_smtp.close_data(conn);
      END;
      PROCEDURE end_session(conn IN OUT NOCOPY utl_smtp.connection) IS
      BEGIN
        utl_smtp.quit(conn);
      END;
    END;
    /

  • Sending Emails With Java

    I'm trying to find out how to send emails with java - without using the java mail api - i've been told there is a way to do it but i cant seem to find it - any help on this would be gratefully recieved as i'm totally stuck! :(

    Ok, I expanded on it a little bit. Still probably isnt totally correct.
    String localhost="yourdomain.com";
    String sendMailHost=�mail.domain.com�;
    int portNo=25;
    String from="[email protected]";
    String to="[email protected]";
    String message=�Message Body.�;
    Socket s = new Socket(SendMailHost,portNo);
    DataInputStream in = new DataInputStream(s.getInputStream() ) ;
    PrintStream out = new PrintStream(s.getOutputStream() ) ;
    out.println("HELO " + locahost);
    out.flush() ;
    in.readLine(); //ignore response
    out.println("MAIL FROM:  " + from);
    out.flush() ;
    in.readLine(); //ignore response
    out.println("RCPT TO:  " + to);
    out.flush() ;
    in.readLine(); //ignore response
    out.println("DATA");
    out.println(message);
    out.println(�.�);
    s.close();

  • Office 365 REST API - Mail, Calendar, Contacts Update

    UPDATE: We have announced General Availability of our REST APIs. The refreshed documentation which covers all the changes and much more is now available
    here.
    I wanted to share an update on our Mail, Calendar, Contacts REST API. Over the last few months we have been heads down updating the APIs. Most of the changes are a direct result of all the great feedback that we have received from
    customers like you and we are very excited about sharing these changes. 
    These changes are starting to light up in the service and we have already received questions/comments about them from some of you.
    Some of these changes are not backward compatible.  
    Due to versioning not yet implemented (but coming soon!), and these API’s being in preview, they might require simple updates to your code.
      Once versioning is in place, introducing non-backward compatible changes won’t impact your existing code. 
    Stay tuned for a full list of these changes along with the refreshed documentation and client libraries. 
    We have received a number of questions on some specific changes which I wanted to share a workaround for:
    1. Folder names after ../ews/odata/Me, such as Inbox, SentItems, DeletedItems, Drafts will additionally require a “Folders” in front of them in the URL.
    REST URL:
    Before  :
    https://outlook.office365.com/ews/odata/Me/Inbox
    Now      :
    https://outlook.office365.com/ews/odata/Me/Folders/Inbox
    .Net code sample:
    var messageResultsBefore = await (from i in client.Me.Inbox.Messages select i).ExecuteAsync();
    var messageResultsNow = await (from i in client.Me.Folders.GetById("Inbox").Messages select i).ExecuteAsync();
    2. The Namespace has been updated from "#Microsoft.Exchange.Services.OData.Model" to “Microsoft.OutlookServices” and hence the fully qualified type names have to be updated to reflect that. In most cases though, you do not need to provide the odata.type
    property as we can infer it based on where you make the post. For example, if you POST to ../Me/Contacts, we know you are trying to create a contact.
    3. Contacts changes: To make the API easier to use, we have replaced EmailAddress1, EmailAddress2, EmailAddress3 with a collection of a new type called EmailAddress. We have similarly also changed BusinessPhones, HomePhones to collections.
    Sample payload showing how to create a contact with EmailAddresses and BusinessPhones:
    "GivenName": "John", 
    "EmailAddresses": [    
    "Address": "[email protected]",
    "Name": "John"
    "BusinessPhones": [
    "123-456-7890" 
    4. Event Changes: The property Attendees now includes the type “EmailAddress”.
    Sample Event payload showing how to create an Event.
    "Subject": "Discuss the Calendar REST API", 
    "Body": {   
    "ContentType": "HTML",   
    "Content": "I think it will meet our requirements!" 
    "Start": "2014-07-02T18:00:00Z", 
    "End": "2014-07-02T19:00:00Z", 
    "Location": {     
    "DisplayName": "Conference Room 1"   
    "ShowAs": "Busy", 
    "Attendees": [   
    "EmailAddress": {
    "Name":"Alex Darrow",
    "Address": "[email protected]"
    "Type": "Required"   
    "EmailAddress": {
    "Name": "Anne Wallace",
    "Address": "[email protected]"
    "Type": "Optional"   
    "EmailAddress": {
    "Name": "Conference Room 1",
    "Address": "[email protected]"
    "Type": "Resource"   
    5. We have introduced a simple API for sending email called SendMail, and have removed the custom parameter MessageDisposition which was difficult to understand and discover.
    The sendmail action, takes two parameters, a required parameter which is the Message itself and an optional parameter, "SaveToSentItems" which by default is set to true.
    Sample Request to create and send email with one call:
    POST:
    https://outlook.office365.com/ews/odata/me/sendmail
    "Message":{   
    "Subject": "Have you seen this new Mail REST API?",   
    "Importance": "High",   
    "Body": {     
    "ContentType": "HTML",     
    "Content": "It looks awesome!"   
    "ToRecipients": [{         
    "EmailAddress": {           
    "Name": "John Doe",           
    "Address": "[email protected]"         
    If you are running into any issues please post on stackoverflow here:
    http://stackoverflow.com/questions/tagged/office365
    We apologize for any inconvenience and thank you for your continued feedback!

    Hi, 
    I was trying to create and update the calendar event using [POST] https://outlook.office365.com/api/v1.0/me/events and [PATCH] https://outlook.office365.com/api/v1.0/me/events/<eventId> respectively.
    When i try with poster or postman, I get this error
    {error: {code: "ErrorInvalidRequest" message: "Cannot read the request body."} }
    its not working . Any help will be appreciated.
    Note: GET events and DELETE Events are working. I think the API with payload is not working.

Maybe you are looking for