Jump to content
MakeWebGames

Recommended Posts

Posted

Can you use the mail() function in xampp? Or does it not work. I get errors. Figured it might be somethign with the localhost just not allowing, Figured I would ask before I went looking into this to far.

Posted

Well, the mail you send needs to be sent through a mail server.

You'll need to enter the mail server you want to use, and the port, etc. in php.ini.

If you don't have a mail server that you can use, you could use gmail's if you've got a gmail account. I'm not sure how to set that up though. You could google it.

Posted

look for this in xampp/php/php.ini (think thats the location (just closed files and cba to reopen))

[mail function]
; For Win32 only.
; [url]http://php.net/smtp[/url]
SMTP = localhost
; [url]http://php.net/smtp-port[/url]
smtp_port = 25

; For Win32 only.
; [url]http://php.net/sendmail-from[/url]
;sendmail_from = postmaster@localhost

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
; [url]http://php.net/sendmail-path[/url]
;sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

; 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 =

; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = Off

; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log = "C:\xampp\apache\logs\php_mail.log"

then edit with your details

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...