I'm using this strictly as a development platform on my PC right now. I will transfer it to a live web server, once i have everything working on the development platform. I do have code to scrub the form input I'll get when the site goes live.
I've tried setting php.ini but I get an error message. Here is how I have the [Mail Function] set in php.ini, with the private stuff replaced by generic terms:
[mail function]
; For Win32 only.
SMTP = mail.bellsouth.net
smtp_port = 25
default_domain=bellsouth.net
auth_username=myusername - I have also tried
myusername@bellsouth.netauth_password=mypassword
sendmail_from =
myusername@bellsouth.netThe error message I get is:
E_Warning
mail()[<a href='function.mail>function.mail</a>
MTP Server Response: 501 need user@domain at
<myusername%40bellsouth.net>
followed by the line number in my PHP script where the error occurs.
The lines in my PHP script are:
$encoded_email = urlencode($_POST['user_name']);
$mail_body = <<< EOMAILBODY
Thank you for registering at Example.com. Click this link to confirm your registration:
[
localhost]
Once you see a confirmation message, you will be logged into
Example.com
EOMAILBODY;
mail ($encoded_email, 'Example.com Registration Confirmation', $mail_body, 'From: myusername@bellsouth.net');
It seems I'm reaching my ISP's SMTP server, but something is going wrong at that point.
Any ideas? Should the value to the right of the equal signs in php.ini be enclosed in quotes?
Thanks,
Lowell