vlibMimeMail

vLIB logo

4.3. to()

Function Description
  to (string email [, string name])

This function sets the 'To' header for the message. The email parameter is the email of the recipient and the name parameter is the name of the recipient, the name parameter is optional.

You can call this function as many times as you like.

Example

   $mail->to('[email protected]', 'Mr Example To');