Mail with Perl/CGI Please use speaker notes for additional information!

Slides:



Advertisements
Similar presentations
AO- 2 (part 2 of 2) Pass + Send. Receive. Reply. Forward. With more than 1 attachment.
Advertisements

 Follow Up s. What Should Be in the ? Subject: Thanks for your Time (Name of Event) Thank them for their time Mentioning something memorable.
Limerick Checker Project Group Members: Jestin Ledlum Bryon Baumstarck Yining Wang.
Perl Process Management Software Tools. Slide 2 system Perl programs can execute shell commands (Bourne shell) using the system function. system("date");
Perl Process Management Learning Objectives: 1. To learn the different Perl’s commands for invoking system process 2. To learn how to perform process management.
Computer Networks Fall, 2007 Prof Peterson. CIS 235: Networks Fall, 2007 Western State College Homework #5 We will be talking about other protocols. Everyone.
PZ15A Programming Language design and Implementation -4th Edition Copyright©Prentice Hall, PZ15A - The Internet Programming Language Design and.
Defined/Undef my $i; if( defined $i ) #false $i=0; if( defined $i ) #true my %hash; #or %hash=(); defined %hash; #false, hash is empty $hash{“1”}=“one”;
Electronic Mail and SMTP
Esimerkki: Sähköposti. Lappeenranta University of Technology / JP, PH, AH Electronic Mail Three major components: user agents mail servers simple mail.
DBM Databases Please use speaker notes for additional information!
Networking and LinkedIn Tutorial for preparing to join the Dickinson Career Community group on LinkedIn Dickinson Career Center.
Perl/cgi and an Access Database Please use speaker notes for additional information!
Succeeding at a Teacher Recruiting Fair. Teacher Job Fairs Teacher fairs function differently across states Read job fair instructions. Some fairs charge.
(c) Manzur Ashraf, Short course, KFUPM PHP & MySQL 1 Basic PHP Class 2.
SMTP, POP3, IMAP.
Application Layer Protocols Simple Mail Transfer Protocol.
ECONOMICS GRADUATE STUDENTS ASSOCIATION (ECONGSA) Sean Isakower Tess Forsell Irena Tsvetkova.
© Concorde Career Colleges, Inc.1 Before & After the Interview Career Services.
CGI and Perl - Basics Please use speaker notes for additional information!
Perl Web Page – Just Enough Pepper. Web site Set up the top of your script to indicate perl and plain text #!/usr/bin/perl print "Content-type:text/plain\n\n";
CSU - DCE Advanced Perl CGI Operation - Fort Collins, CO Copyright © XTR Systems, LLC Introduction to the Common Gateway Interface (CGI) on the.
Building PERL Scripts on a Windows system* *and running those scripts on an Apache server!
INE1020 Introduction to Internet Engineering Tutorial 9 Lab 6 and Assignment 2.
File Transfer Protocol (FTP)
Data files using cgi/perl Please use speaker notes for additional information!
This is a presentation, It will show all I have leaned about .
1 Basic Perl CGI Programming. 2 Issues How and when your program is invoked. Generating Response –HTTP Headers –HTML (or whatever document type you want)
1 CGI with perl. 2 References Perl tutorials and references:
Perl CGI What is "CGI"? Common Gateway Interface A means of running an executable program via the Web. Perl have a *very* nice interface to create CGI.
CGI Scripting and Vulnerabilities COEN 351: E-commerce Security.
CSU - DEO Introduction to CGI - Fort Collins, CO Copyright © XTR Systems, LLC Introduction to the Common Gateway Interface (CGI) Instructor: Joseph DiVerdi,
Functions Please use speaker notes for additional information!
Introduction to CGI/Perl Please use speaker notes for additional information!
Dear All, Due the problem in sending mails on other We have changed the SMTP Port No. New SMTP Port no. is To do the change.
Sending data, forms and variables Please use speaker notes for additional information!
Perl Modules Darby Tien-Hao Chang Department of Electrical Engineering, National Cheng Kung University.
Intermediate CGI & CGI.pm Webmaster II - Fort Collins, CO Copyright © XTR Systems, LLC CGI Programming & The CGI.pm Perl Module Instructor: Joseph DiVerdi,
IF statements - selection Please use speaker notes for additional information!
 2001 Prentice Hall, Inc. All rights reserved. Chapter 17 - Web Automation and Networking Outline 17.1Introduction 17.2Introduction to LPW 17.3 LPW Commands.
Solving Multiplication and Division Equations By
Slides based on Carey Williamson’s: FTP & SMTP1 File Transfer Protocol (FTP) r FTP client contacts FTP server at port 21, specifying TCP as transport protocol.
pictures_slideshow/article.htm.
Take a Second Look Before You Send a Message. Do Not Default to "Reply All”
Getting a Job via Direct/ . Direct Mail 2/3rds of all job hunters use direct mail Can be the most effective way to reach all the employees in your.
WELCOME BACK SENIORS!! AUGUST 27,
Spring 2006 CPE : Application Layer_ 1 Special Topics in Computer Engineering Application layer: Some of these Slides are Based on Slides.
Sending data with CGI/Perl Please use speaker notes for additional information!
1 The Internet Programming Language Design and Implementation (4th Edition) by T. Pratt and M. Zelkowitz Prentice Hall, 2001 Section
CS 330 Class 10 Programming plan for today: More files Saving data from a form.
Hello Educational presentation.
CSE 102 Introduction to Web Design and Programming
Post Office Basic Content (Low Graders) Vocabulary
CS120 The Information Era TOPICS: CGI-Scripts 4/18/05
CGI I: Basics Web Programming.
Please use the top of the slide. The area that will be printed is 4
Messages The Bare Minimum….
Using local variable without initialization is an error.
معلم الصف الثالث الابتدائي
Unit 9 Lessons 29 – 30.
HELLO THERE. THIS IS A TEST SLIDE SLIDE NUMBER 1.
Welcome to the Automatic Salary Review Please answer the following question. Your salary adjustment will depend on your answer!!! Next.
ФОНД “СОЦИАЛНО ПОДПОМАГАНЕ”
Welcome to the Automatic Salary Review Please answer the following question. Your salary adjustment will depend on your answer!!! Next.
Perl Process Management
Welcome to the Automatic Salary Review Please answer the following question. Your salary adjustment will depend on your answer!!! Next.
Welcome to the Automatic Salary Review Please answer the following question. Your salary adjustment will depend on your answer!!! Next.
CGI I: Basics Web Programming.
Hello Hi Hello Hi Hello Hi Hello Hi Hello Hi Hello Hi.
Presentation transcript:

Mail with Perl/CGI Please use speaker notes for additional information!

Mail Alumni Information Name: Year Graduated: Job: This form takes in name, year of graduation, job and and passes the information to mailtest1.cgi which is stored in the same directory as this program (mailtest1.html).

#!/usr/bin/perl print "Content-type: text/html\n\n"; use CGI::Carp qw(fatalsToBrowser); use CGI qw(:standard); use Net::SMTP; use strict; my($name, $yrgrad, $job, $ , $msg, $smtpserver); $smtpserver = "mail.pgrocer.biz"; $name = param('name'); $yrgrad = param('yrgrad'); $job = param('job'); $ = param(' '); $msg = "Thank you for the information. We appreciate your continued interest in BCC."; print " \n"; print " Alumni Response \n"; print " \n"; print " CIS Alumni - Bristol Community College \n"; print " $msg \n"; print " \n";

# send my $smtpobj = new Net::SMTP( "$smtpserver) or die( "Cannot send $!" ); $smtpobj->mail( ); $smtpobj->to( "$ " ); $smtpobj->data(); $smtpobj->datasend( "From: BCC CIS Dept.\n" ); $smtpobj->datasend( "To: $ \n" ); $smtpobj->datasend( "Subject: BCC CIS Alumni\n" ); $smtpobj->datasend( "$msg\n" ); $smtpobj->dataend(); $smtpobj->quit(); Alternate: The HELLO should be invoked automatically and should not be needed with the Net:SMTP object. my $smtpobj = new Net::SMTP( "$smtpserver", HELLO => "$smtpserver" ) or die( "Cannot send $!" ); Set up an instance of the SMTP package.