Jump to content

email picture


orange08

Recommended Posts

i'm using php code to send email with picture attachment. it works fine, but got a problem here.

for a picture that user upload to my server, i'll try to rename the file name, to avoid the duplicate of the file and causing to the file replacing happen. but, the problem is...

 

my testing:

 

let's say, i have a picture file(flower image), when upload to the server, i'll rename it to 1.jpg then my php code will email it. it works fine till now. then, i go to delete my 1.jpg in my server's folder, prepare for the second testing. this time, i upload another picture file(animal image). when i upload it, my code will rename it to 1.jpg too. when i go to check my server folder that store the uploaded picture, 1.jpg is the animal image. but, when the email sent out, still the flower image in the first testing is emailed out. i just can't understand why this happen, and what's my mistake here.

Link to comment
https://forums.phpfreaks.com/topic/151480-email-picture/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.