• 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

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

Not able to access model in the controller mautic

Star rating with half star support

How to send image,audio or video through the WhatsApp API - PHP

protect images from being copied

PhpSpreadSheet: How to save Workbook sheets in individual CSV files

Querying only one row from a one to many relationship laravel

virtctl works when executed via command line but not from php exec()

yii2 and mssql insert varbinary into model

How can I make good efficent AJAX live forms with just jQuery and

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'posts.post' doesn't exist

Woocommerce Edit Message "An account is already registered with your email address. Please log in."

Docker image build with PHP zip extension shows "bundled libzip is deprecated" warning

carbon generated datetime not stored correctly into the database

curl returning 301 error after migrating to https

About Contact Privacy policy Terms and conditions