• 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 csrf token mismatch for ajax POST Request

PHP array sort and remove duplicates by two field values

(Cache::lock()) -> get() -- Under what conditions does it return false?

Converting alphabet letter to alphabet position in PHP [duplicate]

IlluminateDatabaseQueryException could not find driver [duplicate]

How to to send mail using gmail in Laravel?

display WooCommerce “Add to cart” button with short-code [add_to_cart ] dynamically

how to fix Service provider class not found when using repository?

passwordless LDAP login and get user information using Kerberos ticket in PHP

How to get Laravel's CSRF Token from Another Website?

Phalcon: setStatusCode returns empty response

Change user role if checkout custom checkbox is checked in WooCommerce

How can I remove the "Advanced" panel of all blocks in WordPress block editor?

Clients authentication and user authentication with laravel

Using PHP to connect to a remote MSSQL database

About Contact Privacy policy Terms and conditions