SetMailBody()

Syntax

SetMailBody(#Mail, Body$)
Description
Change the mail body. GetMailBody() can be used to read the body content.

Parameters

#Mail The mail to use.
Body$ The string for the new mail body.

Return value

None.

Remarks

According to the RFC 2822 standard a line break in an e-mail need to be done always using the #CRLF$ chars.

Example

  If CreateMail(0, "test@purebasic.com", "Hello")
    SetMailBody(0, "This is the body")
    Debug GetMailBody(0) ; Will print "This is the body"
  EndIf

See Also

GetMailAttribute(), CreateMail()

Supported OS

All

<- SetMailAttribute() - Mail Index