source: branches/version-2_4-dev/data/script/send_kara_mail.php @ 18493

Revision 18493, 709 bytes checked in by Yammy, 16 years ago (diff)

http://svn.ec-cube.net/open_trac/ticket/528
改行コードが混在している
php,inc,tpl,css,sql,js の拡張子のファイルに対して、
find, dos2unix にて一括変換

  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-httpd-php; charset=UTF-8
Line 
1#!/usr/bin/env php
2<?php
3/**
4 * モバイルサイト/空メールテスト送信スクリプト
5 */
6
7require_once dirname(__FILE__) . '/../conf/mobile_conf.php';
8
9if ($argc != 4) {
10    echo "Usage: $argv[0] sender command token\n";
11    exit(1);
12}
13
14$receive_kara_mail = dirname(__FILE__) . '/receive_kara_mail.php';
15$from = $argv[1];
16$command = $argv[2];
17$token = $argv[3];
18$to = MOBILE_KARA_MAIL_ADDRESS_USER . MOBILE_KARA_MAIL_ADDRESS_DELIMITER . $command . '_' . $token . '@' . MOBILE_KARA_MAIL_ADDRESS_DOMAIN;
19
20$pipe = popen($receive_kara_mail, 'w');
21fwrite($pipe, "From $from " . date('D M j H:i:s Y') . "\n");
22fwrite($pipe, "From: $from\n");
23fwrite($pipe, "To: $to\n");
24fwrite($pipe, "\n");
25pclose($pipe);
26?>
Note: See TracBrowser for help on using the repository browser.