Click to See Complete Forum and Search --> : SendMail *really apreciate help*
Exstortion
07-15-2006, 12:12 AM
I have wamp and im trying to setup phpBB and I need sendmail setup. I have Free SMTP Server and my mailer is outlook expres Exstortion@mircrosoft.com. I have the smpt and outlook setup corect but how do i install this to php? This is what my code is...
PHP.INI:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = Exstortion@microsoft.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = "C:\Program Files\Free SMTP Server\localsrv.exe"
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
I just dont understand?????????
MarkR
07-15-2006, 05:10 AM
I'm pretty sure you cannot use the PHP sendmail method for sending mail on win32. You can however, use SMTP to a local mail server.
To do this you must set up your MTA to allow relaying from localhost, which many do not do by default.
Mark
Houdini
07-15-2006, 08:38 AM
[mail function]
; For Win32 only.
SMTP = mail.microsoft.com
smtp_port = 25
; For Win32 only.
sendmail_from = Exstortion@microsoft.comyou need to uncomment as done above by removing the ; (semicolon) and make sure the mail.microsoft.com is correct, or however you have it set up in your Outlook Express, it could be smtp.microsoft.com.
Then just use the mail() function for sending mail.
Exstortion
07-15-2006, 02:55 PM
Then when I run my phpinfo undersendmail from it should say "Exstortion@microsoft.com correct?
Exstortion
07-15-2006, 03:03 PM
phpinfo.php:
sendmail_from no value no value
sendmail_path no value no value
serialize_precision 100 100
short_open_tag Off Off
SMTP localhost localhost
smtp_port 25 25
PHP.INI:
[mail function]
; For Win32 only.
SMTP = stmp.localhost
smtp_port = 25
; For Win32 only.
sendmail_from = Exstortion@microsoft.com
What am I doing wrong????
MarkR
07-15-2006, 04:19 PM
Seeing as you work for Microsoft, you'll probably be running some internal exchange servers; contact your systems manager to find out how to relay SMTP messages. They will be happy to help I'm sure.
Mark
Houdini
07-15-2006, 04:28 PM
Apparently you are not editing the active php.ini. So search your hard drive and see if there are not more than one, then edit them all with the proper values, then restart the Apache server and then check for a change to phpinfo(). When you find the right one remember it or write it down and only edit that one from now on. There is a php.ini-recommended, and more with PHP and it is possible that you have edited the srong one, I use XAMPP and have used WAMP and am not sure but look at the apache/bin directory for tha php.ini in there, and if there is one that is what you need to edit.
tsinka
07-15-2006, 05:47 PM
Hi,
check the output of phpinfo(). There's a line that shows you the location of the php.ini file ("Configuration File (php.ini) Path").
Thomas
Exstortion
07-15-2006, 07:04 PM
First I had Wamp, Then i switched to xampp and I didnt like it. Now Im back using Wamp
Thxs I try this.
Exstortion
07-15-2006, 07:04 PM
Also what Smtp Do you recomend? I had the 1st. But I deleted it.
tsinka
07-15-2006, 07:11 PM
Have a look at the Mercury Mail Transport System (http://www.pmail.com/). I used it several times. It's a nice mail server that includes everything you need (including smtp server, pop server and much more).
Thomas
PHP Builder
Copyright Internet.com Inc. All Rights Reserved.