you may send out emails with attachments by including the filename and the contents in the attachment within the send out() process: I don't have any dilemma with you recommending phpmailer, nor would I criticise you for suggesting a smart relay which assistance SSMTP / SMTP/TLS / SMTP auth / pop just before SMTP.... but it surely's absurd to crit