Solar_Mail_Message::setFrom()

public Solar_Mail_Message Solar_Mail_Message::setFrom ( string $addr , string $name = '' )

Sets the "From:" (sender) on this message.

Parameters

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

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

Returns

  • (Solar_Mail_Message) This object.

Description

Sets the "From:" (sender) on this message.

Strips CR/LF from the address and name to help avoid header injections.



Local