Order confirmation & contact.asp Email |
Post Reply | Page 12> |
Author | |
kimmyecoist
Newbie Joined: 27-March-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
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. |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
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: 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" |
|
kimmyecoist
Newbie Joined: 27-March-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
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? |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
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 |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
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. |
|
kimmyecoist
Newbie Joined: 27-March-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
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. |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
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. |
|
Hamish
Admin Group Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
|
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. |
|
kimmyecoist
Newbie Joined: 27-March-2008 Status: Offline Points: 0 |
Post Options
Thanks(0)
|
We're running version 3.03, so that's why we don't have the updated
contact.asp code. |
|
Hamish
Admin Group Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
|
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. |
|
Post Reply | Page 12> |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |