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:
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/admin/includes/functions/general.php on line 34
class.smtp.php says (line 110-116):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
Code:#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:
Code:header('Location: ' . $url);
How can I fix this?



