• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Send Outlook 2010 email using PHP

phpemailoutlook


PHP Snippet 1:

if (!defined("olMailItem")) {define("olMailItem",0);}
$oApp  = new COM("Outlook.Application") or die('error');
$oMsg = $oApp->CreateItem(olMailItem);
$oMsg->Recipients->Add("[email protected]");
$oMsg->Subject=$subject;
$oMsg->Body=$message;
$oMsg->Save();
$oMsg->Send();

PHP Snippet 2:

<?php

PHP Snippet 3:

[COM_DOT_NET]
extension=php_com_dotnet.dll

Related Snippets

Laravel 5 issue with wherePivot

How to to send mail using gmail in Laravel?

file_put_content...fail to open stream:Permission denied in Laravel 5

Pass an image through AJAX [duplicate]

How to retrieve Active Directory group policy maximum password age using LDAP

Woocommerce Checkout - Add conditional field required if one field is filled

Get data from accuweather api url

PHP array stringify

how can I set a session variable in Drupal 8 and get it in a php script?

Render the content of default_filter.php in Joomla front-end

PHP: Insert marker every 3 iterations

How do I upload a laravel project on cPanel shared hosting?

Detect a fetch request in PHP

merging two arrays with specified index

Saving Data from form to database using AngularJS and php

About Contact Privacy policy Terms and conditions