WebDAV / Exchange 2003 OWA / PHP

    Date: 12/19/10 (Web Development)    Keywords: php, html, xml, asp, web, microsoft

    There is very little reference for this anywhere on the internet that I can find. MSDN has the properties listed with what data type the property is expected to be.

    I'm hoping someone here may be able to help? My head has been scratched.

    My three main points of reference are:

        #    Content Classes                http://msdn.microsoft.com/en-us/library/aa486257%28v=EXCHG.65%29.aspx
        #    Content Classes:Message        http://msdn.microsoft.com/en-us/library/aa123730%28v=EXCHG.65%29.aspx
        #    Properties by Namespace        http://msdn.microsoft.com/en-us/library/aa486269%28v=EXCHG.65%29.aspx

    I have also looked at the MAPI references.

    Outgoing mail XML

        xmlns:a=\"DAV:\"
        xmlns:b=\"urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/\"
        xmlns:c=\"xml:\"
        xmlns:d=\"urn:schemas:mailheader:\"
        xmlns:e=\"urn:schemas:httpmail:\"
        xmlns:f=\"http://schemas.microsoft.com/mapi/proptag/\"
        xmlns:g=\"http://schemas.microsoft.com/mapi/\"
        xmlns:h=\"http://schemas.microsoft.com/exchange/\"
        xmlns:i=\"urn:schemas-microsoft-com:office:office\"
        xmlns:j=\"urn:schemas:calendar:\"
        xmlns:k=\"http://schemas.microsoft.com/repl/\"
        xmlns:l=\"urn:schemas-microsoft-com:exch-data:\"
        >
       
           
                urn:content-classes:message
                http://localhost/exchange/
                attachment; filename=test.txt
                IPM.Note
                1
                2
                3
                ".$toEmail."
                ".$messageSubject."
                Test email
                test.txt
           

       



    I cannot get the signature, nor the attachment to send. I have tried with/without content-base, content-disposition, attachmentfilename, signaturehtml, signaturetext and autoaddsignature in all combinations.

    1. Is it possible to add signatures to outgoing messages through WebDAV with PHP? If so, how? I could] set the signatures up in my script, but I would like the user to be able to edit them via Outlook Web Access (OWA).

    2. Is it possible to add attachment to outgoing messages through WebDAV with PHP? If so, how? A report will be generated before the mail functions are called. The report will be saved locally (e.g., http://localhost/report/2010-12-19.pdf) and not on the Exchange server (http://server.com/Exchange) -- I assume this is what content-base is for.

    I know there are name spaces in the code that are unused. The emails send fine, but do not come with attachments or signatures.

    Source: http://webdev.livejournal.com/571691.html

« Basic HTML Document || N00blet soup »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home