JMail::useSMTP
From Joomla! Documentation
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JMail::useSMTP[edit]
Description[edit]
Use SMTP for sending the email.
Template:Description:JMail::useSMTP [Edit Descripton]
Since[edit]
Synopsis[edit]
public JMail::useSMTP ($auth=null, $host=null, $user=null, $pass=null, $secure=null, $port=25)
Parameter | Type | Default | Description |
---|---|---|---|
$auth | string | null | SMTP Authentication [optional] |
$host | string | null | SMTP Host [optional] |
$user | string | null | SMTP Username [optional] |
$pass | string | null | SMTP Password [optional] |
$secure | $secure | null | |
$port | int | 25 | $port |
Returns[edit]
boolean True on success
Defined in[edit]
libraries/joomla/mail/mail.php (line 324)
- see source code in BitBucket
Referenced by[edit]
See also[edit]
Template:SeeAlso:JMail::useSMTP
Examples[edit]
<CodeExamplesForm />