
Melissa
Deleted
Apr 5, 2000, 10:13 PM
Post #1 of 2
(1541 views)
|
Using Mail, From
|
Can't Post
|
|
I'm trying to modify a CGI/perl script for one of our webservers. The simple script.cgi takes a comment from a form, writes the information to a file and then sends a letter to the originator to conform that the info was received. The end result is an email with the From: looking like an email address, which it's not. (Any spaces in the From: are changed to periods) There isn't any email on the system except for the sendmail that goes out and I would rather not set any up. Is there anyway that I can still use the From field, but keep it from qualifying the name? This is what I have in that subroutine: foreach (@mail_user) { open(MAIL, "| mail $_"); print MAIL "Subject: Comments/Suggestions\n"; print MAIL "From: Our Web Server\n"; $fields{'comment_line'} =~ s/%0D%0A/\n/g; print MAIL $fields{'comment_line'}."\n\n"; print MAIL "Name: $fields{'name'}\n"; print MAIL "E-mail: $fields{'email'}\n"; print MAIL "Phone: $fields{'phone'}\n"; close (MAIL); The end result of this email would have the From field like: Our.Web.Server@ourdomain.com TIA!!! Melissa
|