Solar_Mail_Message::setTo()

public Solar_Mail_Message Solar_Mail_Message::setTo ( string $addr , string $name = NULL )

Sets the "To:" address recipient, removing previous "To:" recipients.

Parameters

  • (string) $addr: The email address of the recipient.

  • (string) $name: The display-name for the recipient, if any.

Returns

  • (Solar_Mail_Message) This object.

Description

Sets the "To:" address recipient, removing previous "To:" recipients.



Local