0

This is the code i used:

Mail::send('acme.blog::mail.welcome', $data, function ($message) {
    //

    $message->attach($pathToFile);
});
  • attach method accepts the full path to the file as its first argument. What should be the full path to a file... This is fpr october cms – Bishank Badgami Dec 14 '16 at 04:52
  • Please read https://stackoverflow.com/help/how-to-ask and edit your question to include your comment. – Abdul Rauf Dec 14 '16 at 05:14
  • By the way, both relative and absolute/Full path can be used as $pathToFile. Please read http://stackoverflow.com/a/10288252/2073920 to know the difference between relative and absolute path – Abdul Rauf Dec 14 '16 at 05:19
  • Please add the value of `$pathToFile` and where you are setting the value – OsDev Dec 14 '16 at 05:49
  • $pathToFile= "storage/app/uploads/public"; .. should i define the path like this? Abdul? – Bishank Badgami Dec 14 '16 at 07:39

0 Answers0