I’m trying to use the “Sending a basic message” code from here to send an email:
http://book.cakephp.org/view/1283/Email#!/view/1286/Sending-a-basic-message
The code appears to work but I never receive the email (I’ve verified that the email address is valid). I haven’t configured an email server anywhere in PHP, but the instructions make no mention of that. Here’s the output when I set
$this->Email->delivery = 'debug';
.
To: Somebody Else
From: Somebody
Subject: Test
Header:
From: Somebody
Message-ID: <4daa65cd-beb8-4bf6-8cec-1dc07b5e5e4c@localhost>
Date: Sat, 16 Apr 2011 22:00:13 -0600
X-Mailer: CakePHP Email Component
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bitParameters:
Message:
Hello message body!
opike,
if you use the
debugsetting, then you are not sending an email, but rather displaying it.See here.
For a proper setup, see here. So you do not need a MTA like exim or sendmail configured, but rather use your ISP (aka (here), your normal email address) to do the work.
Edit0:
And you definitly set it up like the book dictates?: