Hi, I have been working on trying to get a form to send an email, like it would if someone was to register for a site. Here is an example of my code:
ini_set('sendmail_from', 'info@zenix.biz);
$body = "Thank you for registering for Garry\'s\ nothing of a web site!! Garry is a real loser and needs as much emotional support possible!
Your user name is $username. Your password is $password .";
mail $email, $body, 'From: test@tester.biz');
I have configured my php.ini file to hande email:
[mail function]
; For Win32 only.
SMTP = pop.secureserver.net
smtp_port = 110
; For Win32 only.
sendmail_from = test@tester.biz
but I keep getting an error that says:
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini
This doesn't make any sense at all to me, and I'd really like to understand if I can. Any thoughts? I'd really appreciate it.