+ 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?

25th Dec 2020, 2:00 PM
JurgenV
JurgenV - avatar
6 Respostas
+ 3
Maybe we can do it with swiftmailer but only with symphony...
25th Dec 2020, 5:44 PM
JurgenV
JurgenV - avatar
+ 2
You need a ftp Server and an sql Servet with php, you can use xampp
25th Dec 2020, 5:12 PM
Julian Bents
Julian Bents - avatar
+ 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
25th Dec 2020, 6:47 PM
Julian Bents
Julian Bents - avatar
+ 2
I will try this, thank you very much and merry xmas
25th Dec 2020, 7:12 PM
JurgenV
JurgenV - avatar
+ 2
Thank you and happy holydays
26th Dec 2020, 3:49 AM
Julian Bents
Julian Bents - avatar
+ 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);
25th Dec 2020, 6:48 PM
Julian Bents
Julian Bents - avatar