+ 2
How to create script to send files?
Just sending files from all types pdf jpg ...audio video files from an user to another. Which langages are needed?
6 Respostas
+ 3
Maybe we can do it with swiftmailer but only with symphony...
+ 2
You need a ftp Server and an sql Servet with php, you can use xampp
+ 2
I don't know swiftmailer very well but i found this maybe it can help you by sending messages
https://swiftmailer.symfony.com/docs/messages.html
+ 2
I will try this, thank you very much and merry xmas
+ 2
Thank you and happy holydays
+ 1
Or you can try this as an attachment to an email
$message = Swift_Message::newInstance()
->setFrom('from@example.com')
->setTo('to@example.com')
->setSubject('Subject')
->setBody('Body')
->attach(Swift_Attachment::fromPath('/path/to/a/file.zip'))
;
$this->getMailer()->send($message);