Home

   Home

   Download


Help

   FAQ

   Installation

   Message Board

   Importing Data File
   Into GoldMine
   Into Act

   Readme Files
   V1.5,  V1.9,  V2.0

   Related Scripts


Other

   Testimonies

   Donate

   Advertising Info

   Inspirational E-mail's

   Custom Programming


Related Scripts

Novice Form Processor
  In Perl/CGI
  In PHP
BMF in PHP
  Form To File

































 




A R C H I V E D     M E S S A G E

  Subject: Changing who the email is From
  Posted: 03/17/2004 at 12:01:34 am
  By: ykchee1

I'm having a problem with the "From" value. If I send an email to ykchee@yahoo.com, the "From" says "sales@yahoo.com", instead of "sales@wheatgrassjuicer.com.au". I've done the changes suggested in sendmail.cgi in one of the postings - ie for $SENDTOTHIS. Is there anything else I can do? Thanks very much!



  Subject: Re: Changing who the email is From
  Posted: 03/17/2004 at 6:04:46 am
  By: Seth Knorr

Are you talking about the autoresponse email that goes out or the email that get the results of the form back.

Seth



  Subject: Re: Changing who the email is From
  Posted: 03/17/2004 at 6:22:54 am
  By: ykchee1

I'm talking about the email that get the results of the form back.

By the way, thanks very much for such an excellent piece of software!



  Subject: Re: Changing who the email is From
  Posted: 03/17/2004 at 7:54:28 am
  By: Seth Knorr

Ok, there is no setting for this. It is set to default as the email address entered on the form as <input name="email">

Remember the from email USHUALY has to be different from the to email, or NO EMAIL WILL BE SENT. This is all dependent on your server configuration. With that in mind.

If using SMTP,
You could change this by editing smtp.cgi.

Line 87
$smtp->mail($formdata{'email'});

Line 92
$smtp->datasend("From: $formdata{'email'}\n");

JUST REPLACE: $formdata{'email'}

WITH THE EMAIL YOU WANT FORM POST TO BE FROM. REMEBER, DON'T FORGET THE \ BEFORE THE @ SIGN IN THE EMAIL.

EXAMPLE: email\@domain.com

Seth



  Subject: Re: Changing who the email is From
  Posted: 03/17/2004 at 7:55:26 am
  By: Seth Knorr

One other thing it would be easiest to open smtp.cgi in notepad and then just click on:

->EDIT
-> GO TO...

AND THEN ENTER THE LINE NUMBER

Seth



  Subject: Re: Changing who the email is From
  Posted: 03/17/2004 at 5:12:19 pm
  By: ykchee1

I'm using sendmail.cgi, actually so I changed line 68: {From => $mail_sendto,} to {From => "sales\@wheatgrassjuicer.com.au",}

That works beautifully!! Thanks very much!





Copyright 2000-2004 Seth M. Knorr,
BizMailForm.com Forms Processor, All Rights Reserved






Heart House Community Church, Clermont FL