Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CGI Mailer Script

Status
Not open for further replies.

Bravogolf

Programmer
Nov 29, 2002
204
GB
Hi guys,
Im doing a website for an Estate Agency, and in it, there is a link to send some information (Name, House, Mortgage etc) and all that information is then sent in an email to the estate agency.
I had suspected that it could simply be incorporated into a Mail function, but seemingly i need to create some CGI script for it (the server is Unix).
I know this script can be downloaded (im not very familiar with CGI), does anyone know of where I can download script that I can adjust to suit my own variables?
Or download any script that may help?

Any help would be very much appreciated.
Thank You
 
open (MAIL, "| /usr/sbin/sendmail -t >& /dev/null");

print MAIL qq~To: &quot;$persons_name&quot; <$email_addy>\n~;

print MAIL qq~Bcc: ~;
print MAIL qq~$Email_address~;
print MAIL qq~\nFrom: &quot;$return_name&quot; <$return_addr>\n~;
print MAIL qq~Subject: $subject\n~;

#print MAIL qq~Content-Type: text/html\n\n~;#<-use this
#if sending a
#HTML page
print MAIL qq~Content-Type: text/plain\n\n~;

print MAIL qq~$body_text\n~;


print MAIL qq~.~;


close(MAIL);
 
That code looks familiar ;-) faq219-364

But I wouldn't suggest that route for someone &quot;not very familiar with CGI&quot;. Sincerely,

Tom Anderson
Order amid Chaos, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top