Send attachment to email without mail function and phpmailer

Asked

Viewed 104 times

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.

  • 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

  • But you even send the email?

  • Tried to put $_FILES['file']['name']; instead of tmp_name?

  • It sends the email but does not send the attachment, I will try to put this aprte André

  • 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

  • he is sending, but the attachment is not going

  • Have you tried looking for another example to see if it works? The file has been uploaded?

Show 3 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.