• 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

MySQL upgrade causing unexpected results on simple WHERE clauses

How can I make this nested location configuration use the correct path to call a php program?

Declaration of OMDb::query(string $statement) must be compatible with PDO::query

How to find phpcs current default standard

How to get page number on dompdf PDF when using "view"

passwordless LDAP login and get user information using Kerberos ticket in PHP

Too few arguments to function PendingResourceRegistration::name(),1 passed in C:xampphtdocsproject outesweb.php on line 18 and exactly 2 expected

Unit (real unit test) of test laravel relationship

500 (Internal Server Error) with Laravel & Docker [duplicate]

Add rows to Single product Additional information table in WooCommerce 3.6

Changing font color in javascript

Woocommerce redirect after add-to-cart error

Laravel Blade checkbox not checked

Convert regular text to array using notepad++

I want to use codeigniter foreign character library in my custom PHP project how i can use it?

About Contact Privacy policy Terms and conditions