示例#1
0
 function sendmail()
 {
     $base_url = base_url('application/libraries/qdmail.php');
     $data = array('hello' => 'こんにちは');
     $content = $this->load->view('mailview', $data, true);
     echo qd_send_mail('html', '*****@*****.**', '件名', $content, '*****@*****.**');
 }
 public static function send_mail($templete_name, $assign_array, $to_name, $to_mailaddress, $mode = "normal")
 {
     require_once dirname(__FILE__) . "/qdmail.php";
     $config = new Zend_Config_Ini(dirname(__FILE__) . "/../config.ini");
     require $config->path->mail . $templete_name . ".php";
     $to = array($to_mailaddress, $to_name . ' ');
     $other_heder['from'][] = array($from_mailaddress, $from_name);
     $option = array('type' => 'text', 'option' => array('mtaOption' => '-f ' . $config->information->used_address));
     $return_flag = @qd_send_mail($option, $to, $subject, $body, $other_heder);
     if (!$return_flag) {
     }
 }
示例#3
0
    public function index()
    {
        //$mail = new Qdmail();
        $this->load->library('mobmail');
        $mail = $this->mobmail->mail();
        $body = '<html><body bgcolor="#aabbff">
<h1>HTMLメールテスト</h1>
<b>太字</b>
<font color="red">文字色を変えてみます。</font>
<div>画像はこのように</div>
<img src="cid:test1.jpg">
<div>文章中に置くことができます。</div>
<img src="cid:test2.jpg">
<p>Send by Qdmail</p>
<div>携帯端末、キャリアによって使えるHTMLタグが違いますので注意してください。</div>
<div><a href="mailto:address@example.com">メールはこちらへ</a></div>
<div><a href="tel:00-0000-0000">電話はこちらへ</a></div>
</body></html>';
        qd_send_mail('deco', array('*****@*****.**', '宛先(日本語OK)'), 'デコメのテスト', $body, array('test@localhost', '配信元(日本語OK)'));
    }
示例#4
0
 function _email($to, $from, $subject, $message)
 {
     $this->ci->load->library('qdmail');
     $subject = $subject;
     $body = $message;
     $fromname = $from;
     $reply_to = $from;
     $from = $from;
     $to = $to;
     //半角カナを変換
     $body = mb_convert_kana($body, "KV", 'UTF8');
     $subject = mb_convert_kana($subject, "KV", 'UTF8');
     mb_language("Ja");
     mb_internal_encoding("UTF8");
     $parameter = '-f ' . $reply_to;
     $option = array('type' => 'text', 'option' => array('mtaOption' => $parameter));
     $var['from'] = array("{$from}", "{$fromname}");
     $var['reply-to'] = array("{$reply_to}", "{$fromname}");
     //送信
     if (qd_send_mail($option, $to, "{$subject}", "{$body}", $var)) {
         return true;
     } else {
         return false;
     }
 }
示例#5
0
<?php

require_once '../init.php';
require_once 'qdmail.php';
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    validate_presence_of('email');
    validate_email_of('email');
    validate_presence_of('body');
    if (!(count($_ERROR) > 0)) {
        $body = fetch('inquiry.txt.php');
        qd_send_mail('text', MAIL_TO, 'コミュニケーション・ベースにお問い合わせが入りました', $body, MAIL_FROM);
        $_NOTICE = 'お問い合わせを承りました。';
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <meta http-equiv="Content-Script-Type" content="text/javascript" />
    <title>お問い合わせ | コミュニケーション・ベース</title>
    <link rel="stylesheet" href="stylesheets/reset.css" type="text/css" />
    <link rel="stylesheet" href="stylesheets/base.css" type="text/css" />
    <script type="text/javascript" src="js/script.js"></script>
  </head>
  <body>
    <div id="header">
      <h1><a href="/">コミュニケーション・ベース</a></h1>
<? include 'menu.php' ?>