• 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

Get lat/lon from google maps url ftid (hex)

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

PHP date() with timezone?

WordPress - Dynamically add user ID to the end of a URL

echo language construct is discouraged. (PHP)

Using if(isset($_POST['submit'])) to not display echo when script is open is not working

Do I need to install `fxp/composer-asset-plugin` if I'm not doing front-end development

yii2 and mssql insert varbinary into model

Target Individual Form Instance/Counter Inside A PHP While Loop

How to use functions that are declared in snippets in Evolution CMS (Modx) in an external PHP Script?

Woocommerce redirect after add-to-cart error

Cannot retrieve error message using Symfony HttpClient if the response is not "ok"

PHP echo values of all sub keys [duplicate]

How do I call Validator from a namespace with an already existing Validator class

Creating Combinations of Elements

About Contact Privacy policy Terms and conditions