![]() |
Sergey Kornilov admin 9/29/2010 |
PHP mail() function doesn't provide a convenient way to attach files. It will require a little work. |
D
|
dovercomputers author 9/29/2010 |
PHP mail() function doesn't provide a convenient way to attach files. It will require a little work. Here is an example of how this can be done: http://www.texelate.co.uk/blog/send-email-attachment-with-php/
|
D
|
dovercomputers author 9/30/2010 |
I thought it was something to do with the headers, so I replace the phprunner mail with a standard php mail and it worked fine. $arr = mail($email, $email, $body, $headers); Thanks for the reply. I have got so far as the email is sent and the pdf is encoded but the code is displayed within the email body. One thing I am not sure of is the email headers. In the example there are no headers so I have made them up like 'headers' => $headers. Is this correct? |