No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
SingleEmailMessage メソッド
名前空間
使用方法
すべての基本メール (Email クラス) メソッドは、SingleEmailMessage オブジェクトでも使用できます。
SingleEmailMessage メソッド
SingleEmailMessage のメソッドは次のとおりです。すべてインスタンスメソッドです。
setBccAddresses(String[])
署名
public Void setBccAddresses(String[] bccAddresses)
パラメータ
- bccAddresses
- 型: String[]
戻り値
型: Void
使用方法
次のいずれかの項目の少なくとも 1 つの値を指定しなければなりません。toAddresses、ccAddresses、bccAddresses、targetObjectId、targetObjectIds。
BCC コンプライアンスオプションが組織レベルで設定されている場合、ユーザは BCC アドレスを標準のメッセージに追加することができません。次のエラーコードが返されます: BCC_NOT_ALLOWED_IF_BCC_ COMPLIANCE_ENABLED。 BCC コンプライアンスについては、salesforce.com の担当者にお問い合わせください。
setCcAddresses(String[])
署名
public Void setCcAddresses(String[] ccAddresses)
パラメータ
- ccAddresses
- 型: String[]
戻り値
型: Void
使用方法
- toAddresses
- ccAddresses
- bccAddresses
- targetObjectId
- targetObjectIds
setCharset(String)
署名
public Void setCharset(String charset)
パラメータ
- charset
- 型: String
戻り値
型: Void
setDocumentAttachments(ID[])
署名
public Void setDocumentAttachments(ID[] docAttachments)
パラメータ
- docAttachments
- 型: ID[]
戻り値
型: Void
使用方法
添付文書の合計が 10 MB を超えない限り、いくつでも文書を追加できます。
setFileAttachments(EmailFileAttachment[])
署名
public Void setFileAttachments(EmailFileAttachment[] fileAttachments)
パラメータ
- fileAttachments
- 型: Messaging.EmailFileAttachment[]
戻り値
型: Void
使用方法
添付ファイルの合計が 10 MB を超えない限り、いくつでもファイルを追加できます。
setHtmlBody(String)
署名
public Void setHtmlBody(String htmlBody)
パラメータ
- htmlBody
- 型: String
戻り値
型: Void
setInReplyTo(String)
署名
public Void setInReplyTo(String inReplyTo)
パラメータ
- inReplyTo
- 型: String
戻り値
型: Void
setPlainTextBody(String)
署名
public Void setPlainTextBody(String plainTextBody)
パラメータ
- plainTextBody
- 型: String
戻り値
型: Void
setOrgWideEmailAddressId(ID)
署名
public Void setOrgWideEmailAddressId(ID emailAddressId)
パラメータ
- emailAddressId
- 型: ID
戻り値
型: Void
setReferences(String)
署名
public Void setReferences(String references)
パラメータ
- references
- 型: String
戻り値
型: Void
setSubject(String)
署名
public Void setSubject(String subject)
パラメータ
- subject
- 型: String
戻り値
型: Void
setTargetObjectId(ID)
署名
public Void setTargetObjectId(ID targetObjectId)
パラメータ
- targetObjectId
- 型: ID
戻り値
型: Void
setToAddresses(String[])
署名
public Void setToAddresses(String[] toAddresses)
パラメータ
- toAddresses
- 型: String[]
戻り値
型: Void
使用方法
- toAddresses
- ccAddresses
- bccAddresses
- targetObjectId
- targetObjectIds
setWhatId(ID)
署名
public Void setWhatId(ID whatId)
パラメータ
- whatId
- 型: ID
戻り値
型: Void
使用方法
値は、次の型のいずれかです。
- Account
- Asset
- Campaign
- Case
- Contract
- Opportunity
- Order
- Product
- Solution
- Custom