PHP Mail Help
- Started
- Last post
- 25 Responses
- TheAristocrat
A friend asked me to look over their site and see if I could figure out why the mail form doesn't work.
But, I get the info and it's php and I dont know php at all, So anyone want to lend a hand?
- Mimio0
What's the error you're getting in the browser?
- joyride0
what's the error?
Also, try stripping it down to basics stuff. This is just the part that sends the form. Try running it by just linking straight to this php file in the browser. the problem might be more upstream from this.
- TheAristocrat0
There's no error, it sends the email. The problem is it inludes the $strfrom and $subject but stops there. and doesnt display the information from the form.
- UndoUndo0
does it work when one of the items has been completed?
the php is setup so that none of the bosy will be added to the email otherwise.
the other thing is it is completely open to hacking, yr server can get exploited through the mail system and if the info is stored in a db that is vulnerable as well
- joyride0
try uncommenting //$strtype = '';
in line 10, your trying to use it in the send part. but it doesn't exist
maybe?
- TheAristocrat0
I've filled in all the items in the form and it still returned blank.
Also the // weren't there before that was me just trying anything.
Also, none of the infor is stored in a DB it's just sent as an email, and I can't really say much about there security since, I couldn't fix or recommend anyone to them to correct it.
- UndoUndo0
remove all of the // these stop the code in those lines working.
did you still have the problem before this?
when I say items I mean the ones at the bottom of the form, you need to have these filled it for it to work.
- Nac_part20
check your form values, not the php script
- Nac_part20
if that doesn't work ...try an array...
that $strbody variable may be getting abused
everything would print in one big paragraph
- UndoUndo0
its here for ppl to work on
- UndoUndo0
try the code I posted in the pastebin
- TheAristocrat0
I tried the code from pastebin but for some reason it wouldn't send or take me to the confirmation page.
Thanks to Everyone for their Help
- joyride0
you realize your sending a bunch of emails to right, might want to change that to a test email account.
- TheAristocrat0
I'm sending it to a test email in the code.
the code that's up was pasted while I was messing with things.
- UndoUndo0
I've added some output code at the top in the pastebin, if you put this on the site it will help to debug it. post back if/when you have and i'll try to help out
- UndoUndo0
and you didnt recieve a mail with any details?
- TheAristocrat0
No, I haven't received any mail yet. Maybe it's taking awhile, I'll check on it again in a minute.
- UndoUndo0
okay new code for you in pastebin. I have added my email address to help debugging if thats okay. I also spotted something that mey be the reason. can you submit the form again
- TheAristocrat0
Thanks, Undo You're going above and beyond.
I resubmitted the form just now.