in Education by
I'm trying to use the mail() function on my computer so I can test the web application's system emails that I'm building for someone. In the php.ini file I changed sendmail_sender to my email address. The SMTP settings in php.ini are as follows: [mail function] ; For Win32 only. ; http://php.net/smtp SMTP = smtp.comcast.net ; http://php.net/smtp-port smtp_port = 25 When I try sending mail with PHP, I get this error: Warning: mail() [function.mail]: SMTP server response: 550 5.1.0 Authentication required in C:\wamp\www\register.php on line 28 Here is my PHP mail code: $url = "http://localhost/activate.php?key=".$key; $email_body = "Dear ".$name.", Thank you for registering on Yamma.org! To activate your account, please click on the following URL: ".$url." If the above URL is not clickable, please copy the FULL URL and paste it into your browser's address bar. Sincerely, The Yamma Team http://www.yamma.org"; mail($email, $settings['activate_email_subject'], $email_body, "From: ".$settings['emails_sent_from']); Does anyone have any idea of why I could be getting this error? I don't think Comcast's SMTP server needs authentication, or does it? JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Apparently it does or it wouldn't be saying that :). To do authentication, you will need to use a library like PHPMailer, SwiftMailer, or Zend_Mail.

Related questions

0 votes
    I'm using the following method to send mail from Python using SMTP. Is it the right method to use ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    I'm using the following method to send mail from Python using SMTP. Is it the right method to use ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    I'm using the following method to send mail from Python using SMTP. Is it the right method to use ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 27, 2022 in Education by JackTerrance
0 votes
    Need to read my SMTP email settings defined under system.net section in my web.config file. Below is one example of SMTP email setting defined in web.config file: (Under Section)...
asked Mar 2, 2022 in Education by JackTerrance
0 votes
    Application layer sends & receives data for particular applications using Hyper Text Transfer Protocol (HTTP), and Simple ... questions and answers pdf, mcq on Cyber Security pdf,...
asked Nov 3, 2021 in Education by JackTerrance
0 votes
    I'm using this code to merge text with an image and it's working fine. But when I use this code with Facebook app, it ... up output. Here is the code I'm using for Facebook app:...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    i have online Wordpress blog, now i copied my blog to localhost to change the design. I replaced http ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 18, 2022 in Education by JackTerrance
0 votes
    Can't ping smtp.gmail.com. I've been using google smtp for email notification and it was working ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 16, 2022 in Education by JackTerrance
0 votes
    In MS Outlook 2010 account setting you can set : (A) Incomming Server POP3 (B) Outgoing Server SMTP (C) Encryption SSL (D) All of these Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    I've been trying to send a cookie back to the client from the server. I get the response data ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 26, 2022 in Education by JackTerrance
0 votes
    I am struggling to figure out how to specify a MOTO payment with Stripe API and PHP. I believe I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 11, 2022 in Education by JackTerrance
0 votes
    Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 10, 2022 in Education by JackTerrance
0 votes
    So I have a Nginx running inside a docker container, I have a mysql running on the host system, I ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 7, 2022 in Education by JackTerrance
...