• 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

Download & Save Zoom Recording in directory by PHP

auth pages not getting css in laravel

Call to a member function fetch_field() on a non-object MySQLiDB

Make Calculator - When Button clicked the No shows in Textbox.

Lexik JWT authentication problem "Invalid credentials"

Filter WooCommerce products with post__in and additional meta queries

Laravel 5 session not persisting after user is logged in

php echo xml documents with header

Laravel Get Days In Month From Month Number?

Insert a DIV after the 6th product only once in WooCommerce category archives

phpmyadmin : Depends: php-twig (>= 2.9) but 2.6.2-2 is to be installed. WHAT?

Target Individual Form Instance/Counter Inside A PHP While Loop

PHP Get value from JSON [duplicate]

SQLSTATE[HY000]: General error: 1 table posts has no column named *

Doctrine ORM: Excluding Records Based on Values of Nested Relationships

About Contact Privacy policy Terms and conditions