Jump to content

Alma

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by Alma

  1. Alma

    Perl Email

    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);
×
×
  • Create New...