Export adapter involved in nuclear export of spliced and unspliced mRNA. Binds mRNA which is thought to be transferred to the NXF1-NXT1 heterodimer for export (TAP/NFX1 pathway). Component of the TREX complex which is thought to couple mRNA transcription, processing and nuclear export, and specifically associates with spliced mRNA and not with unspliced pre-mRNA. TREX is recruited to spliced mRNAs by a transcription-independent mechanism, binds to mRNA upstream of the exon-junction complex (EJC) and is recruited in a splicing- and cap-dependent manner to a region near the 5' end of the mRNA where it functions in mRNA export to the cytoplasm. TREX recruitment occurs via an interaction between ALYREF/THOC4 and the cap-binding protein NCBP1. The TREX complex is essential for the export of Kaposi's sarcoma-associated herpesvirus (KSHV) intronless mRNAs and infectious virus production; ALYREF/THOC4 mediates the recruitment of the TREX complex to the intronless viral mRNA. Required for TREX complex assembly and for linking DDX39B to the cap-binding complex (CBC). In conjunction with THOC5 functions in NXF1-NXT1 mediated nuclear export of HSP70 mRNA; both proteins enhance the RNA binding activity of NXF1 and are required for NXF1 localization to the nuclear rim. Involved in the nuclear export of intronless mRNA; proposed to be recruited to intronless mRNA by ATP-bound DDX39B. Involved in transcription elongation and genome stability.