• 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 number of working days between two dates in PHP [duplicate]

PhpSpreadSheet: How to save Workbook sheets in individual CSV files

PHP sort array of objects by two properties

Laravel - How to properly generate unique slugs from article titles?

PHP contact form configuration [duplicate]

Fatal error: Uncaught Error: Call to undefined method mysqli_stmt::fetch_assoc() [duplicate]

Composer fails with kylekatarnls/update-helper on new homestead

Invalid value in field "itemtype" in Google Search Console

How to Install Composer Require doctrine/dbal

Adding the custom page with add_menu_page function on Wordpress

Backend cannot be reached after Typo3 login screen

Cannot pass null argument when using type hinting

Get keys from associative array [duplicate]

Star and Half Star Rating in Laravel

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

About Contact Privacy policy Terms and conditions