• 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

Alert message after submitting form in PHP

WooCommerce Subscriptions: Remove role on cancelled subscription

Multiply each value in array using array_map function

laravel automatically deletes server.php on php artisan serve

Laravel 5.1 xmlHttpRequest AJAX POST TokenMismatchException

curl returning 301 error after migrating to https

Upload a file Using PHP and JavaScript

How to read laravel_session cookies saved in cookie memory of browser in client side?

unable to load your default controller on Codeigniter

Laravel: Why is my variable not being set while it's in the construct function of the controller?

Apply filter array/return terms

Doctrine 2 mapping referencing unique key

Symfony - EasyAdmin - Add and remove functions are ignored from AssociationField

php code to send checkbox form results to email

phpunit - testing is painfully slow

About Contact Privacy policy Terms and conditions