Jump to content

gmwade

Members
  • Posts

    4
  • Joined

  • Last visited

gmwade's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. I am using Sendmail via a webform that allows a user to submit info via an online webform and send it to my email address. I would like for the user to be able to attach a photo and send it along to my email as an attachment. What would the script code look like in the PERL form (the goes in the CGI-bin and on the webform (HTML). If Sendmail does not allow attachments, is there a way that the webform could allow upload to a folder on the server. I would appreciate any tips. My webform is working perfectly for Sendmail but I wanted to add the additional feature of uploading a photo and sending it along with the form content via email.
  2. Bruce: Thanks for your feedback. I have been swamped with work and am only getting to start on this now. This may sound a bit off but is the script file saved as "myscript.pl" or "myscript.cgi"? I am presuming it is "myscript.pl" since that is what is called in the html piece but wanted to be sure. I was able to find and download "cgi-lib.pl" and put it in the cgi-bin folder and will put the other script file there as well but was unclear as to the exact file name. Please clarify if you can. Then I will worry about tweeking the template to hopefully get things working. GW
  3. OK Thanks. I will check it out. At first glance, it looks like there are too many options for someone who has not worked with scripts. Yesterday, I found samples out on the web but they did not seem to apply to TCH's paths and syntax and I couldn't get it to work. It would be helpful to be able to cut and paste someone elses code who uses TCH (for processing a single web form to an email recipient) so the paths and syntax would work. I thought someone may have a template somewhere with instructions so I wouldn't spend days of research to get this working but I will explore hotscripts tomorrow and see if anything pops out. I was unable to find anything along these lines in the CPanel documentation.
  4. I am new to TCH and scripting and want to send a webform to a single email address. I found out that CGIemail is not supported but that I can use Sendmail. So, I have read the forums and tried some segments of code but I can't seem to get anything to work. I searched the documentation in TCH and don't see any basic instructions or templates as examples. Would someone please provide: 1. Basic instructions 2. Sample CGI form (e.g myform.cgi) Is it something like: #!/usr/bin/perl $sendmail = '/usr/sbin/sendmail -t'; $recip = 'myname\@mywebsite.com'; 3. Sample of HTML form action Is it something like: <form action="http://www.mywebsite.com/cgi-bin/myform.cgi" method="POST"> 4. Are there any special services that need activation? (I see how to make the permssions 755; not sure if the upload is in ASCII but it looks OK when viewing under CODE/EDIT) 5. Does the cgi form go in the CGI folder under Public_html? I presume that you can make a cgi form using wordpad and then change the file type. Any tips would be appreciated. Some basic instructions for how to use Sendmail on TCH would be most helpful for a newcomer...nothing fancy...just sending a single webform to an email address.
×
×
  • Create New...