sq_get_attach_tempfile (line
24)
Get a new file to write an attachment to.
This function makes sure it doesn't overwrite other attachments, preventing collisions and race conditions.
filename
sq_get_attach_tempfile
()
Send a simple mail message using SquirrelMail's API.
Until SquirrelMail is sufficiently redesigned, this function is a stand-in for a simple mail delivery call. Currently, it only sends plaintext messages (unless the caller uses the $message parameter).
array
sq_send_mail
(string $to, string $subject, string $body, string $from, [string $cc = ''], [string $bcc = ''], [object $message = ''], [boolean $only_build_message_object = FALSE])
-
string
$to: The destination recipient.
-
string
$subject: The message subject.
-
string
$body: The message body.
-
string
$from: The sender.
-
string
$cc: The destination carbon-copy recipient. (OPTIONAL; default no Cc:)
-
string
$bcc: The destination blind carbon-copy recipient. (OPTIONAL; default no Bcc:)
-
object
$message: If the caller wants to construct a more complicated message themselves and pass it here, this function will take care of the rest - handing it over to SMTP or Sendmail. If this parameter is non- empty, all other parameters are ignored. (OPTIONAL: default is empty)
-
boolean
$only_build_message_object: When TRUE, only builds the message object that it intends to send and returns it (returned success code will be -1 and message ID emtpy) (OPTIONAL; default is FALSE)