include/OutboundEmail/OutboundEmail.php

Show: inherited
Table of Contents

\OutboundEmail

Package: SugarCRM

Outbuound email management

Api
 

Properties

Propertypublic  $db= ''

Necessary

Details
Type
n/a
Propertypublic  $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 valuearray( '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
Propertypublic  $id= ''

Columns

Details
Type
n/a
Propertypublic  $mail_sendtype= ''
Details
Type
n/a
Propertypublic  $mail_smtpauth_req= ''
Details
Type
n/a
Propertypublic  $mail_smtpdisplay= ''
Details
Type
n/a
Propertypublic  $mail_smtppass= ''
Details
Type
n/a
Propertypublic  $mail_smtpport= '25'
Default value25Details
Type
n/a
Propertypublic  $mail_smtpserver= ''
Details
Type
n/a
Propertypublic  $mail_smtpssl= ''
Details
Type
n/a
Propertypublic  $mail_smtptype= ''
Details
Type
n/a
Propertypublic  $mail_smtpuser= ''
Details
Type
n/a
Propertypublic  $name= ''
Details
Type
n/a
Propertypublic  $new_with_id= 'FALSE'
Default valueFALSEDetails
Type
n/a
Propertypublic  $type= ''
Details
Type
n/a
Propertypublic  $user_id= ''
Details
Type
n/a

Methods

methodpublicOutboundEmail( ) : void

Sole constructor

methodprivate_getOutboundServerDisplay(  $smtptype,  $smtpserver ) : void

Parameters
Name Type Description
$smtptype
$smtpserver
methodpubliccreateUserSystemOverrideAccount( 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
methodpublicdelete( ) : void

Deletes an instance

methodpublicdoesUserOverrideAccountRequireCredentials( \unknown_type $user_id ) : \unknown

Determines if a user needs to set their user name/password for their system override account.

Parameters
Name Type Description
$user_id \unknown_type
Returns
Type Description
\unknown
methodpublicgetAssociatedInboundAccounts( \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
Name Type Description
$user \SugarBean
Returns
Type Description
array
methodpublicgetInboundMailerSettings( object $user, string $mailer_id = '',  $ieId = '' ) : object

Retrieves a cascading mailer set

Parameters
Name Type Description
$user object

user

$mailer_id string

mailer_id

$ieId
Returns
Type Description
object
methodpublicgetMailerByName( \User $user, string $name ) : \OutboundEmail | false

Get mailer for current user by name

Parameters
Name Type Description
$user \User
$name string
Returns
Type Description
\OutboundEmail | false
methodpublicgetSystemMailerSettings( ) : void

Retrieves the system's Outbound options

methodpublicgetUserMailerSettings( object $user, string $mailer_id = '',  $ieId = '' ) : object

Retrieves a cascading mailer set

Parameters
Name Type Description
$user object

user

$mailer_id string

mailer_id

$ieId
Returns
Type Description
object
methodpublicgetUserMailers(  $user ) : void

Retrieves name value pairs for opts lists

Parameters
Name Type Description
$user
methodpublicgetUsersMailerForSystemOverride( 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
methodpublicisAllowUserAccessToSystemDefaultOutbound( ) : void

Determine if the user is allowed to use the current system outbound connection.

methodpublicpopulateFromPost( ) : void

methodpublicremoveUserOverrideAccounts( ) : void

Remove all of the user override accounts.

methodpublicretrieve( string $id ) : object

Populates this instance

Parameters
Name Type Description
$id string
Returns
Type Description
object $this
methodpublicsave( ) : void

saves an instance

methodpublicsaveSystem( ) : void

Saves system mailer. Presumes all values are filled.

methodpublicupdateUserSystemOverrideAccounts( ) : void

Update the user system override accounts with the system information if anything has changed.

Documentation was generated by DocBlox 0.18.1.