How do I send an email using my ISP server from my localhost with PHP -
i have code:
it keeps showing error: warning: mail() [function.mail]: smtp server response: 550 access denied - invalid helo name (see rfc2821 4.1.1.1). please out...
$headers = 'mime-version: 1.0'.'\r\n'; $headers .= 'content-type: text/html; charset=iso-8859-1'.'\r\n'; $headers .= 'from: me@mydomain.com'.'\r\n'; if(mail($email, $subject, $content, $headers)) { echo 'status: feedback sent successfully!!!'; } else { echo 'error: '.mysql_error(); }
Comments
Post a Comment