Question about getting selected mail to delete

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
computerfairy
Forum Newbie
Posts: 1
Joined: Tue Jan 08, 2008 6:36 pm

Question about getting selected mail to delete

Post by computerfairy »

I am a beginner's beginner on PHP.

I really need help with my code.

I have a sent mail list, and I put in check boxes, so a user can click on the box and hopefully that would delete that selected email.

The trouble is: Though I do have the link correct, so that onced clicked, the next page seen says "email successfully deleted"; but, the email won't actually delete. :?

I don't know how to get the delete function to work properly. I believe I have the right variable in there; but, maybe I don't have it in the right spot? Or maybe I'm missing one small little detail.

What I would LOVE is if someone could volunteer to look over my code and tell me what I am doing wrong.
Not like you all don't have better things to do, I know, so I don't want to put anyone out. I would really appreciate it though if someone could help me on this, because I keep rearranging the code and it does no good, it just ends up messing up the look of the tables.

The website was built by someone else. So, I'm trying to figure out what names call to which functions. I have no contact with the previous owner of the site. I don't know who they are.

Thank you to anyone who decides to take a crack at helping me :)
I am terribly frusterated with PHP, and so I deeply appreciate it. :D
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

I'll bet you're using the IMAP functions to access your mailbox, and you're calling imap_delete() to delete your message.

Mail deleted via IMAP is only marked as deleted, but doesn't actually go anywhere until you call imap_expunge() or imap_close().
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: Question about getting selected mail to delete

Post by superdezign »

computerfairy wrote:The trouble is: Though I do have the link correct, so that onced clicked, the next page seen says "email successfully deleted"; but, the email won't actually delete. :?
Is this actual e-mail email or just an internal website kind of thing?
computerfairy wrote:What I would LOVE is if someone could volunteer to look over my code and tell me what I am doing wrong.
That's what we're all already doing. First though, you have to show us the code. :P
Post Reply