I have page where user upload they file to my web server which get save without extension.
for e.g. example.doc will be saved as current time(1234567890) but without extension.
this works OK I dont have this problem.
What i’m having problem is that i like to send the document by email later on to a email address. i like to assign original name including the extension of the file.
All the data is save in my database. name and extension of the.
so for example i like to send this file “1234567890” as example.doc to a email address.
Use phpmailer AddStringAttachment
http://phpmailer.worxware.com/index.php?pg=tutorial#3.2