Additional email attachment does not work

This Pro extension works very well. Good to translate to Dutch and easy to change the font (Dose). I had to figure out how to get the headings in this font as well, but in the end that was a small adjustment in the H2 block within the php version.

But I want to send an extra attachment when sending the Pro reports. Unfortunately that does not work.
Can this attachment be on the computer or does it have to be on the server?
I use smtp for mail and also there I see that only the pro report.pdf is sent. No extra attachment to be found.

How do I solve this?

Hi Cees,

Thanks for reaching out.

Can you please post the community system report from your MainWP Dashboard for review? The report is located in your Dashboard under Status → Server, on the top right of the page.

Be sure to use the button like the one below; this button hides all your private information:


Pressing the button auto-copies the report to your clipboard then just paste it in a reply here.

### Server Info                    Required                                               Detected                                     Status   ###

MainWP Dashboard                   
MainWP Dashboard Version           4.1.4                                                  4.1.4                                        Pass        
MainWP Upload Directory            Writable                                               Writable                                     Pass        
MainWP Extensions                  
Advanced Uptime Monitor Extension  5.1.1                                                  API License Active                           Pass        
MainWP Client Reports Extension    4.0.7                                                  API License Active                           Pass        
MainWP Google Analytics Extension                                                API License Active                           Pass        
MainWP Page Speed Extension                                                API License Active                           Pass        
MainWP Pro Reports Extension       4.0.3                                                  API License Active                           Pass        
MainWP Sucuri Extension                                                  API License Active                           Pass        
MainWP Wordfence Extension         4.0.3                                                  API License Active                           Pass        
WPvivid Backup MainWP              0.9.12                                                                                                          
WordPress Version                  >=3.6                                                  5.6                                          Pass        
WordPress Memory Limit             >=64M                                                  256M                                         Pass        
MultiSite Disabled                 =true                                                  true                                         Pass        
FileSystem Method                  = direct                                               direct                                       Pass        
PHP Version                        >=5.6                                                  7.4.11                                       Pass        
PHP Safe Mode Disabled             =true                                                  true                                         Pass        
PHP Max Execution Time             >=30 seconds                                           30                                           Pass        
PHP Max Input Time                 >=30 seconds                                           60                                           Pass        
PHP Memory Limit                   >=128M                                                 512M                                         Pass        
PCRE Backtracking Limit            >=10000                                                1000000                                      Pass        
PHP Upload Max Filesize            >=2M                                                   32M                                          Pass        
PHP Post Max Size                  >=2M                                                   32M                                          Pass        
SSL Extension Enabled              =true                                                  true                                         Pass        
SSL Warnings                       = empty                                                                                             Pass        
cURL Extension Enabled             =true                                                  true                                         Pass        
cURL Timeout                       >=300 seconds                                          60                                           Warning     
cURL Version                       >=7.18.1                                               7.71.0                                       Pass        
cURL SSL Version                   >=OpenSSL/0.9.8l                                       OpenSSL/1.1.1d                               Pass        
PHP Allow URL fopen                YES                                                    
PHP Exif Support                   YES ( V7.4.)                                           
PHP IPTC Support                   YES                                                    
PHP XML Support                    YES                                                    
PHP Disabled Functions             dl, exec, passthru, pcntl_exec, popen, proc_get_status, proc_nice, proc_terminate, shell_exec, system,
PHP Loaded Extensions              Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bcmath, bz2, calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, json, libxml, litespeed, mbstring, memcached, mysqli, mysqlnd, openssl, pcntl, pcre, pdo_mysql, pdo_sqlite, posix, readline, redis, session, shmop, soap, sockets, sodium, sqlite3, standard, tokenizer, uploadprogress, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib
MySQL Version                      >=5.0                                                  10.4.17-MariaDB-log-cll-lve                  Pass        
MySQL Mode                         NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION             
MySQL Client Encoding              utf8                                                   
Server Info                        
Server Software                    Apache                                                 
Operating System                   Linux                                                  
Architecture                       64		 bit                                               
Server Protocol                    HTTP/2.0                                               
HTTPS                              ON                                                     
Server self connect                Response Test O.K.                                     
User Agent                         Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.104 Safari/537.36
Gateway Interface                                                                         
Memory Usage                       67.84 MB                                               
Request Time                       1611841914                                             
Accept Content                     text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Accept-Charset Content             N/A                                                    
MainWP Settings                    
Number Of Child Sites              12                                                     
Use WP-Cron                        Yes                                                    
Optimize for Shared Hosting or Big NetworksYes                                                    
Automatic Daily Update             Disabled                                               
Abandoned Plugins/Themes Tolerance 365                                                    
Maximum number of posts to return                                                         
Maximum number of pages to return                                                         
Primary Backup System              Default MainWP Backups                                 
Maximum simultaneous requests      4                                                      
Minimum delay between requests     200                                                    
Maximum simultaneous requests per ip1                                                      
Minimum delay between requests to the same ip1000                                                   
Maximum simultaneous sync requests                                                        
Minimum simultaneous install/update requests                                                       
Active Plugins                     
Admin Menu Editor                  1.9.8                                                  Active                                       
Advanced Editor Tools (previously TinyMCE Advanced)5.6.0                                                  Active                                       
Akismet Anti-Spam                  4.1.8                                                  Active                                       
FluentSMTP                         1.0.1                                                  Active                                       
iThemes Security                   7.9.0                                                  Active                                       
Limit Login Attempts Reloaded      2.19.1                                                 Active                                       
MainWP Child Reports               2.0.6                                                  Active                                       
MainWP Dashboard                   4.1.4                                                  Active                                       
Wordfence Login Security           1.0.6                                                  Active                                       
WP Reset PRO                       5.79                                                   Active                                       
WPS Hide Login                     1.6.1                                                  Active                                       
WPvivid Backup MainWP              0.9.12                                                 Active                                       
WPvivid Backup Plugin              0.9.49                                                 Active                                       

Hi Cees,

Thank you for getting back to me.

I reviewed the report and looks ok.

I just double-check on my side an additional attachments are being sent properly on my test setup.

Do you get this same problem with any file type? Can you duplicate the problem with some other SMTP plugin?

Problem is solved. Stupid mistake made. Custom Email template loaded in wrong directory.
Moved it to the upload directory and now it works fine.
Sorry for this unnecessary ticket, can be closed now.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.