283e651789574010deffc121ba14bad83fd47284
[mailer.git] / inc / phpmailer / docs / faq.html
1 <html>
2 <head>
3 <title>phpmailer FAQ</title>
4 </head>
5
6 <body bgcolor="#FFFFFF">
7
8 <h2>phpmailer FAQ</h2>
9
10 <p>
11 <b>I'm using the SMTP mailer and I keep on getting a timeout message 
12 well before the X seconds I set it for.  What gives?</b>
13 <br>
14 PHP versions 4.0.4pl1 and earlier have a bug in which sockets timeout 
15 early.  You can fix this by re-compiling PHP 4.0.4pl1 with this fix: 
16 <a href="timeoutfix.diff">timeoutfix.diff</a>. Otherwise you can wait 
17 for the new PHP release.
18 </p>
19
20 <p>
21 <b>I am concerned that using include files will take up too much
22 processing time on my computer.  How can I make it run faster?</b>
23 <br>
24 PHP by itself is very fast.  Much faster than ASP or JSP running on
25 the same type of server.  This is because it has very little overhead compared
26 to its competitors and it pre-compiles all of
27 its code before it runs each script (in PHP4).  However, all of
28 this compiling and re-compiling can take up a lot of valuable
29 computer resources.  However, there are programs out there that compile
30 PHP code and store it in memory (or on mmaped files) to reduce the
31 processing immensely.  Two of these: <a href="http://apc.communityconnect.com">APC
32 (Alternative PHP Cache)</a> and <a href="http://bwcache.bware.it/index.htm">Afterburner</a> 
33 (<a href="http://www.mm4.de/php4win/mod_php4_win32/">Win32 download</a>) 
34 are excellent free tools that do just this.  If you have the money
35 you might also try <a href="http://www.zend.com">Zend Cache</a>, it is
36 even faster than the open source varieties.  All of these tools make your
37 scripts run faster while also reducing the load on your server. I have tried
38 them myself and they are quite stable too.
39 </p>
40
41
42 <p>
43 <b>What mailer gives me the best performance?</b>
44 <br>
45 On a single machine the mail() or sendmail mailers give you the best 
46 performance because they do not have the added overhead of SMTP.
47 If you have you have your mail server on a another machine then
48 SMTP is your only option, but you do get the benefit of redundant
49 mail servers.
50 </p>
51
52 <p>
53 <b>When I try to attach a file with on my server I get a 
54 "Could not find {file} on filesystem error".  Why is this?</b>
55 <br>
56 If you are using a Unix machine this is probably because the user 
57 running your web server does not have read access to the directory 
58 in question.  If you are using Windows, then the problem probably is 
59 that you have used single backslashes to denote directories ("\").  
60 A single backslash has a special meaning to PHP so these are not 
61 valid.  Instead use double backslashes ("\\") or a single forward 
62 slash ("/").
63 </p>
64
65 </body>
66 </html>