I have a problem with creating an RFC mail format with attachment. Please help me!
Thanks
I have a problem with creating an RFC mail format with attachment. Please help
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Attachments are made in multipart email format. You better use some lib to do it. But if you want to manage it yourself you need to create a document separated by multipart bounaries, that contains files in base64 encoding:
First, email headers:
Than body:
There are some example function in php.net. Look here in comments.