There is a line in the script:
my $subject = $Config{subject} ¦¦ 'WWW Form Submission';
and "WWW Form Submission" is what appears in the SUBJECT line of the email I receive. I would like it to say "WWW Form Submission from sender@theirdomain.com".
something like how this line from the script:
Below is the result of your feedback form. It was submitted by
$Config{realname} (${\( $Config{email}¦¦'' )}) on $date
puts their email, date etc. into the BODY of the email.
Thanks in advance for any help!
Peter
my $subject = $Config{subject} ¦¦ 'WWW Form Submission';
says:
Please let the variable $subject equal the value of the variable $Config{subject}, or if the variable $Config{subject} is undefined or has no value let the variable $subject equal 'WWW Form Submission'.
To answer your question:
How to have words and a variable's value as the value of $subject...
try:
my $subject = 'WWW Form Submission ' . $Config{subject} ¦¦ 'WWW Form Submission (no email provided)';
or:
my $subject = 'Sign Up: ' . $Config{subject} ¦¦ 'Sign Up: (no email)';
etc..