And I need save Attachment with my custon name! Have any way to do this, for sample:
std::string my_dir = "/temp/mydir"; std::string my_new_file_name = "my_new_artifical_name.xml"; if (email->SaveAttachedFile(j, (my_dir + "/" + my_new_file_name).c_str()) != true)
You would call the email->SetAttachmentFilename method to set the Nth attachment's filename. For example:
Then call SaveAttachedFile as before. The 2nd argument to SaveAttachedFile is the target directory (without the filename).