ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Using ProductCart
  New Posts New Posts RSS Feed - Order confirmation & contact.asp Email
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Order confirmation & contact.asp Email

 Post Reply Post Reply Page  12>
Author
Message
kimmyecoist View Drop Down
Newbie
Newbie


Joined: 27-March-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote kimmyecoist Quote  Post ReplyReply Direct Link To This Post Topic: Order confirmation & contact.asp Email
    Posted: 27-March-2008 at 11:41pm
Hi!

I'm looking for some help with an issue I'm having with our ProductCart.

The situation is - under email settings -> Store Manager, I've assigned it
to our sales email address. (sales@example.com) However, that affects
our contact.asp page. Ideally, I am looking for a way to get the
contact.asp page to send to our info email address (info@example.com),
yet still receive New Order Confirmations to sales@example.com.

Does anyone have a solution or any guidance?

I greatly appreciate it.
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 28-March-2008 at 12:23am

Well, it's a custom code solution that I would propose, but you just go find the common mail-handler script that physically sends the mail and override the behaviour.

This code is in the upper section of contact.asp:
MsgBody=MsgBody & dictLanguage.Item(Session("language")&"_Contact_5") & vbcrlf & vbcrlf
MsgBody=MsgBody & Session("pcSFMsgBody")
MsgBody=replace(MsgBody,"''","'")
  
call sendmail (CustName,CustEmail,scFrmEmail,MsgTitle,MsgBody)

There is logic that retrieves the value of "scFrmEmail" which occurs in the scripting above that block of code.

There are more elegant solutions (like adding another address field to the admin page and database), but if you were to place the following statement directly above the sendmail command, it's likely to get the job done.  I've not actually tested this so there may be a hiccup that needs to be dealt with, but that is where I'd consider starting if faced with the requirement.

scFrmEmail = "someotheraddress@yourdomain.com"

Back to Top
kimmyecoist View Drop Down
Newbie
Newbie


Joined: 27-March-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote kimmyecoist Quote  Post ReplyReply Direct Link To This Post Posted: 28-March-2008 at 10:12am
Hi Greg -

Thank you for your response!
I looked at my code in contact.asp and it did not have
MsgBody=MsgBody &
dictLanguage.Item(Session("language")&"_Contact_5") & vbcrlf & vbcrlf
MsgBody=MsgBody & Session("pcSFMsgBody")
MsgBody=replace(MsgBody,"''","'")

but it did have
call sendmail (CustName,CustEmail,scFrmEmail,MsgTitle,MsgBody)

so I put in the
scFrmEmail = "someotheraddress@yourdomain.com"
as you suggested; however, it did not do anything.

So I went into the sendmail.asp and changed
the rcpt = "info@ecoist.com"

That worked in sending the contact information form to the intended
address; however, it also sent any confirmation emails to the customers
to "info@ecoist.com"

Any suggestions to aid the problem?
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 28-March-2008 at 10:29am

Well, it looks like I was referring to an altered contact.asp script, but to accomplish what you want you cannot be editing the sendmail script.  You are trying to alter the behavior of the contact.asp page and that's were you need to make this edit.

MsgBody=MsgBody & dictLanguage.Item(Session("language")&"_Contact_5") & vbcrlf & vbcrlf
MsgBody=MsgBody & Session("pcSFMsgBody")
MsgBody=replace(MsgBody,"''","'")
<--------------put that new line here!  
call sendmail (CustName,CustEmail,scFrmEmail,MsgTitle,MsgBody)

Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 28-March-2008 at 10:31am

Now that I compare the two block of text I don't think I was looking at altered code.  Looks like you just didn't find what I was directing you to.

Open the file in a text editor, and search (find if you are using notepad) for the sendmail.asp reference in the page.

Back to Top
kimmyecoist View Drop Down
Newbie
Newbie


Joined: 27-March-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote kimmyecoist Quote  Post ReplyReply Direct Link To This Post Posted: 28-March-2008 at 10:45am
I think it may be altered code you're referring to, because it does not find
that block of text.

I do have the

call sendmail (CustName,CustEmail,scFrmEmail,MsgTitle,MsgBody)

so I put
scFrmEmail = "info@ecoist.com"
before it and it did not work. I then put that block of text with the
scFrmEmail line, and it still is sending to sales@ecoist.com.


Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 28-March-2008 at 10:52am

From my initial post:

I've not actually tested this so there may be a hiccup that needs to be dealt with, but that is where I'd consider starting if faced with the requirement.

Unless you have the skills to debug and identify the issue, you may need a programmer to assist you.

Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 28-March-2008 at 10:55am
Hi,
    The lines Greg refers to appear in my copy of contact.asp - lines 97-101.
I'm running V3.11 - Which version of the code are you running? If you are on a different version that may be the reason you cannot find the lines.
Back to Top
kimmyecoist View Drop Down
Newbie
Newbie


Joined: 27-March-2008
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote kimmyecoist Quote  Post ReplyReply Direct Link To This Post Posted: 28-March-2008 at 11:05am
We're running version 3.03, so that's why we don't have the updated
contact.asp code.


Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 28-March-2008 at 11:13am
OK - Your BEST option is to upgrade  !
it's worth keeping on up to date versions for both securtity and functionality. That said, if you have done much in the way of customisation then there is the overhead of re-applying the changes.
Other than that, I suspect, if you post, say, the 20 lines above the call to sendmail  then someone (Greg?   ) will be able to point you in the right direction.

Back to Top
 Post Reply Post Reply Page  12>
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.