|
|
| |
1. Error: could not open part file pdf/weekly9_10_19_2011.pdf |
|
Reply |
|
|
 lien pham | 2012-04-11 19:03:48 |
i'm using test_attachment_message.php. It was emailing the pdf to my address before, but now it's giving me the error above. any help would be appreciated!
here's the code i am using:
$application_attachment=array(
"Data"=>"Weekly Usage Report.",
"FileName"=>"pdf/weekly9_10_19_2011.pdf",
"Content-Type"=>"automatic/name",
"Disposition"=>"attachment"
);
$email_message->AddFilePart($application_attachment); |
| |
2. Re: Error: could not open part file pdf/weekly9_10_19_2011.pdf |
|
Reply |
|
|
 Manuel Lemos | 2012-04-12 11:06:11 - In reply to message 1 from lien pham |
| If it is giving that error it is because the file does not really exist. Are you sure if the file is really that with that exact name? |
| |
3. Re: Error: could not open part file pdf/weekly9_10_19_2011.pdf |
|
Reply |
|
|
 Slawomir Kaniecki | 2012-06-15 06:47:25 - In reply to message 2 from Manuel Lemos |
Hi,
I have tis error sometimes, and in my case it's because i have to send some external html code containing some external images, e.g.
<img src="http://ssl.gstatic.com/gb/images/j_e6a6aca6.png">
I get this:
could not open part file http://ssl.gstatic.com/gb/images/j_e6a6aca6.png
I don't want to remove such images, i just want to send email.
How can I get rid of this ? |
| |
4. Re: Error: could not open part file pdf/weekly9_10_19_2011.pdf |
|
Reply |
|
|
 Manuel Lemos | 2012-06-15 08:04:56 - In reply to message 3 from Slawomir Kaniecki |
| If you are using images from a remote site, you do not need to add the image files to the message. Just remove the code that adds the image to the message. |
| |
5. Re: Error: could not open part file pdf/weekly9_10_19_2011.pdf |
|
Reply |
|
|
 lien pham | 2012-08-18 22:28:43 - In reply to message 2 from Manuel Lemos |
| yes the file does exist...i copied it and put it in my browser and it opens. |
| |
6. Re: Error: could not open part file pdf/weekly9_10_19_2011.pdf |
|
Reply |
|
|
 Manuel Lemos | 2012-08-18 23:49:47 - In reply to message 5 from lien pham |
| If it always fails reading the image, it is because you are not specifying the correct path. The image file may exist, but the path is not correct. |
|