Hallo zusammen
Wie kann ich mein Outlook (nicht Seite Server) mittels PHP ansteuern?
Einen kleinen Code habe ich mal gebastelt. Leider funktioniert dieser nicht.
<?php
//Daten an Outlook schicken
$myOlApp = new com("Outlook.Application");
$myNameSpace = myOlApp->GetNamespace("MAPI");
$myFolder = myNameSpace->GetDefaultFolder(10); //'(olFolderContacts) '10
$myItem = myOlApp->CreateItem(2); //'(olContactItem) '2
$myItem.FirstName = "Markus Test";
$myItem->LastName = "Brunner";
$myItem->FullName = "Markus Brunner";
$myItem->Birthday = "24.02.1971";
$myItem->CompanyName = "CompanyName";
$myItem->BusinessAddress = "BusinessAdress";
$myItem->BusinessAddressCity = "BusinessAdressCity";
$myItem->BusinessAddressPostalCode = "PostalCode";
$myItem->BusinessFaxNumber = "Fax_G";
$myItem->BusinessTelephoneNumber = "Tel_G";
$myItem->BusinessHomePage = "";
$myItem->MobileTelephoneNumber = "Handy";
$myItem->HomeAddressStreet = "Homeadress";
$myItem->HomeAddressCity = "HomeCity";
$myItem->HomeAddressPostalCode = "Code";
$myItem->Email1Address = "Email1";
$myItem->Email1DisplayName = "Email_Name1";
$myItem->Email2Address = "Email2";
$myItem->Email2DisplayName = "Email_Name2";
$myItem->WebPage = "Homepage";
$myItem->Display
//$myItem->Save
?>
Besten Dank für Eure Hilfe.
Wie kann ich mein Outlook (nicht Seite Server) mittels PHP ansteuern?
Einen kleinen Code habe ich mal gebastelt. Leider funktioniert dieser nicht.
<?php
//Daten an Outlook schicken
$myOlApp = new com("Outlook.Application");
$myNameSpace = myOlApp->GetNamespace("MAPI");
$myFolder = myNameSpace->GetDefaultFolder(10); //'(olFolderContacts) '10
$myItem = myOlApp->CreateItem(2); //'(olContactItem) '2
$myItem.FirstName = "Markus Test";
$myItem->LastName = "Brunner";
$myItem->FullName = "Markus Brunner";
$myItem->Birthday = "24.02.1971";
$myItem->CompanyName = "CompanyName";
$myItem->BusinessAddress = "BusinessAdress";
$myItem->BusinessAddressCity = "BusinessAdressCity";
$myItem->BusinessAddressPostalCode = "PostalCode";
$myItem->BusinessFaxNumber = "Fax_G";
$myItem->BusinessTelephoneNumber = "Tel_G";
$myItem->BusinessHomePage = "";
$myItem->MobileTelephoneNumber = "Handy";
$myItem->HomeAddressStreet = "Homeadress";
$myItem->HomeAddressCity = "HomeCity";
$myItem->HomeAddressPostalCode = "Code";
$myItem->Email1Address = "Email1";
$myItem->Email1DisplayName = "Email_Name1";
$myItem->Email2Address = "Email2";
$myItem->Email2DisplayName = "Email_Name2";
$myItem->WebPage = "Homepage";
$myItem->Display
//$myItem->Save
?>
Besten Dank für Eure Hilfe.
Kommentar