منشئ يمكن أن تضاف إلى المرفق.
__construct ( string $filename , [ string $fileType = null ], [ string $data = null ]) RocksEmailAttachmentField __construct (سلسلة ملف $ ، [سلسلة $ نوع الملف = فارغة] ، [$ سلسلة بيانات فارغة =])
- $filename : the filename of the attachment سلسلة $ اسم الملف : اسم الملف المرفق
- $fileType : the file type of the attachment سلسلة $ نوع الملف : نوع الملف المرفق
- $data : of the attachment this is not needed as it can be retrieved from the filename. $ سلسلة البيانات : من المرفق ليست هناك حاجة هذا ما يمكن استرجاعه من اسم الملف.
CreateHeader ( CreateHeader باطلة ( ) semi_rand $)