このモジュールはPHPMailerのメソッドと変数の単純なラッパーを提供します。他モジュール開発者によって利用できるようにデザインされており、 下記の例のように簡単なAPIインターフェースです。より詳細はPHPMailerドキュメントを参照下さい。
void reset()
オブジェクトを管理パネルの特定の値に戻す
string GetAltBody()
Eメールの代替本文を返す
void SetAltBody( $string )
Eメールの代替本文を設定
string GetBody()
Eメールのプライマリ本文を返す
void SetBody( $string )
Eメールのプライマリ本文を設定
string GetCharSet()
デフォルト: iso-8859-1
メーラーの文字セットを返す
void SetCharSet( $string )
メーラー文字セットを設定
string GetConfirmReadingTo()
Confirm Readingフラグで確認したアドレスを返す
void SetConfirmReadingTo( $address )
Confirm Readingアドレスを設定、設定解除
string GetContentType()
デフォルト: text/plain
コンテンツタイプを返す
void SetContentType()
コンテンツタイプを設定
string GetEncoding()
エンコーディングを返す
void SetEncoding( $encoding )
エンコーディングを設定
設定オプション: 8bit, 7bit, binary, base64, quoted-printable
string GetErrorInfo()
エラー情報を返す
string GetFrom()
現在の送信者アドレスを返す
void SetFrom( $address )
送信者アドレスを設定
string GetFromName()
現在の送信者名を返す
SetFromName( $name )
送信者名を設定
string GetHelo()
HELO文字列を返す
SetHelo( $string )
HELO文字列を設定
デフォルト値: $hostname
string GetHost()
セミコロンで区切ったSMTPホストを返す
void SetHost( $string )
ホストを設定
string GetHostName()
SMTP Heloに使用するホスト名を返す
void SetHostName( $hostname )
SMTP Heloに使用するホスト名を設定
string GetMailer()
送信方法を返す
void SetMailer( $mailer )
sendmail、mail、STMPのいづれかの送信方法の設定
string GetPassword()
SMTP認証のパスワードを返す
void SetPassword( $string )
SMTP認証のパスワードを設定
int GetPort()
SMTP接続のポート番号を返す
void SetPort( $int )
SMTP接続のポート番号を設定
int GetPriority()
メッセージの優先度を返す
void SetPriority( int )
メッセージの優先度を設定
設定値は、1=高, 3 =通常, 5 = 低
string GetSender()
送信者メール(return path)の文字列を返す
void SetSender( $address )
送信者文字列を設定
string GetSendmail()
sendmailのパスを返す
void SetSendmail( $path )
sendmailのパスを設定
bool GetSMTPAuth()
現在のSMTP認証フラグの値を返す
SetSMTPAuth( $bool )
SMTP認証フラグを設定
bool GetSMTPDebug()
SMTP認証デバッグフラグの値を返す
void SetSMTPDebug( $bool )
SMTP認証デバッグフラグを設定
bool GetSMTPKeepAlive()
SMTPのkeep aliveフラグの値を返す
SetSMTPKeepAlive( $bool )
SMTPのkeep aliveフラグを設定
string GetSubject()
現在のsubject文字列を返す
void SetSubject( $string )
subject文字列を設定
int GetTimeout()
タイムアウト値を返す
void SetTimeout( $seconds )
タイムアウト値を設定
string GetUsername()
SMTP認証ユーザー名を返す
void SetUsername( $string )
SMTP認証ユーザー名を設定
int GetWordWrap()
wordwrap値を返す
void SetWordWrap( $int )
wordwrap値を設定
AddAddress( $address, $name = \'\' )
アドレスを追加
AddAttachment( $path, $name = \'\', $encoding = \'base64\', $type = \'application/octent-stream\' )
添付ファイルを追加
AddBCC( $address, $name = \'\' )
BCCアドレスを追加
AddCC( $address, $name = \'\' )
CCアドレスを追加
AddCustomHeader( $txt )
カスタムヘッダーの追加
AddEmbeddedImage( $path, $cid, $name = \'\', $encoding = \'base64\', $type = \'application/octent-stream\' )
貼り付けイメージを追加
AddReplyTo( $address, $name = \'\' )
返信用アドレスを追加
AddStringAttachment( $string, $filename, $encoding = \'base64\', $type = \'application/octent-stream\' )
添付ファイルを追加
ClearAddresses()
全てのアドレスをクリア
ClearAllRecipients()
全ての受信者をクリア
ClearAttachments()
全ての添付ファイルをクリア
ClearBCCs()
全てのBCCアドレスをクリア
ClearCCs()
全てのCCアドレスをクリア
ClearCustomHeaders()
全てのカスタムヘッダーをクリア
ClearReplyto()
返信用アドレスをクリア
IsError()
エラー状況を確認
bool IsHTML( $bool )
html flagを設定
注意 これは恐らくgetとset兼用のメッソドです。
bool IsMail()
メールを使っているかどうかチェック
bool IsQmail()
qmailを使っているかどうかチェック
IsSendmail()
sendmailを使っているかどうかチェック
IsSMTP()
smtpを使っているかどうかチェック
Send()
現在処理中のメールを送信
SetLanguage( $lang_type, $lang_path = \'\' )
使用言語及び言語パス(省略可)を設定
SmtpClose()
SMTP接続をクローズ