IBOS open source
  • Namespace
  • Class

Namespaces

  • application
    • core
      • cache
        • driver
        • provider
      • components
      • controllers
      • engines
        • local
        • sae
      • model
      • modules
      • utils
      • widgets
    • modules
      • article
        • controllers
        • core
        • model
        • utils
      • calendar
        • controllers
        • model
        • utils
      • contact
        • controllers
        • model
        • utils
      • dashboard
        • controllers
        • model
        • utils
      • department
        • components
        • model
        • utils
      • diary
        • components
        • controllers
        • model
        • utils
        • widgets
      • email
        • controllers
        • core
        • model
        • utils
      • main
        • behaviors
        • components
        • controllers
        • model
        • utils
        • widgets
      • message
        • controllers
        • core
          • co
          • wx
            • callback
            • event
        • model
        • utils
      • mobile
        • components
        • controllers
        • utils
      • position
        • components
        • model
        • utils
      • recruit
        • components
        • controllers
        • core
        • model
        • utils
        • widgets
      • role
        • model
        • utils
      • user
        • components
        • controllers
        • model
        • utils
      • vote
        • components
        • controllers
        • model
        • utils
      • weibo
        • controllers
        • core
        • model
        • utils

Classes

  • Email
  • EmailApi
  • EmailLang
  • EmailMime
  • RyosImap
  • WebMail

Class WebMail

Namespace: application\modules\email\utils
Located at system/modules/email/utils/WebMail.php

Methods summary

public static boolean
# checkAccount( string $address, string $password, string $postConfig = array(), $configParse = 'LOCAL' )

检查一个账户是否正确

检查一个账户是否正确

Parameters

$address
一个正确的电子邮件全称地址
$password
密码
$postConfig
$configParse 用何种方式解析账户
$configParse

Returns

boolean
public static string
# getBody( type $id, type & $conn, type & $obj, type $header )

获取外部邮件正文文本或html内容

获取外部邮件正文文本或html内容

Parameters

$id
$conn
$obj
$header

Returns

string
public static string
# getDomin( string $string )

获取一级域名.如 mxdomain.qq.com 返回 qq.com

获取一级域名.如 mxdomain.qq.com 返回 qq.com

Parameters

$string
要处理的域名

Returns

string
public static array
# getEmailConfig( string $address, string $password, string $configParse = 'LOCAL' )

获取邮件服务器配置

获取邮件服务器配置

Parameters

$address
$password
$configParse

Returns

array
public static mixed
# getMailAddress( string $domain )

如果用户提供地址不在服务器配置数组内容,则通过MX lookup 获得邮箱服务器的域名

如果用户提供地址不在服务器配置数组内容,则通过MX lookup 获得邮箱服务器的域名

Parameters

$domain

Returns

mixed
public static array
# getServerConfig( string $method )

获取服务器配置数组

获取服务器配置数组

Parameters

$method
LOCAL:本地配置,WEB:网络配置,可保证最新

Returns

array
public static array
# mergePostConfig( string $address, string $password, array $config )

合并表单提交配置数组

合并表单提交配置数组

Parameters

$address
$password
$config

Returns

array
public static integer
# receiveMail( array $web )

接收邮件处理

接收邮件处理

Parameters

$web

Returns

integer
public static mixed
# sendWebMail( string $toUser, array $body, array $web )

发送外部邮件

发送外部邮件

Parameters

$toUser
要发送的邮件地址,可多个
$body
$web

Returns

mixed
boolean|发送成功 string|错误信息

Constants summary

string SERVER_CONF_WEB
# 'http://www.ibos.com.cn/resources/email/serverConf.xml'
string SERVER_CONF_LOCAL
# 'system/modules/email/extensions/serverConf.xml'
IBOS open source API documentation generated by ApiGen