#!/usr/bin/perl
# This is a simple script to test sendmail.
# Replace "me" with a from address and "mydom.com" with the #sending domain.
# Replace "you" with a username to send to and "yourdom.com" #with the recipient's domain name.
# Upload this to the public_html folder as mailtest.pl and CHMOD it to 755
print "Content-type: text/plain\n\n";
unless(open (MAIL, "|/usr/sbin/sendmail -t")) {
print "error.\n";
warn "Error starting sendmail: $!";
}
else{
print MAIL "From: me\@mydom.com\n";
print MAIL "To: you\@yourdom.com\n";
print MAIL "Subject: test subject\n\n";
print MAIL "Perl Sendmail is working, please check your code.";
close(MAIL) || warn "Error closing mail: $!";
print "Mail sent.\n";
}
Subscribe to:
Post Comments (Atom)
10 comments:
I signed up to ipad media all seems ok but I'm having problems getting the ebooks on. My friend in new york has theirs working but I'm stuck on what I need to do. Anyone else used this service? Link is below,
Just keep making good content.
I'm still learning from you, while I'm improving myself. I definitely enjoy reading everything that is written on your website.Keep the aarticles coming. I enjoyed it!
Wow! Thank you! I continuously needed to write on my website something like that. Can I include a portion of your post to my blog?
Wow! Thank you! I continually needed to write on my website something like that. Can I implement a part of your post to my website?
Just to let you know your site looks really strange in Mozilla on my laptop with Ubuntu.
Awsome site! I am loving it!! Will come back again. I am taking your feeds also
Awesome, but it would be better if in future you can share more about this topic. posts.
Excellent, but it would be better if in future you can share more about this subject. Keep rocking.
Hello. Great job. I did not imagine this. This is a great story. Thanks!
Post a Comment