mail() working sporadically

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

Loougle
Forum Newbie
Posts: 22
Joined: Fri Feb 25, 2011 11:23 am

Re: mail() working sporadically

Post by Loougle »

John Cartwright wrote:
Loougle wrote:ON my contact forms I'm not even using headers, should I be using headers and could that be the reason why I only receive the first few submissions and then not receiving the rest?
Please don't threadjack.
Sorry I have the exact same problem he does, I guess i'll make a brand new thread.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: mail() working sporadically

Post by Weirdan »

sleepydad wrote:"Warning: fsockopen() [function.fsockopen]: unable to connect to smtp.gmail.com:465 (Connection timed out) in /home/content/s/l/e/sleepydad/html/kasebergkronies/lib/classes/Swift/Transport/StreamBuffer.php on line 233 ..."
Your hosting provider might be blocking outgoing connections - you'd have to ask them to allow connections to gmail if they do.
Do you have shell access to the hosting server? If you do, try to run 'telnet smtp.gmail.com 465' from the shell prompt and see if it connects.
sleepydad
Forum Commoner
Posts: 75
Joined: Thu Feb 21, 2008 2:16 pm

Re: mail() working sporadically

Post by sleepydad »

I'm on a Go Daddy forum now to try to find out if they're blocking. Hopefully that's not the case or I'm up the creek.
Post Reply