• 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

PHPUnit (Phar) Fatal Error Only When Test Fails

PHPExcel file download using AJAX call

PHP echo values of all sub keys [duplicate]

ConstraintViolationListInterface to Exception in Symfony

How to remove Deprecated SymfonyComponentDebugDebugClassLoader?

carbon generated datetime not stored correctly into the database

How to use React Router with Laravel?

How to change product Image when variables are selected in Shop and Archive Pages?

Cant seem to get the Pagination to work on my WooCommerce REST API application?

Pass a select with mysqli_fetch_row to a table

sort() not affecting original array while inside foreach loop

HTTP Range requests with php for Video Embedding for solving going to specific time in video (seek bar not work)

Laravel post contact form giving me error 419

how to loop through json response data using ajax jquery?

PHP Print to Network Printer

About Contact Privacy policy Terms and conditions