示例#1
0
	/** 
	 * メール送信
	 * 
	 * メールを送信する<br>
	 * 
	 * @access public
	 * @param string
	 * @return void メールタイプ
	 */
	function send_mail($type="text", $debug=false)
	{
		//メール送信
		$mail = new Qdmail(null, null, null, $debug);
		$mail -> lineFeed("\n");
		$mail->from($this->from, $this->from_name);
		$mail->to($this->to, $this->to_name);
		if (count($this->cc) > 0) $mail->cc($this->cc, $this->cc_name);
		if (count($this->bcc) > 0) $mail->bcc($this->bcc, $this->bcc_name);
		$mail->replyto($this->replyto, $this->replyto_name);
		$mail->subject($this->subject);
		$mail->text($this->message);
		$ret = $mail->send();
		$this->reset();
		return $ret;
	}