• 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

Xdebug 3 not showing in phpinfo on m1 Monterey

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

Two buttons one form

Sentry + Laravel: how to log an already catched Exception?

The sum of the user's points

Message: Set sys_temp_dir in your php.ini after installed composer

301 Redirect to remove query string on homepage only

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

How to get AJAX to post on second page?

How to check user Permissions using Custom Middleware in Laravel

Remove categories with all childs derived from parent category

Passing a boolean value from checkbox in Laravel form

how to pass row id in href of a tag in codeigniter controller?

PHP file_get_contents function

How to redirect to another page after n seconds in wordpress without using javascript?

About Contact Privacy policy Terms and conditions