• 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

Exception thrown during the rendering of a template("Parameter "id" for route "url" must match "[^/]++" ("" given) to generate a corresponding URL.")

how to retrieve the first and last instance of a row in pdo dataset

Get keys from associative array [duplicate]

PHP: Telegram Bot: Insert line break to text message

Laravel Nova Dependency Container what are the allowed resource properties other than id in dependsOn

Log file is not being written in Laravel 5.5

PHP block shortcut in Visual Studio Code

curl returning 301 error after migrating to https

Hi, I am making a contact form thingy, and my php isn't working any reason why?

loop through an anchor id

how do i retrieve and display the alt text of an image in wordpress?

Utf8 encoding issue with Laravel

How can I convert from a{a{} b{}} to a[a[],b[]] using php preg_match?

onKeyUp event calculation not working on the following rows from php generated forms except the first one

php 7 php.ini upload_max_filesize not working

About Contact Privacy policy Terms and conditions