New Zenner
- Join Date:
- Jan 2007
- Location:
- Boston, MA, USA
- Posts:
- 40
- Plugin Contributions:
- 0
Cannot send any messages - gmail
I get error messages when I try to send an email to customers (through the admin) and when I try to send a message through the form on my contact page. Both errors seem to be caused by the same thing.
Email to customers gives this message:
Warning: fsockopen(): unable to connect to smtp.gmail.com:25 in madebymichelle/includes/classes/class.smtp.php on line 115
Warning: Cannot modify header information - headers already sent by (output started at /home/content/D/a/d/Dadaya2000/html/madebymichelle/includes/classes/class.smtp.php:115) in madebymichelle/admin/includes/functions/general.php on line 34
Contact form has this message:
Warning: fsockopen(): unable to connect to smtp.gmail.com:25 in madebymichelle/includes/classes/class.smtp.php on line 115
Warning: Cannot modify header information - headers already sent by (output started at /home/content/D/a/d/Dadaya2000/html/madebymichelle/includes/classes/class.smtp.php:115) in madebymichelle/includes/functions/functions_general.php on line 41
class.smtp.php says (line 110-116):
#connect to the smtp server
$this->smtp_conn = fsockopen($host, # the host of the server
$port, # the port to use
$errno, # error number if any
$errstr, # error message if any
$tval); # give up after ? secs
# verify we connected properly
Both general.php line 34 and functios_general.php line 41 say:
header('Location: ' . $url);
How can I fix this?