• 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

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

Object of class stdClass could not be converted to string error

NGINX: connect() to unix:/var/run/php7.2-fpm.sock failed (2: No such file or directory)

I want to store data in new index as per my key in php [duplicate]

mysql slow on updates for a well optimized query

Show Custom Data in Woocommerce Order Details Admin Area

Laravel Command Schedule Not Working Properly

Statement that checks whether a URL contains a particular path?

Update Order custom Field value with WooCommerce REST API

Docker & Laravel : configure: error: Package requirements (oniguruma) were not met

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

Required field only if another field has a value, must be empty otherwise

Transpose multidimensional array and join values with commas

how to loop through json response data using ajax jquery?

PHP: convert all UTF-8 characters to HTML entities

About Contact Privacy policy Terms and conditions