質問編集履歴
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -44,21 +44,11 @@
|
|
44
44
|
|
45
45
|
$email = new Email('default');
|
46
46
|
|
47
|
+
$email->attachments($data['file']);
|
48
|
+
|
47
49
|
$email->to($data['email']);
|
48
50
|
|
49
|
-
->send($emailbody)
|
51
|
+
->send($emailbody);
|
50
|
-
|
51
|
-
->attachments([
|
52
|
-
|
53
|
-
'添付ファイル' => [
|
54
|
-
|
55
|
-
'file' => $data['file'],
|
56
|
-
|
57
|
-
'mimetype' => $data['file']['type']
|
58
|
-
|
59
|
-
]
|
60
|
-
|
61
|
-
]);
|
62
52
|
|
63
53
|
}
|
64
54
|
|
@@ -86,7 +76,7 @@
|
|
86
76
|
|
87
77
|
$email->attachmentsでうまく添付ファイルの送信ができませんでした。
|
88
78
|
|
89
|
-
|
79
|
+
File not found: "0" というエラーが出ます。
|
90
80
|
|
91
81
|
Controller側でどのような処理が必要でしょうか?
|
92
82
|
|
1
詳細な情報の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,9 +46,19 @@
|
|
46
46
|
|
47
47
|
$email->to($data['email']);
|
48
48
|
|
49
|
-
->send($emailbody)
|
49
|
+
->send($emailbody)
|
50
50
|
|
51
|
+
->attachments([
|
51
52
|
|
53
|
+
'添付ファイル' => [
|
54
|
+
|
55
|
+
'file' => $data['file'],
|
56
|
+
|
57
|
+
'mimetype' => $data['file']['type']
|
58
|
+
|
59
|
+
]
|
60
|
+
|
61
|
+
]);
|
52
62
|
|
53
63
|
}
|
54
64
|
|
@@ -76,6 +86,8 @@
|
|
76
86
|
|
77
87
|
$email->attachmentsでうまく添付ファイルの送信ができませんでした。
|
78
88
|
|
89
|
+
Call to a member function attachments() on array というエラーが出ます。
|
90
|
+
|
79
91
|
Controller側でどのような処理が必要でしょうか?
|
80
92
|
|
81
93
|
ご教示いただけると幸いです。
|