Problems? Is your data what you think it is? | |
PerlMonks |
Re^4: Using Net::SMTP to send email attachmentsby astrobal (Acolyte) |
on May 01, 2017 at 05:46 UTC ( [id://1189234]=note: print w/replies, xml ) | Need Help?? |
Hi there. Believe me, I like an easy life. I would not be trying to hand-craft this email script if there was a neater, simpler way. It has been written that there are 927 ways to send emails using Perl. MIME::Lite is a very nice example and I have used it (and still use it) very successfully. I use MIME::Lite to send the content of cgi forms to myself, at an email address which is local to the web server handling the form. The problem with 926 of these methods is that they were written 20 years ago, when spam was not the problem it is now and, email servers were happy to accept emails generated by non-local web servers. That is not the case today. What Net::SMTP does is to transfer the email to the local email server, from which it is then sent. That way the email is not then blocked by AOL and other email servers as not coming from an email server and so probably spam. The other problem is that only MIME::Lite of the MIME variants is available on the suite of Perl modules available at my ISP. They like an easy life too, so they will not allow me to install modules of uncertain provenance - even if they do come from CPAN - that may be a potential threat to the security of their systems. I could a few years ago, but - like with emails - the world has moved on. So, I am stuck with what I have. Thanks anyway for the suggestions...
In Section
Seekers of Perl Wisdom
|
|