Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laminas Mail Laravel Package

oroinc/laminas-mail

oroinc/laminas-mail is a small bridge package for using Laminas Mail components within Oro applications. Provides the Laminas mail classes and configuration needed to send emails, manage transports, and integrate with Oro’s mailing features.

View on GitHub
Deep Wiki
Context7

SMTP Transport Options

This document details the various options available to the Laminas\Mail\Transport\Smtp mail transport.

Quick Start

Basic SMTP Transport Usage

use Laminas\Mail\Transport\Smtp as SmtpTransport;
use Laminas\Mail\Transport\SmtpOptions;

// Setup SMTP transport
$transport = new SmtpTransport();
$options   = new SmtpOptions([
    'name' => 'localhost.localdomain',
    'host' => '127.0.0.1',
    'port' => 25,
]);
$transport->setOptions($options);

If you require authentication, see the section on SMTP authentication for examples of configuring authentication credentials.

Configuration Options

Option name Description
name Name of the SMTP host; defaults to "localhost".
host Remote hostname or IP address; defaults to "127.0.0.1".
port Port on which the remote host is listening; defaults to "25".
connection_class Fully-qualified classname or short name resolvable via Laminas\Mail\Protocol\SmtpPluginManager. See the SMTP authentication documentation for details.
connection_config Optional associative array of parameters to pass to the connection class in order to configure it. By default, this is empty. See the SMTP authentication documentation for details.

Available Methods

getName

getName() : string

Returns the string name of the local client hostname.

setName

setName(string $name) : void

Set the string name of the local client hostname.

getConnectionClass

getConnectionClass() : string

Returns a string indicating the connection class name to use.

setConnectionClass

setConnectionClass(string $connectionClass) : void

Set the connection class to use.

getConnectionConfig

getConnectionConfig() : array

Get configuration for the connection class.

setConnectionConfig

setConnectionConfig(array $config) : void

Set configuration for the connection class. Typically, if using anything other than the default connection class, this will be an associative array with the keys "username" and "password".

getHost

getHost() : string

Returns a string indicating the IP address or host name of the SMTP server via which to send messages.

setHost

setHost(string $host) : void

Set the SMTP host name or IP address.

getPort

getPort() : int

Retrieve the integer port on which the SMTP host is listening.

setPort

setPort(int $port) : void

Set the port on which the SMTP host is listening.

__construct

__construct(null|array|Traversable $config) : void

Instantiate the class, and optionally configure it with values provided.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky