Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 30082

Email Sent box does not showing email those send via SMTP in PHP

$
0
0

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);

Viewing all articles
Browse latest Browse all 30082

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>