質問編集履歴

2

補足情報追記

2020/09/29 23:41

投稿

entaro12345
entaro12345

スコア75

test CHANGED
File without changes
test CHANGED
@@ -102,6 +102,6 @@
102
102
 
103
103
 
104
104
 
105
- AWS
105
+ AWS[両サーバー]
106
106
 
107
107
  PHP7.4

1

コード追記

2020/09/29 23:41

投稿

entaro12345
entaro12345

スコア75

test CHANGED
File without changes
test CHANGED
@@ -50,6 +50,46 @@
50
50
 
51
51
 
52
52
 
53
+ ```PHP
54
+
55
+ 別サーバーの実行ファイル
56
+
57
+
58
+
59
+ <?php
60
+
61
+   mb_language("Japanese");
62
+
63
+   mb_internal_encoding("UTF-8");
64
+
65
+
66
+
67
+   $sub = "テスト";
68
+
69
+   $msg = "メールテスト";
70
+
71
+ $head = "From: info@XXXXX.jp"."\r\n";
72
+
73
+
74
+
75
+   $sub = mb_convert_encoding($sub, 'UTF-8', 'auto');
76
+
77
+   $msg = mb_convert_encoding($msg, 'UTF-8', 'auto');
78
+
79
+   // メール送信
80
+
81
+ $bRes = mb_send_mail("xxxxx@xxx.co.jp", $sub, $msg, $head);
82
+
83
+
84
+
85
+ return $bRes;
86
+
87
+ ?>
88
+
89
+ ```
90
+
91
+
92
+
53
93
  ### 試したこと
54
94
 
55
95