• 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

wp_remote_get() not passing authentication

How to edit Records using CodeIgniter

Pass an image through AJAX [duplicate]

MOODLE: What does it mean to aggregate h5p assets?

Redis Command To Sort Keys

Display a success custom notice after Placing an Order in WooCommerce

Edit XML in HTML form and submit to self

GRPC installed successfully on ubuntu but php is looking for it in another folder

Convert regular text to array using notepad++

SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'column_name' in Laravel

WooCommerce Subscriptions: Remove role on cancelled subscription

how to see if database exists with PDO [duplicate]

php script to delete files older than 24 hrs, deletes all files

correct PHP headers for pdf file download

error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

About Contact Privacy policy Terms and conditions