...
$attachment_name = $_FILES['attachment']['name'];
$attachment = $_FILES['attachment']['tmp_name'];
$mail->addAddress($to);
$mail->addCC($cc);
$mail->Subject = $subject;
foreach($attachment_name as $key){
$file_name = $attachment_name[$key];
$tmp_file = $attachment[$key];
$mail->addAttachment($tmp_file, $nama_file);
}
$mail->send();
What do you mean with "without saving it in storage"? Your example also saves the file in storage temporarily. it just doesn't move it form the temp directory before sending the mail.
You could simply keep using phpmailer even while using F3.
--
-- You've received this message because you are subscribed to the Google Groups group. To post to this group, send an email to f3-fra...@googlegroups.com. To unsubscribe from this group, send an email to f3-framework...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/f3-framework?hl=en
---
You received this message because you are subscribed to the Google Groups "Fat-Free Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to f3-framework...@googlegroups.com.
To post to this group, send email to f3-fra...@googlegroups.com.
Visit this group at https://groups.google.com/group/f3-framework.
To view this discussion on the web visit https://groups.google.com/d/msgid/f3-framework/8f62a6f5-3d5a-4e3d-86a0-254cdbb441f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
$file = $this->f3->get('POST.attachments');
$web = \Web::instance();
$files = $web->receive(function($file,$formFieldName){
var_dump($file);
});