Page 1 of 1

Question about files...

Posted: Thu Sep 29, 2011 4:34 pm
by Supplement
So I used a grep to search out a line of code. It returned nothing, but the code is obviously being generated by a (mail) function or some function because it's part of an auto-responder after a purchase it being made.

Thank you for your order! etc etc etc.

Name
Address
billing info
shipping info etc etc.


Any ideas where this might reside? If it's not in my actual files anywhere?

:banghead:

Re: Question about files...

Posted: Thu Sep 29, 2011 5:38 pm
by social_experiment
It will be easier if you paste the code that you are having a problem with

Re: Question about files...

Posted: Thu Sep 29, 2011 8:07 pm
by Supplement
fixed!

Re: Question about files...

Posted: Thu Sep 29, 2011 8:35 pm
by Celauran
Where is $SenderMail being defined? That's where I'd start looking.

I'm not sure, I don't see any includes at the top of the pag

Posted: Fri Sep 30, 2011 12:57 am
by Supplement
fixed!

Re: Question about files...

Posted: Fri Sep 30, 2011 6:36 am
by Celauran
First, please use [ syntax] tags (the PHP Code button) to prevent your code from being an unreadable mess. Second, $SenderMail is used in that code, but defined somewhere else. A list of functions are defined here, but none of them are called.

Re: Question about files...

Posted: Fri Sep 30, 2011 12:57 pm
by Supplement
Sorry, I will use the syntax tags from here on out.

I used:

grep -rn '$SenderMail' .

to search out the function and try and find where it's being defined at but it was only located on two other pages.. one page it was commented out on and the other page was for our blog.. nearly identical code with no definitions.

ughhhhh! =/

Re: Question about files...

Posted: Fri Sep 30, 2011 1:01 pm
by Celauran
It's an argument to the function send_email_with_attachment. You need to look for where that function is called.

Re: Question about files...

Posted: Fri Sep 30, 2011 1:05 pm
by Supplement
That's what i figured and I searched that out yesterday but still couldn't find anything defined. I'll have another gander.

Re: Question about files...

Posted: Fri Sep 30, 2011 1:35 pm
by Supplement
Nothing in the other files that returned the search for send_email_with_attachment.. nothing was defined.

Any other ideas.

:banghead:

Re: Question about files...

Posted: Fri Sep 30, 2011 1:44 pm
by Celauran
Seems strange that a function wouldn't ever be called. If you're sure it isn't, then you must have isolated the wrong function and it's back to the drawing board trying to determine which function is sending out these emails.

Re: Question about files...

Posted: Fri Sep 30, 2011 2:17 pm
by Supplement
That's what I was hoping you weren't going to say. I've been using aptana and so i just downloaded netbeans perhaps it will help define the functions better than aptana. =]

This is not the email though, I'm looking for a different on

Posted: Fri Sep 30, 2011 6:30 pm
by Supplement
fixed! :D

Re: Question about files...

Posted: Wed Oct 05, 2011 4:39 pm
by Supplement
well, i feel like a big dummy cause the name in the email address coming from the payment gateway. Just thought I'd mention that the issue has been resolved and thanks again for any time and effort put fourth from you guys.


:banghead: