Send email Via amazon SES service failed due to ssl and tsl field
I try to send email via amazon SES service and it's failed .
i made changes in Mailer.php and then it works fine . can we fix this in next release?
if ($this->Host === 'smtp.gmail.com' || $this->Host === 'smtp-relay.gmail.com'||$this->Host === 'mars.dnsracks.com' ||$this->Host === 'email-smtp.us-east-1.amazonaws.com') {
if ($port == 465) $this->SMTPSecure = 'ssl';
if ($port == 587) $this->SMTPSecure = 'tls';
}
i made changes in Mailer.php and then it works fine . can we fix this in next release?
if ($this->Host === 'smtp.gmail.com' || $this->Host === 'smtp-relay.gmail.com'||$this->Host === 'mars.dnsracks.com' ||$this->Host === 'email-smtp.us-east-1.amazonaws.com') {
if ($port == 465) $this->SMTPSecure = 'ssl';
if ($port == 587) $this->SMTPSecure = 'tls';
}
Comments
@sandra do you have any thoughts on how this might be achieved? Perhaps we switch to an array of hosts, and just match on the domain, rather than the subdomain. Thoughts?
Thanks,
Ross