• 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

PHP Deprecated issue when running artisan command

PHP only Hit Counter?

PHP 8 - libxml_disable_entity_loader() has been deprecated. How do I replace the functionality it provides?

Twig - How to check if variable is a number / integer

Laravel s3 upload file with metadata using pre-signed url

Transpose csv file data [duplicate]

Insert database rows from columns of data from associative array of indexed arrays

IlluminateDatabaseQueryException: SQLSTATE[HY000]: General error: 1 no such table - In clone project

Backend cannot be reached after Typo3 login screen

Hide specific products from unlogged users based in product category in WooCommerce

How to get total pages of PDF with FPDF?

Laravel query builder binding parameters more than once

Laravel Unknown Column 'updated_at'

Laravel PackageManifest.php: Undefined index: name

PHP Slim Framework request using withAttribute error

About Contact Privacy policy Terms and conditions