This component may be exactly what I've been looking for! I'm hoping I can do the following with minor setup or code tweaking:
1. Can the 'from' name and address be set to return the user name and email from jos_users?
2. Can an attachment be uploaded to a folder on the server, but not attached to the email?
#1- yes, but you will need to hack the code or even disable emails and write your own email code at the "on submit" area.
#2- yes, but you need to write teh code which will do this, look at the snippet which I used before to do this, use this at your own risk and you have to fix any issues you find with it:
/*$uploaddir = $mosConfig_absolute_path . 'components/com_attachement/upload';
if(is_uploaded_file($_FILES['file']['tmp_name']))
{
move_uploaded_file($_FILES['file']['tmp_name'],$uploaddir.'/'.$_FILES['file']['name']);
}
if (move_uploaded_file($_FILES['file']['tmp_name'],$uploaddir.'/'.$_FILES['file']['name'])) {
print "Your file has been uploaded successfully! Yay!";
///////////////////////////// email //////////////////////////
$attachment = $uploaddir.'/'.$_FILES['file']['name'] ;*/
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
excellent component, and excellent support. you're always right on top of responses.
i came to this page based on the same answer you gave here and to another user regarding file uploading.
i'm wanting to allow form users on a particular site to upload their resumes, and subsequently have that as an attachment to the email sent as a result of the form's submission.
i notice similar looking code in the auto-generated tab, but as i'm a designer and not a coder, i'm unclear as to how to marry the code you gave here in snippet form to the autogenerated code.
you mentioned to the other aforementioned user that this attachment/upload-file issue is something you're working on. do you have a time-table you can share with us?
again, thanks for your excellent component. you've done a nice job here.
This would be a useful feature for the next version. I wasn't able to get the above code to work, so I'll probably have to use another form processor. Still, I'm really impressed with this one. I love the simplicity and flexibility. Keep me on the mailing list for the next version!