Technology related solutions, tips, tricks, and other interesting topics
If you notice Sendmail hanging up for many minutes while starting up at boot or while being used such as sending an email from a PHP script, it is probably a DNS lookup problem. Ensure your /etc/hosts file has the appropriate entries for your server that sendmail is running on: 127.0.0.1 localhost localhost.localdomain 192.168.1.80 www.foo.com [...]
In: General IT Info
6 Mar 2008Here is a snippet of PERL code which you can use to send emails from your PERL scripts: open (MAIL, “|/usr/sbin/sendmail -t “); print MAIL “From: someFromAddress\@someFromDomain\n”; print MAIL “To: someToAddress\@someToDomain\n”; print MAIL “Content-Type: text/plain\n”; print MAIL “Subject: Very simple email test\n\n”; print MAIL “Body of the message”; close (MAIL); Replace “someFromAddress\@someFromDomain” with an email [...]
This blog is about technology related topics. It will primarily contain problems and solutions to IT problems that I encounter on a day-to-day basis. In addition interesting things I come across either on or off the internet will be posted here as well. I will also include step-by-step tutorials to common tasks people may need to do with their computers.