NOVELL TECHNICAL INFORMATION DOCUMENT TITLE: Send mail using perl scripts TID #: 2949842 README FOR: sdmail1b.exe SUPERSEDES: sdmail1a.exe NOVELL PRODUCTS and VERSIONS: Netscape Enterprise Server for NetWare ABSTRACT: This file is intended to assist web developers by providing the perl components to send smtp mail via perl script. There was a text modification to the sendmail.html file. Search: Novonyx Enterprise sendmail send mail perl smtp ----------------------------------------------------------------- DISCLAIMER THE ORIGIN OF THIS INFORMATION MAY BE INTERNAL OR EXTERNAL TO NOVELL. NOVELL MAKES ALL REASONABLE EFFORTS TO VERIFY THIS INFORMATION. HOWEVER, THE INFORMATION PROVIDED IN THIS DOCUMENT IS FOR YOUR INFORMATION ONLY. NOVELL MAKES NO EXPLICIT OR IMPLIED CLAIMS TO THE VALIDITY OF THIS INFORMATION. ----------------------------------------------------------------- INSTALLATION INSTRUCTIONS: Some files may be replaced or overwritten, backing up files is recommended. Do the following with the extracted contents of this kit: Copy the contents of the perl\lib subdirectory to sys:perl\lib Copy the contents of the perl\scripts subdirectory to sys:perl\scripts Copy the contents of the perlroot directory to sys:novonyx\suitespot\docs\perlroot\ directory. Copy the contents of the perldocs directory to sys:novonyx\suitespot\docs\perldocs\ directory. Modify your sys:etc\hosts file to include the mail handler at you location, ie: nnn.nnn.nnn.nnn mh.company.com Modify the sendmail.html, replacing your_email@your_company.com with the email address that you would like the feedback to go to. Modify the sendmail.pl line, replace 'mh.novell.com' with your mail handlers DNS name. Modify the sendmail_static.pl as desired, the only lines that you need to alter are as follows: my($mailTo) = 'my_email@my_company.com'; my($mailServer) = 'mh.my_company.com'; my($mailFrom) = 'John'; my($realName) = "John S. Doe"; my($subject) = 'This subject line'; my($body1) = "This is the first section of the message body.\n"; my($body2) = "This is the second section of the message body.\n"; These instructions are specific to using the html front end and scripts supplied with this kit: sendmail.pl, presendmail.pl and sendmail.html Read Me for the "Form data to sendmail" scripts: 3 files are needed: 1. Your html form (demo provided as sendmail.html) with at least the following fields: recipient (could be hidden) - the person who is to receive the email with the form data (usually the webmaster) subject (hidden) - the subject line that will appear on the email sendername - the sender's (the person filling out the form) literal name senderemail - the sender's (the person filling out the form) email address link1 - the URL for a link at the bottom of the return HTML page (could be relative) ie link1="/index.html" or link1="http://www.MySite.com/formpage.html" link2 - the text for the url in link1 ie link2="Back to the Home Page" The form tag for this form will look like this: