Question about files...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Supplement
Forum Commoner
Posts: 45
Joined: Thu Aug 18, 2011 8:52 pm
Location: Oceanside, CA

Question about files...

Post 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:
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: Question about files...

Post by social_experiment »

It will be easier if you paste the code that you are having a problem with
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering
User avatar
Supplement
Forum Commoner
Posts: 45
Joined: Thu Aug 18, 2011 8:52 pm
Location: Oceanside, CA

Re: Question about files...

Post by Supplement »

fixed!
Last edited by Supplement on Wed Oct 05, 2011 4:42 pm, edited 2 times in total.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Question about files...

Post by Celauran »

Where is $SenderMail being defined? That's where I'd start looking.
User avatar
Supplement
Forum Commoner
Posts: 45
Joined: Thu Aug 18, 2011 8:52 pm
Location: Oceanside, CA

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

Post by Supplement »

fixed!
Last edited by Supplement on Wed Oct 05, 2011 4:41 pm, edited 2 times in total.
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Question about files...

Post 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.
User avatar
Supplement
Forum Commoner
Posts: 45
Joined: Thu Aug 18, 2011 8:52 pm
Location: Oceanside, CA

Re: Question about files...

Post 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! =/
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Question about files...

Post by Celauran »

It's an argument to the function send_email_with_attachment. You need to look for where that function is called.
User avatar
Supplement
Forum Commoner
Posts: 45
Joined: Thu Aug 18, 2011 8:52 pm
Location: Oceanside, CA

Re: Question about files...

Post 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.
User avatar
Supplement
Forum Commoner
Posts: 45
Joined: Thu Aug 18, 2011 8:52 pm
Location: Oceanside, CA

Re: Question about files...

Post by Supplement »

Nothing in the other files that returned the search for send_email_with_attachment.. nothing was defined.

Any other ideas.

:banghead:
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Question about files...

Post 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.
User avatar
Supplement
Forum Commoner
Posts: 45
Joined: Thu Aug 18, 2011 8:52 pm
Location: Oceanside, CA

Re: Question about files...

Post 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. =]
User avatar
Supplement
Forum Commoner
Posts: 45
Joined: Thu Aug 18, 2011 8:52 pm
Location: Oceanside, CA

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

Post by Supplement »

fixed! :D
Last edited by Supplement on Wed Oct 05, 2011 4:41 pm, edited 1 time in total.
User avatar
Supplement
Forum Commoner
Posts: 45
Joined: Thu Aug 18, 2011 8:52 pm
Location: Oceanside, CA

Re: Question about files...

Post 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:
Post Reply