Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Why can't I get sendmail to run

Posted on 1998-10-19
1
Medium Priority
?
164 Views
Last Modified: 2013-12-25
I'm trying to set up a web site (trains.virtualave.net), but for some reason I can't get the sendmail program to work.  It's been driving me nuts for the past while so maybe one of you can help me.  All I need is the commandline.  Here's a section from www.virtualave.net 's FAQ on CGI:

Where is the Sendmail program on your server?
  Please use /bin/mail. Please be aware of that SPAM is not allowed on our server. If you need to
  send many mails, please use "sleep" to separate your mails by at least 5 seconds.
0
Comment
Question by:Aikema
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
Strange earned 200 total points
ID: 1829187
These server dont allow you to user sendmail, however it
grants you permission for using /bin/mail (should be enougth
for simply sending mail)

You should use something like these in your cgi scripts:
#!/bin/sh
#...... some CGI body
/bin/mail -s "subject" address@his.provider < file_with_mail_body

or

some_programm_generating_mail_body|/bin/mail -s "subject" address

OR if you prefer perl
# .... CGI body
$subject="this is a subject";
$address="some@his.domain.com";
$mailprog="/bin/mail -s \"$subject\" $address";
open(MAIL,"|$mailprog");
print MAIL "This is a body of message";
close(MAIL);

And of course you should not forget about printing CGI output
headers like a
Content-type: text/html\n\n

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question