Search the Community
Showing results for tags 'send email'.
-
Hi, I am a newnbie seeking a job at a financial institution, I am trying to get some html forms to submit data to mysql database using PHp and as well sends same data captured to email. Records are being saved to localhost database but I get Congratulations , this page is confirmation that you are now registered for Enrollment. Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() inC:\xampp\htdocs\form\enroll\mailpost.php on line 55 WHILE I MIGRATE TO LIVE SERVER.. I GET THIS ERROR... Failed to connect Enrollment is not successful, Please check back later Congratulations , this page is confirmation that you are now registered for Enrollment.
- 1 reply
-
- send email
- post to 127.0.0.1
- (and 2 more)
-
Hello, I don't know very good PHP, I have a problem with send email. My hosting working smtp support but i didn't add it. My function doing send recovery password. How can i add smtp support? function sendRecover($to, $title, $url, $from, $username, $salt) { $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: '.$title.' <'.$from.'>' . "\r\n"; $subject = 'Password Recovery - '.$title; $message = 'A password recover was requested, if you didn\'t make this action please ignore this email. <br /><br />Your Username: <strong>'.$username.'</strong><br />Your Reset Key: <strong>'.$salt.'</strong><br /><br />You can reset your password by accessing the following link: <a href="'.$url.'/index.php?a=recover&r=1" target="_blank">'.$url.'/index.php?a=recover&r=1</a>'; return @mail($to, $subject, $message, $headers); }
- 19 replies
-
- smtp
- send email
-
(and 1 more)
Tagged with: