Any way I can have one of my variables (ucompany) in the Admin email subject? So instead of "New File Submission" it would read "New File Submission from Some Company Name"?
Since the email subject is done in the upload.cgi, I figure this may be do-able?
Thanks once again. (I don't mean to be a pest, but I really need these things or I wouldn't bother you with them)
XUpload - Variable in Subject of email
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
It's quick easy hack: in upload.cgi find line
and replace it with
where 'company_name' is input from your upload_form.html, you can use any other name.
Code: Select all
my $subject = $c->{email_subject} || "XUpload: New file(s) uploaded";
Code: Select all
my $subject = $c->{email_subject} || "New File Submission from ".$cg->param('company_name');
Once I commented out email_subject in the XUploadConfig.pm it worked great, thanks!
Now, if possible, I'd like the senders email in the admin confirmation from field, so I can reply to the confirmation email and it is addressed to the sender of the form.
This should be my last issue, and I truly applaud your support. It's a step (or 2) above most.
Now, if possible, I'd like the senders email in the admin confirmation from field, so I can reply to the confirmation email and it is addressed to the sender of the form.
This should be my last issue, and I truly applaud your support. It's a step (or 2) above most.
Last edited by azvisual on Mar 29, 2008 2:00 am, edited 1 time in total.
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
Thanks!
Replace line
with
But I should notice that emails with user's address sent from your server could be detected as Spam email, cause some ISPs verify domain names and IPs.
Replace line
Code: Select all
&SendMail( $c->{confirm_email}, $c->{confirm_email_from}, $subject, $tmpl->output() );
Code: Select all
&SendMail( $c->{confirm_email}, $cg->param('email_notification'), $subject, $tmpl->output() );