Prolateral Consulting Ltd
Prolateral Consulting Ltd
Knowledgebase Articles
Setup examples

Prolateral offers primary and backup domain (DNS) services, with servers in key geographic locations providing the best service possible.


How do I set up outbound SMTP using CakePHP?
How do I set up outbound SMTP using the email component from CakePHP?
How do I use outMail in CakePHP?
How do I use outMail with the email component from CakePHP?


The following example of code assumes you have already got a fully functional webserver and the CakePHP framework installed and working.

Example code outmail-cakephp.php


	public $default = array(
	    'host' => '',
	    'port' => 25,
	    'auth' => 'plain',
	    'username' => 'outmail_username',
	    'password' => '**********',
	    'tsl' => false,
	    'transport' => 'smtp',
	    'from' => array('' => 'Username'),
	    'returnPath' => '',
	    'layout' => false,
	    'emailFormat' => 'html',
	    'template' => 'only_text',
	    'charset' => 'utf-8',
	    'headerCharset' => 'utf-8',

	$this->Email->to = 'Name <>';
	$this->Email->subject = 'Subject goes here...';
	$this->Email->from = 'My Name <>';
	$this->Email->template = 'user_confirm';
	$this->Email->sendAs = 'html';
	$this->Email->smtpOptions = $default;
	$this->Email->delivery = 'smtp';

	if ($this->Email->send()) {
		return true;
	} else {
		echo $this->Email->smtpError;

Summary of server details

Outgoing server

As provided in your signup email.

Outgoing server protocol


Outgoing server port

25, 465, 587, 2525 or 8025

Authentication Type

Basic Authentication, SSL and TLS supported


As provided


As provided


like it, love it, then share it. Share this article on social media.

Did you enjoy this article?


The Origin of this information may be internal or external to Prolateral Consulting Ltd. Prolateral makes all reasonable efforts to verify this information. However, the information provided in this document is for your information only. Prolateral makes no explicit or implied claims to the validity of this information. Any trademarks referenced in this document are the property of their respective owners.