Difference between #4 and #5 of
MailGun Api Wrapper to send emails

Changes

Title unchanged

MailGun Api Wrapper to send emails

Category unchanged

How-tos

Yii version changed

1.1

Tags changed

email,mailgun, email

Content changed

MailGun.php Class I will keep updating this at GitHub here:
 
https://gist.github.com/vinaykrsharma/0729d75234fb9cc59e8c
 
 

```php

<?php
/**
[...]
Add as a component in Yii config files either it could be `main.php` or `console.php` (not tested yet)


```php

<?php
// ...
[...]

```php

<?php
$r = Yii::app()->mailgun->send($model->email, 'Hello',
"<p>Testing from Main App, for some <small style=\"color: green;\">awesomness</span>!</p>");
if($r) {
$r = json_decode($r);
[...]
1 0
2 followers
Viewed: 13 536 times
Version: 1.1
Category: How-tos
Tags: email, mailgun
Written by: VINAY Kr. SHARMA
Last updated by: Maurizio Domba Cerin
Created on: Feb 24, 2015
Last updated: 4 years ago
Update Article

Revisions

View all history