swiftmailer and email form with attachment - beginner

后端 未结 3 430
我在风中等你
我在风中等你 2020-12-31 06:39

As always here is the place where I have learned a lot. And I have now a new things to learn:

I have a html form:

F         


        
3条回答
  •  甜味超标
    2020-12-31 06:44

    Another way to do this, using only a single variable for path and filename is:

    $message->attach(Swift_Attachment::fromPath('full-path-with-attachment-name'));
    

提交回复
热议问题