Skip to content

Mail tls #39

@jfhenriques

Description

@jfhenriques

Hy..

I'm using vimbadmin, which in turn uses OSS-Framework.

There is a little problem with your mailer class, it doesn't allow setting the port or tls for sending mail, take a look on zend's "Securing SMTP Transport" documentation (http://framework.zend.com/manual/1.12/en/zend.mail.smtp-secure.html)

I would suggest changing the file https://github.com/opensolutions/OSS-Framework/blob/master/src/OSS/Resource/Mailer.php to something like this:

                if( isset( $options['auth'] ) )
                {
                    $config = array(
                        'auth' => $options['auth'],
                        'username' => $options['username'],
                        'password' => $options['password']
                    );
                    if( isset( $options['ssl'] ) )
                        $config['ssl'] = $options['ssl'];

                    if( isset( $options['port'] ) )
                        $config['port'] = $options['port'];
                }
                else
                    $config = array();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions