mail with attachment

Permalink
hello, I'm trying to send a mail with attachment, what is the command to add the file.
help me please.

 
jordanlev replied on at Permalink Reply
jordanlev
Do you mean you're trying to send an email from your server? If so, you're going to need to use another library (or write your own code).

I recommend SwiftMailer:
http://swiftmailer.org/
http://swiftmailer.org/docs/attaching-files...

If you want to write the code yourself (which I don't recommend, unless you are interested in learning the gory details of how MIME attachments and multipart boundaries work), see this:
http://www.webcheatsheet.com/php/send_email_text_html_attachment.ph...