Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8112553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:32:35+00:00 2026-06-06T02:32:35+00:00

No clue how to send an email as soon as an order has been

  • 0

No clue how to send an email as soon as an order has been saved. The purchaser will enter in an email in the order form and a confirmation email is sent using CakePHP 2.0. I’ve tried so many different ways but I’m a noob and need direction. Please direct me!

  <?
    class OrdersController extends AppController
    {
       var $name = 'Orders';
       var $scaffold;
       function add()
       {            
          if ($this->request->is('post'))
          {
               if ($this->Order->save($this->request->data)) 
               {
                   $this->Session->setFlash('Order has been saved');
                   $this->redirect(array('action' => 'index'));
               }
               else 
               {
                   $this->Session->setFlash('Unable to add order');
               }
          }
       }
    }
  ?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T02:32:37+00:00Added an answer on June 6, 2026 at 2:32 am

    CakePHP provides a CakeEmail class for this purpose: http://book.cakephp.org/2.0/en/core-utility-libraries/email.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to send email using the following method in my action class:
I am using the following code to send an email with the contents of
I've been using Velocity for quite some time and never had an issue with
I have <form name=send> <input type=radio name=schoose value=24> <input type=radio name=schoose value=25> <input type=radio
Is it possible to send mail asycronously using PHP while giving live user feedback
I am trying to send email programmatically... I have this line of code: _mail.AddAttachmentData(nsd,text/plain,
I am using python smtplib and xoauth and I am trying to send an
This the code I am using to take picture, display it, then send it
I don't have a clue of what I have to do in order to
I'm using perl to assemble a multipart-MIME email, which I'm then sending using sendmail,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.