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 8790895
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:46:05+00:00 2026-06-13T22:46:05+00:00

I am using cakephp 2.2 THis is my smtp setup in Config/email.php public $gmail

  • 0

I am using cakephp 2.2

THis is my smtp setup in Config/email.php

public $gmail = array(
        'host' => 'ssl://smtp.gmail.com',
        'port' => 465,
        'username' => 'appmailer@someapp.com',
        'password' => 'somepassword',
        'transport' => 'Smtp'
);

This is my email settings.

App::uses('CakeEmail', 'Network/Email');

$email = new CakeEmail('gmail');
$email->from(array('bigshot@company.com' => 'On Behalf of Big Shot'));

$email->to('client@bigshotclient.com');
$email->subject('[Test -- please ignore] one last test. Remember to hit REPLY to this email');
$email->sender('appmailer@someapp.com');
$email->replyTo('bigshot@company.com', 'Big Shot');

$email->send('Remember to hit REPLY to this email');

WHen the email is sent, the FROM address repeatedly shows

On Behalf of Big Shot<appmailer@someapp.com>

how can i make it such that the FROM appears as the original email address of bigshot@company.com?

By the way, the replyTo works very well.

I am attempting to perfect the mail delivery that is all.

  • 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-13T22:46:06+00:00Added an answer on June 13, 2026 at 10:46 pm

    Apparently, Gmail SMTP will always overwrite the FROM field to prevent spamming.

    See https://stackoverflow.com/a/3872880/80353

    If anyone can help to attach the actual GMail documentation stating this point, that would be great.

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

Sidebar

Related Questions

CakePHP has a requireSecure function in the SecurityComponent. I'm using this to force SSL
I am using CakePHP 2.0 and I have a Model with this 'virtualFields': Country.php:
I am using CakePHP 1.26 and CDN JQuery in this URL: http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js In a
I've have this DB Model http://www.dropmocks.com/mBgqjs and I'm using CakePHP to build a simple
I am using cakePHP 1.26. In the PostsController, I have this: $this->paginate=array('conditions'=>array('Reply.post_id'=>$id),'limit' => 1);
i am using cakephp and creating this condition: $conditions = array(Userword.levelid=>0, Userword.userid=>$this->Auth->user('UserId'),date(Userword.date)=>DATE_SUB(CURDATE(),INTERVAL 0 DAY));
I'm using CakePHP 2. This is my controller. class GroupsController extends AppController { public
I'm using CakePhp 2.2 and I have this simple controller, named ProvidersController : <?php
I'm using cakephp with this vendor: oauth_consumer.php It requires OAuth PHP library oauth.php Inside
I am using Cakephp but this is a MVC/php doubt letting the view display

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.