Ok, proper questio now, not like my last one. I'm tryin to use the [man]mail()[/man] function and I get the reply:
Warning: mail() [function.mail]: SMTP server response: 454 5.7.3 Client was not authenticated. in C:\www[url]www.technologytradingpost.com\includes\register2.inc.php[/url] on line 39 mail successfully sent
.
From php.ini:
; For Win32 only. SMTP = localhost ; for Win32 only ; For Win32 only. sendmail_from = webmaster@otmnet.com ; for Win32 only
Anyone?
<edit>Oh, and the server is w2k</edit>
Hi, do you have any smtp server installed on localhost?
if not, you can't mail...
Try to configure SMTP in php.ini with address of your default smtp, such as mail.hotmail.com...
see you
I've definately got SMTP installed, cos some of our websites are written in ASP and they all use it too. However, even when I change the location of the smtp server in my php.ini to the name of the computer that is running smtp, i still get the same error.
I'm sorry for prew post 🙂...
Try to put in additional_headers param of mail function a From: and X-Mailer:
If all work fine but it do the warning put @ before mail() command.
@mail($dest,$subj,$body);
What do you suggest putting in the X-mailer bit?
The manual do this:
."X-Mailer: PHP/" . phpversion()
I think any string is good...
Right, got this one solved. Just had to change the php.ini so that instead of pointing to localhost, it was pointing to the mail server. This now works properly.