Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
attr: {href: product_url} should remove the link for every product. Take a look at app/code/Magento/Checkout/view/frontend/web/js/view/cart-item-renderer.js and app/code/Magento/Checkout/view/frontend/layout/checkout_cart_sidebar_item_renderers.xml
Take a look at /app/code/Magento/Checkout/view/frontend/web/template/minicart/item/default.html or vendor/magento/module-checkout/view/frontend/web/template/minicart/item/default.html if installed using composer
To increase the likelihood of your emails getting delivered to customers' inboxes, you could consider using an SMTP extension. eg github.com/magepal/magento2-gmail-smtp-app
"localhost" should be the server itself. Is there an FTP server running on that server? Can you anonymously FTP into that server? From your command line try ftp localhost (you may need to use the webserver user since the PHP script is running as that user)... You may need to use ftp_login