If you have to code a script, which has to send mails from an system, where sendmail is installed, here is an very simple code-snipled, which you can use.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | #!/usr/bin/perl -w # Snippled to send Mails via sendmail # by www.thedigitalchaos.de # Recipient (replace sender@domain.tld whith the Recipients E-Mail-Adress) my $mailto = 'someone@domain.tld'; # Sender (replace sender@domain.tld whith the Senders E-Mail-Adress) my $from = 'sender@domain.tld'; # Subject my $subject = "The Subject"; # The Content |