Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 135
Search took 0.46 seconds.
Search: Posts Made By: d11wtq
Forum: JavaScript programming 01-13-2009, 09:52 PM
Replies: 7
Views: 3,478
Posted By d11wtq
I know this is an old thread but I figured it was...

I know this is an old thread but I figured it was worth reviving with the least hacky solution since it appears in search results.

It took me ages to figure this out, and basically I needed...
Forum: PHP 09-09-2006, 01:16 PM
Replies: 9
Views: 1,052
Posted By d11wtq
~musher. I'm working on a PHP only...

~musher. I'm working on a PHP only implementation which will not require all that mucking about. You just edit a config file to specify a port to run on (2525 ?) then open a command line and type:...
Forum: PHP 09-02-2006, 02:50 PM
Replies: 9
Views: 1,052
Posted By d11wtq
Try FakeMail by Marcus Baker (sourceforge). It...

Try FakeMail by Marcus Baker (sourceforge). It runs locally via Perl and just dump the email to a text file without sending it.
Forum: PHP 09-02-2006, 02:46 PM
Replies: 7
Views: 902
Posted By d11wtq
http://www.swiftmailer.org/

http://www.swiftmailer.org/
Forum: PHP 09-02-2006, 02:45 PM
Replies: 3
Views: 1,153
Posted By d11wtq
No no no no no. OMG, that's terrible. For...

No no no no no. OMG, that's terrible.

For one, it's not multithreading, multithreading uses 1 process, for two, why use separate windows when PHP can spawn its own new processes? Ouch.
Forum: PHP 08-28-2006, 11:22 PM
Replies: 4
Views: 542
Posted By d11wtq
Ah OK. Yeah I forgot that small sites needn't...

Ah OK. Yeah I forgot that small sites needn't worry about spam. Spammers only target big sites. :rolleyes:
Forum: PHP 08-26-2006, 05:01 PM
Replies: 6
Views: 882
Posted By d11wtq
I do. If the mail was bordering on being cast as...

I do. If the mail was bordering on being cast as spam by a spam checker, making the email 100% HTML would likely push it over the limit. Pure HTML emails get penalized by spam checkers. You should...
Forum: PHP 08-23-2006, 04:02 PM
Replies: 8
Views: 1,509
Posted By d11wtq
I'd just like to stress that singletons are often...

I'd just like to stress that singletons are often used in the wrong places by people who are new to studying design patterns. They force a loss of scalability in your applications (such as the case...
Forum: PHP 08-20-2006, 03:39 AM
Replies: 4
Views: 698
Posted By d11wtq
Some servers are picky about the headers you use....

Some servers are picky about the headers you use. Use a tested mailing library like Swift Mailer since it uses an email structure like any major mail client would build. The other possibility is...
Forum: PHP 08-20-2006, 03:36 AM
Replies: 8
Views: 1,509
Posted By d11wtq
There's not a lot to a singleton and you've...

There's not a lot to a singleton and you've already implemented the pattern anyway. Good to see you've gone down the correct route for PHP5 rather than using globals or improper static variables...
Forum: Post a PHP snippet 08-16-2006, 10:13 AM
Replies: 1
Views: 4,477
Posted By d11wtq
I'll try to provide some constructive criticism...

I'll try to provide some constructive criticism ;)

I'd probably break the markup out into a template file... placing that amount of markup in a class is generally not a good idea since you need to...
Forum: PHP 08-16-2006, 12:28 AM
Replies: 5
Views: 623
Posted By d11wtq
So do I :( How weird. Do you do any...

So do I :(

How weird. Do you do any post/pre processing of the data?
Forum: PHP 08-15-2006, 11:55 PM
Replies: 5
Views: 623
Posted By d11wtq
Not sure, sounds like a bug with the function...

Not sure, sounds like a bug with the function itself but it may be caused by the fact you start the numbering at 1 and not 0 in $text. try starting at 0 and see what happens.
Forum: PHP 08-15-2006, 10:52 PM
Replies: 1
Views: 603
Posted By d11wtq
Here's how you'd fetch a directory listing...

Here's how you'd fetch a directory listing recursively. I'll explain through the use of comments in the function.


<?php

//We need the abaility to pass a parameter so that we can recurse
//...
Forum: Post a PHP snippet 08-15-2006, 10:36 PM
Replies: 8
Views: 4,723
Posted By d11wtq
Even that won't work. Port 25 might not be open...

Even that won't work. Port 25 might not be open on that domain since the MX for it may be handled elsewhere. You need to simply check the MX records for the domain. It's easily done.
...
Forum: PHP 08-14-2006, 09:46 PM
Replies: 3
Views: 511
Posted By d11wtq
Are you on a shared server? I'd gamble toffees...

Are you on a shared server? I'd gamble toffees (and I like toffee!) on your mail being blocked as spam.
Forum: Post a PHP snippet 08-14-2006, 09:41 PM
Replies: 8
Views: 4,723
Posted By d11wtq
WTF? ~iota are you implying that for a domain...

WTF? ~iota are you implying that for a domain name to be valid for email addressing it must run a website? Hmm... no ;)

The best way to check if the email domain is valid is to look up the MX...
Forum: Post a PHP snippet 08-13-2006, 12:34 PM
Replies: 8
Views: 4,723
Posted By d11wtq
(Non-obvious) Email address validation

Just playing around with email validation and here's a better (although less obvious) regex for email address validation, using (sensible) dot-atom notation for the local part.


<?php

function...
Forum: PHP 08-13-2006, 01:40 AM
Replies: 8
Views: 1,805
Posted By d11wtq
Some sites block unknown user agents. Try using...

Some sites block unknown user agents. Try using CURL instead.
Forum: PHP 08-13-2006, 01:39 AM
Replies: 6
Views: 1,196
Posted By d11wtq
To send HTML in an email you just need to specify...

To send HTML in an email you just need to specify a text/html content-type in the headers.

Doing that exposes the risk of being blocked by spam filters however so you're best sending a plain text...
Forum: PHP 08-13-2006, 01:38 AM
Replies: 3
Views: 597
Posted By d11wtq
Oops, wrong thread sorry :o

Oops, wrong thread sorry :o
Forum: PHP 08-13-2006, 01:37 AM
Replies: 3
Views: 597
Posted By d11wtq
To send HTML in an email you just need to specify...

To send HTML in an email you just need to specify a text/html content-type in the headers.

Doing that exposes the risk of being blocked by spam filters however so you're best sending a plain text...
Forum: PHP 08-01-2006, 03:06 PM
Replies: 1
Views: 520
Posted By d11wtq
You're missing some whitespace: FROM: me...

You're missing some whitespace:

FROM: me <foo@bar.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="MIME_BOUNDARY"

--MIME_BOUNDARY
Content-Type: text/plain;...
Forum: PHP 08-01-2006, 12:57 PM
Replies: 2
Views: 1,500
Posted By d11wtq
If you want to physically embed the image itself...

If you want to physically embed the image itself into the email and display it try swift mailer.
Forum: PHP 07-25-2006, 10:11 AM
Replies: 2
Views: 1,467
Posted By d11wtq
That's got nothing to do with your code. It's...

That's got nothing to do with your code. It's the server giving you that response. How many emails are you trying to send? Either way, mail() will close one connection before opening the next so I...
Showing results 1 to 25 of 135

 
Forum Jump

All times are GMT +1. The time now is 05:28 AM.