include/OutboundEmail/OutboundEmail.php
\OutboundEmail
Package: SugarCRM
Outbuound email management
- Api
Properties
$field_defs= 'array(
'id',
'name',
'type',
'user_id',
'mail_sendtype',
'mail_smtptype',
'mail_smtpserver',
'mail_smtpport',
'mail_smtpuser',
'mail_smtppass',
'mail_smtpauth_req',
'mail_smtpssl',
)'
Default value
array(
'id',
'name',
'type',
'user_id',
'mail_sendtype',
'mail_smtptype',
'mail_smtpserver',
'mail_smtpport',
'mail_smtpuser',
'mail_smtppass',
'mail_smtpauth_req',
'mail_smtpssl',
)
Details- Type
- n/a
Methods
_getOutboundServerDisplay(
$smtptype, $smtpserver
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$smtptype | ||
$smtpserver |
createUserSystemOverrideAccount(
string $user_id, string $user_name
=
"", string $user_pass
=
""
)
:
void
Duplicate the system account for a user, setting new parameters specific to the user.
Parameters
Name | Type | Description |
---|---|---|
$user_id | string | |
$user_name | string | |
$user_pass | string |
doesUserOverrideAccountRequireCredentials(
\unknown_type $user_id
)
:
\unknown
Determines if a user needs to set their user name/password for their system override account.
Parameters
Returns
Name | Type | Description |
---|---|---|
$user_id | \unknown_type |
Type | Description |
---|---|
\unknown |
getAssociatedInboundAccounts(
\SugarBean $user
)
:
array
Retrieve an array containing inbound emails ids for all inbound email accounts which have their outbound account set to this object.
Parameters
Returns
Name | Type | Description |
---|---|---|
$user | \SugarBean |
Type | Description |
---|---|
array |
getInboundMailerSettings(
object $user, string $mailer_id
=
'', $ieId
=
''
)
:
object
Retrieves a cascading mailer set
Parameters
Returns
Name | Type | Description |
---|---|---|
$user | object | user |
$mailer_id | string | mailer_id |
$ieId |
Type | Description |
---|---|
object |
getMailerByName(
\User $user, string $name
)
:
\OutboundEmail | false
Get mailer for current user by name
Parameters
Returns
Name | Type | Description |
---|---|---|
$user | \User | |
$name | string |
Type | Description |
---|---|
\OutboundEmail | false |
getUserMailerSettings(
object $user, string $mailer_id
=
'', $ieId
=
''
)
:
object
Retrieves a cascading mailer set
Parameters
Returns
Name | Type | Description |
---|---|---|
$user | object | user |
$mailer_id | string | mailer_id |
$ieId |
Type | Description |
---|---|
object |
getUserMailers(
$user
)
:
void
Retrieves name value pairs for opts lists
Parameters
Name | Type | Description |
---|---|---|
$user |
getUsersMailerForSystemOverride(
String $user_id
)
:
void
Retrieves the mailer for a user if they have overriden the username and password for the default system account.
Parameters
Name | Type | Description |
---|---|---|
$user_id | String |
isAllowUserAccessToSystemDefaultOutbound(
)
:
void
Determine if the user is allowed to use the current system outbound connection.
retrieve(
string $id
)
:
object
Populates this instance
Parameters
Returns
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
object | $this |