I'm still not sure what is what, you are aware of this section of code in
FreeTrade on line 75 in
include/global_settings:
/*
** General Network Behavior
*/
define("SEND_EMAIL", FALSE);
//when emails are sent by the system this is used
//in the from header.
define("EMAIL_FROM", "Webmaster <webmaster@$SERVER_NAME>");
The code above define("SEND_EMAIL", FALSE) determines whether to send an email
confirmation on completion of an order, if set to TRUE, the email will be
sent....
the define "EMAIL_FROM", will be the from address of the Email, which in your
case you would want to be, I suppose:
[EMAIL PROTECTED], so I guess you would change the above to
define("SEND_EMAIL", TRUE);
and
define("EMAIL_FROM", "Order Confirm at TradeIt <[EMAIL PROTECTED]>");
these values are then utilized in the file actions/SUBMIT_ORDER
at the very end of the file there is one last
if statement that has some stuff that might or might not give you a problem, the
SEND_EMAIL part, you defined to be true in the include/global_settings file, so
it will pass, the validateEmail($billingAddress["Email"]) function, could give
you a problem, if you are behind a firewall, or connections are limited coming
in from the outside to the www server. the validateEmail function is coded in
include/validateEmail , this function actually opens up a socket and does a
lookup to determine the mail server of the email address, then it does the
equivalent of a telnet mail.server.com 25, and does a little test to see if the
mail server will accept the address..
other than that, the mail a confirmation is already in the program ... if this
doesn't address your problem, I'm not sure what we're trying to accomplish,
maybe someone else can jump in here ... if not, I'm not sure what else I can
tell you...
Hope this helps :
Here is the final bit of code in actions/SUBMIT_ORDER, where the email is sent
and most of the above explanation is referring to:
if($ContinueProcessing)
{
//send confirmation email
if((SEND_EMAIL) AND validateEmail($billingAddress["Email"]))
{
$mail_body = L_SUBMITORDER_DEAR .
$billingAddress["Name_First"] . " " .
$billingAddress["Name_Last"] . ",\n\n";
$mail_body .= L_SUBMITORDER_BODY;
$mail_body .= L_SUBMITORDER_INVOICE .
$UserInfo['Invoice'] .".\n\n";
$mail_body .= L_SUBMITORDER_THANKS;
//list each item in the invoice and where each item is
being shipped to
if ( listInvoiceContents(intval($UserInfo['Invoice']),
$contentsString) )
{
$mail_body .= L_SUBMITORDER_INVOICE_CONTENTS;
$mail_body .= $contentsString;
}
else
{
//output error message
print( htmlentities($contentsString) );
}
mail($billingAddress["Email"],
L_ORDER_CONFIRMATION,
$mail_body,
"From: " . EMAIL_FROM);
}
$ActionResults[] = L_SUBMITORDER_SUCCESS;
}
Kelley
Tommy TradeIT wrote:
> Ok here we go.
> i want my shoppers to have a confirmation email. This dosent work for the
> time beeing.
> I havent done any changes to the original code in freetrade on this subject.
> I think i have to set in the return path for the script in the header of the
> email that is going to the shopper as an confirmation
> ive done this before like this:
>
> mail("$recipientname <$recipient>","$subject","$name
> ($email) send the following message to $recipientname
> ($recipient) : \n\n Telefonnr: $telephone \n ", "From: $name
> <$email>\nReply-To: $name <$email>\n Return-Path: <[EMAIL PROTECTED]>\n
> Content-type: text/plain\nX-Mailer: PHP/" . phpversion());
>
> But the problem is that i cant find out where to put it in freetrade.
>
> Thanks for the help.
>
> Regards Tommy
>
> ----- Original Message -----
> From: "Kelley Lingerfelt" <[EMAIL PROTECTED]>
> To: "FreeTrade" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 04, 2000 3:59 PM
> Subject: Re: [FreeTrade] HELP HELP
>
> > I'm pretty confused, but if you will break it down and if it can be done
> on
> > another system running FreeTrade, I will plug it in and find where to put
> the
> > Return-Path <mailaddress>\n for you, which I'm not sure exactly what you
> are
> > getting at. If I can plug this in on a system that is running FreeTrade,
> but not
> > critical like yours, I'll find out for you. But, you're gonna have to
> spell it
> > out for me, exactly what we want to do, and an example of what you would
> like to
> > accomplish.
> >
> > OK?
> >
> > Kelley
> >
> >
> >
> > Tommy TradeIT wrote:
> >
> > > Thanks but i have already made sveral functions for sending other copies
> to
> > > myself and the ERP system
> > > that controls the stock units via ODBC.
> > > But the problem is when a customer is to receive a copy the email adress
> the
> > > user sets in order prosess, the mail just loops on the maildeamon
> > > at the server, because its an outside POP3 email adress, witch has to
> be
> > > sent out of the system.
> > >
> > > My big problem now is that its over one THOUSAND shoppers at the same
> time
> > > trying to buy products on the shop..........
> > >
> > > So you all can understand makes the server some overloaded.
> > >
> > > I still need som hint on where to put in my Return-Path <mailadress>\n
> > > With so many shoppers there now i cant try because if iam wrong i will
> get
> > > parse error and loose alot of orders.
> > >
> > > Regards
> > > Tommy
> > >
> > > ----- Original Message -----
> > > From: "Kelley Lingerfelt" <[EMAIL PROTECTED]>
> > > To: "FreeTrade" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, October 04, 2000 3:32 PM
> > > Subject: Re: [FreeTrade] HELP HELP
> > >
> > > > If you are referring to the EMAIL_FROM definition , that is defined
> in
> > > > include/global_settings ... or you can put anything you want in the
> actual
> > > mail(
> > > > ) function that is in, actions/SUBMIT_ORDER, Leon is using the global
> > > definition
> > > > EMAIL_FROM which is defined in include/global_settings, but if you
> want,
> > > you can
> > > > put anything you like there or even add another mail function, to send
> > > yourself
> > > > a copy of the confirmation email, just change the first parameter to
> your
> > > email
> > > > address or where you want it sent to.
> > > >
> > > > Probably not the answer you're looking for, but maybe it is..
> > > >
> > > > Kelley
> > > >
> > > >
> > > > Tommy TradeIT wrote:
> > > >
> > > > > I have a big problem, and i need big help.
> > > > > The shop at www.reflex.no was ranked #2 at national tv show.
> > > > > So people are going crazy and buying there.
> > > > > That is a big problem for me because i am not finished working off
> the
> > > > > latest details.
> > > > >
> > > > > This is wrong:
> > > > > I cant find out where i shall put the Return-path for the submit
> order
> > > email
> > > > > confirmation.
> > > > >
> > > > > Please urgent.
> > > > >
> > > > > Tommy
> > > > >
> > > > > ------------------------------------------------------------
> > > > > To subscribe: [EMAIL PROTECTED]
> > > > > To unsubscribe: [EMAIL PROTECTED]
> > > > > Site: http://www.working-dogs.com/freetrade/
> > > > > Problems?: [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > > > ------------------------------------------------------------
> > > > To subscribe: [EMAIL PROTECTED]
> > > > To unsubscribe: [EMAIL PROTECTED]
> > > > Site: http://www.working-dogs.com/freetrade/
> > > > Problems?: [EMAIL PROTECTED]
> > > >
> > >
> > > ------------------------------------------------------------
> > > To subscribe: [EMAIL PROTECTED]
> > > To unsubscribe: [EMAIL PROTECTED]
> > > Site: http://www.working-dogs.com/freetrade/
> > > Problems?: [EMAIL PROTECTED]
> >
> >
> >
> > ------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Site: http://www.working-dogs.com/freetrade/
> > Problems?: [EMAIL PROTECTED]
> >
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Site: http://www.working-dogs.com/freetrade/
> Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]