i'm familiar with phpmailer and it's addattachment method but I don't know how to add the name of the file dynamically?
$m->addAttachment($uploadfile, 'I want the name of the file here');
rest of the code as same as link
I want that when the user chooses his file the name of the file appears dynamically in the method.