|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to redirect attachments
Hi,
A very intresting and useful article. Thanks. I have a doubt.I want to save the attachments in a mail to a folder on the server(same server). How do I accomplish this. Many thanks again |
|
#2
|
|||
|
|||
|
One improvement.
Hello,
Nice explanation of multipart message handling. I have only thing to suggest. You are allowing user to download attachments regardless of the type. What can be done is that check the type of attachment, If its JPG or GIF, display it in browser itself, that would be most convenient for user. Also if attachment is HTML file you can display it right there. We can simply check $type variable and take appropriate action. [ a simple switch statement would do. ] Also I noticed that you are using for($x=0; $x<sizeof($sections); $x++) Here if you can see, sizeof would be called N times where N is number of elements in $sections. This would have effect if you have variable with lots of elements. Better would be, $num = sizeof($sections); for($x=0; $x<sizeof($num); $x++) nd as I said in my comment of first part of this series, POP server is not always the one which follows the @ sign. Otherwise nice article, JD |
|
#3
|
|||
|
|||
|
Problem
I guess there is problem with comment system,
I was talking about the for loop code and its getting trimmed, I wonder why. I was suggesting that call to sizeof should be outside for loop so that it doesnt get called N times. JD |
|
#4
|
|||
|
|||
|
Attachment problem
I am having a problem that all the emails that the attachment section is processing have an "inline" disposition? therfore when I test for attachments it comes back as none weither the e-mail has one or not ... if anyone else is having this problem please let me know.
-Mikey out |
|
#5
|
|||
|
|||
|
Re:
There's a fairly easy hack for this - just alter the attachment handling function to also register information on inline attachments.
The wonder of reusable functions. |
|
#6
|
|||
|
|||
|
Re:
Sure, you can implement a check-type-and-display function. The point is that different mail clients handle attachments differently - it depends on the user requirements. So you can set it up the way you like - the code is just a template for you to play with.
|
|
#7
|
|||
|
|||
|
[no subject]
You can copy the decoded attachment using copy()
|
|
#8
|
|||
|
|||
|
Comment system
If you are having problems posting, you may be doing something that confuses the structured text engine.
Here's a guide to structured text: "http://www.devshed.com/Server_Side/PHP/PHPMail/PHPMail2/comments/225929353/structured_text":http://www.devshed.com/Server_Side/PHP/PHPMail/PHPMail2/comments/225929353/structured_text |
|
#9
|
|||
|
|||
|
Re: Comment system
I guess I have gone through it.
basically I want to write a for loop to show some code and any how it is stripping them and I wonder why. JD |
|
#10
|
|||
|
|||
|
Re: Re: Comment system
Check the source of the page http://www.devshed.com/Server_Side/PHP/PHPMail/PHPMail2/comments/225929353
and you can see that the code is there intact. the less then symbol is being inerpreted by the browser as a tag. try using < and > when posting code. |
|
#11
|
|||
|
|||
|
Re: Re: Re: Comment system
I think in that case they need to change the comment code a bit.
JD |
|
#12
|
|||
|
|||
|
we should really beef this up
*I have a desparate need for this*, and I would like to contribute! My on-the-road sales ghouls need to be able to get at their mail. Browser accessed mail seems the way to go. The first thing I will change is adding this to the list.php:
<META HTTP-EQUIV="refresh" CONTENT="300"> and changing all the hard coded formating to CSS. |
|
#13
|
|||
|
|||
|
Re: One improvement.
JD: I can see why you are saying that the POP server isn't always what follows the @, but for the purposes of making this work, the form isn't really asking for the end user's email addy; it's asking for username@POPserver. Personally, I plan to only ask for a username, and hard code the POP server, because I only want people looking at mail on my server!
thx, CF |
|
#14
|
|||
|
|||
|
Re: Re: One improvement.
I just put it up cause I felt like this point wasn't made clear.
JD |
|
#15
|
|||
|
|||
|
Re: Re: Re: One improvement.
Well, I would agree...
|
![]() |
| Viewing: Dev Shed Forums > Other > Development Articles > Building A PHP-Based Mail Client (part 2) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|