dpark wrote at Mon, 29 Jul 2002 02:56:57 +0200:

> This is my first script, actually part 2 of the first.   I triumphantly :) created a 
>script to
> write data from a simple form to a flat-tile database.  Now I would like to be able 
>to send
> everyone on the list an email when my client's site is updated.  Below is what I've 
>got.  Assuming
> it will work, what is the best way to call the script?  I've tried
> clienturl/cgi-bin/sendupdate.cgi but only get a 404 error.  I've read cgi101 by 
>Jaqueline
> Hamilton, Perl and CGI by Elizabeth Castro and Perl 5 for Web 
>Professionals--Learning Perl is next
> I suppose.  Anyhow, that's where I'm at.
> 
> Thank you for any comments.
> ...
> 
> open(MAIL,"|$mailprogram -t") or &dienice("Couldn't send mail.");
>      print MAIL "To: $email\n";
>      print MAIL "Subject: the site has been update\n\n"; 
                                                    ^^^^

You need only one "\n" here.
An empty line marks the end of the header and
starts the body text of the mail.

>      print MAIL "From: [EMAIL PROTECTED]\n";
>      print MAIL <<redskins;
>      Hello $fname,
> 
>      The site has just been updated!
> 
>      Best Regards,
> 
>      Takayuki
> 
> redskins
> 
>      close(MAIL);  #sends mail


Cheerio,
Janek


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to