email test
This commit is contained in:
@@ -229,23 +229,13 @@ class Email extends Base
|
||||
|
||||
|
||||
public function myPush(){
|
||||
// phpinfo();die;
|
||||
// $data = $this->request->post();
|
||||
// $rule = new Validate([
|
||||
// "email"=>"require",
|
||||
// "title"=>"require",
|
||||
// "content"=>"require"
|
||||
// ]);
|
||||
// if(!$rule->check($data)){
|
||||
// return jsonError($rule->getError());
|
||||
// }
|
||||
|
||||
$data['email'] = "751475802@qq.com";
|
||||
$data['title'] = "test title";
|
||||
$data['content'] = "content";
|
||||
|
||||
|
||||
echo sendMyEmail($data['email'],$data['title'],$data['content']);
|
||||
$journal_info = $this->journal_obj->where("journal_id",23)->find();
|
||||
$edata['email'] = "751475802@qq.com";
|
||||
$edata['title'] = "Notice: Merger of Natural Therapy Advances and Food and Health into Integrative Medicine Discovery";
|
||||
$edata['content'] = "test content";
|
||||
$edata['tmail'] = $journal_info['email'];
|
||||
$edata['tpassword'] = $journal_info['epassword'];
|
||||
Queue::push('app\api\job\mail@fire', $edata, "tmail");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user