Alma Posted July 26, 2003 Posted July 26, 2003 I can't get perl to send out an email. Below is the code I was using. All messages print fine. No errors reported. Just don't get any email. Any ideas??? >#!/usr/bin/perl # Define Variables $mailprog = '/usr/sbin/sendmail'; print "Content-type: text/html\n\n"; print "<html><body>this is a 6 test</body></HTML>\n"; open (MAIL, "|$mailprog whatever@mrmail.com") || die "Can't open $mailprog!\n"; print MAIL "From: me@mail.com \n"; print MAIL "To: you@mail.com\n"; print MAIL "Subject: test 29\n\n"; print MAIL "THIS IS THE TEST\n"; close (MAIL); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.