Announcement

Collapse
No announcement yet.

What is correct perl mail file to edit?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    What is correct perl mail file to edit?

    I need to edit my contact form because my Server security will not allow it at the moment.

    Please tell me where I will find the appropriate script to edit.

    I need to insert:

    INFO FROM MY SERVER PEOPLE: If you want to use form to mail data, we recommend that you use the above method (form to mail script). . However, if you already have another method, we need you to change some of the PHP or Perl code in order for the script to function.

    If you are currently using a third party or custom Form-to-Mail script, you need to add a paramater containing '-f send_from_this@address.com' with the same address as in your 'From:' header (this must be a valid Freeola-hosted address). An example is provided below:

    mail('send_to_this@address.com', 'subject', 'body', 'From: send_from_this@address.com', '-f send_from_this@address.com');

    If you use Perl scripting, please make sure the following is added to the end of '/usr/sbin/sendmail' command.

    -f send_from_this@address.com

    Some perl scripts may not compile unless the @ symbol in the e-mail address is escaped. An example is provided below:

    -f send_from_this\@address.com

    update: I have just learned that this is the correct script I need:

    $mailprog = '/usr/sbin/sendmail -t -f sales@mysite.co.uk';
    $youmail = "sales\@mysite.co.uk";

    open (MAIL, "|$mailprog $youmail") || die "Can't open $mailprog!\n";
    print MAIL ("Reply-To: $replyto\n");
    print MAIL ("To: $youmail\n");
    print MAIL ("From: sales\@mysite.co.uk\n");
    print MAIL ("Subject: $subject\n\n");

    But where do I put it?

    #2
    A search of the forum for Freeola shows other people have had this problem. You might try these:
    http://community.actinic.com/showthr...hlight=freeola
    http://community.actinic.com/showthr...hlight=freeola

    Comment


      #3
      Hi

      Thanks Duncan

      I did spend time trying to find info on the forum but obviously missed this. I have just tried the form provided by JELLIS2000 but it didn't want to play.

      I noticed then that this post was dated 2005. The changes just made by Freeola came in to play 19th March 2007.

      Thanks for your direction.

      Comment


        #4
        Contact Form Sorted

        My contact form now works! hoorar!

        I thought I'd finalise this post incase anyone else has the problem. To solve my problem I used the script supplied by jellis2000
        http://community.actinic.com/showthr...hlight=freeola

        However, it did require a little editing before it worked for me.

        Comment

        Working...
        X