Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMTP START TLS #6511

Closed
aritmukherjee opened this issue May 8, 2015 · 8 comments
Closed

SMTP START TLS #6511

aritmukherjee opened this issue May 8, 2015 · 8 comments
Milestone

Comments

@aritmukherjee
Copy link

Hi I am trying to set up smtp configuration in cakeemail. When I use phpmailer class it runs perfectly but in case of cakephp 2 it shows "SMTP Error: 530 5.7.0 Must issue a STARTTLS command first" issue.
I can't figure out the solution.
Please suggest me with a solution if possible.

@ADmad
Copy link
Member

ADmad commented May 8, 2015

Show the configuration you are using.

@aritmukherjee
Copy link
Author

Below is my smtp configuration code

public $smtp = array(
  'transport' => 'Smtp',
  'from' => array('audit.tool@ccscleaning.com' => 'My Site'),
  'host' => 'mail.securesuite.io',
  'port' => 587,
  //'timeout' => 30,
  'username' => 'audit.tool@ccscleaning.com',
  'password' => 'secret',
  'client' => null,
  'log' => false,
  'tls' =>false,
  //'charset' => 'utf-8',
  //'headerCharset' => 'utf-8',
 );

@ADmad
Copy link
Member

ADmad commented May 8, 2015

Since your smtp server expects STARTTLS shouldn't the tls config be true?

@ADmad ADmad added this to the 2.6.5 milestone May 8, 2015
@aritmukherjee
Copy link
Author

So how can I ignore that issue. The smtp is enbled with tls. So I have to set TLS. Can you suggest the code I would follow. From same server I managed to send smtp mail but not with cakeemail.

@ADmad
Copy link
Member

ADmad commented May 8, 2015

So how can I ignore that issue.

You can't just ignore it. Set 'tls' to true in your config.

@ADmad ADmad closed this as completed May 8, 2015
@aritmukherjee
Copy link
Author

I have tried with tls true. It still shows
"STARTTLS command first" error

@ADmad ADmad removed the invalid label May 8, 2015
@ADmad ADmad reopened this May 8, 2015
@markstory
Copy link
Member

What mailserver are you using? The current TLS code was developed against gmail and I've used it with postfix in the past.

@markstory markstory modified the milestones: 2.6.5, 2.6.6, 2.6.7, 2.6.8 May 25, 2015
@markstory markstory removed this from the 2.6.8 milestone Jun 30, 2015
@markstory markstory modified the milestones: 2.7.2, 2.7.1 Jul 24, 2015
@markstory markstory modified the milestones: 2.7.2, 2.7.3 Aug 7, 2015
@markstory markstory modified the milestones: 2.7.3, 2.7.4 Aug 24, 2015
@markstory markstory modified the milestones: 2.7.4, 2.7.5 Sep 29, 2015
@markstory markstory modified the milestones: 2.7.5, 2.7.6 Oct 2, 2015
@markstory markstory modified the milestones: 2.7.6, 2.7.7 Nov 6, 2015
@markstory markstory modified the milestones: 2.7.7, 2.7.8 Nov 23, 2015
@dereuromark
Copy link
Member

We can probably close this as for all others and those email providers it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants