• 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

Getting error: CodeIgniterDatabaseBaseResult::getResult in CodeIgniter

Alert message after submitting form in PHP

Implode columnar values between two arrays into a flat array of concatenated strings

phpunit - mockbuilder - set mock object internal property

PHP how to detect if running on arm64 cpu?

HTTP Range requests with php for Video Embedding for solving going to specific time in video (seek bar not work)

Reading input in php from terminal

Coinpayments create_transaction "ERROR: Invalid command!"

wp_remote_get() not passing authentication

Laravel passport auth token not working after moving to different server

Is there an equivalent of DynamoDB on Azure as a PHP session Handler

Laravel Delete and Update

sqlsrv_num_rows() expects parameter 1 to be resource, boolean given

WooCommerce - unset "<product> removed notice…" on cart page

laravel 5.6 bulk inserting json data

About Contact Privacy policy Terms and conditions