0
I wonder if it is possible to send an attachment in php without using the mail function and without using phpmailer, because for some reasons I do not have the password or the login of smtp, I could not pick up, and the mail function is not working(I asked the question right about the error but had no answers), so I wonder if there is any way I can send attachment to the email by php.
Thank you all
Do you want to paste the mail function you made? Tested localhost or on the server? If I’m not mistaken the mail function does not work localhost.
– Sr. André Baill
My question that is detailed with the error is this:http://answall.com/questions/78796/erro-ao-usar-files-com-fopen-filename-cannot-be-empty didn’t want to repeat it to not get boring here, but it’s right on the server, and it doesn’t work
– Gabriel Silva
But you even send the email?
– Sr. André Baill
Tried to put $_FILES['file']['name']; instead of tmp_name?
– Sr. André Baill
It sends the email but does not send the attachment, I will try to put this aprte André
– Gabriel Silva
Yeah, or else he can upload and make a list of files sent to the server... in the body of html, instead of attachment, since he could not adapt phpmailer
– Sr. André Baill
he is sending, but the attachment is not going
– Gabriel Silva
Have you tried looking for another example to see if it works? The file has been uploaded?
– Sr. André Baill