I am sending email using STMP (Using Cakephp Mail not php mailer ). everything is working but when I send email via SMTP then same email should be exists at email account send box.
Same like when you use email at Outlook/windows Mail and when you send new email you can see that email at main email account's sent box.
I am using below code at cakephp 2.x
$this->Email->sendAs = 'both';
$this->Email->from = 'xyz@abc.com';
$this->Email->replyTo = 'xyz@abc.com';
$this->Email->return = 'xyz@abc.com';
$this->Email->to = 'anyone@abc.com';
$this->Email->delivery = 'smtp';
$this->Email->smtpOptions = ['host'=>'host_address','port'=>587,
'username'=>'xyz@abc.com','password'=>'password' ];
$this->Email->subject = 'Subject....';
$body = 'Email body.....';
$this->Email->send($str);