Witam, mam pewien problem natomiast zakupiłem VPS-a zainstalowałem XAMPP-A i mam problem ponieważ po dokonaniu zamówienia maile nie dochodzą na poczte.
Wiem wiem bo jak wrzucam skrypt na hosting to normalnie wszystko smiga tylko mam problem z localhostem.
Znalazłem pewien sposób konfiguracji XAMPP-A pod GMAIL http://expertester.wordpress.com/2010/07/07/how-to-send-email-from-xampp-php/
Wszystko zrobiłem tak jak w opisie założylem maila na GMAIL i niestety nadal nie dochodzą maile.
Plik php/php.ini
[mail function] ; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury ; SMTP = smtp.gmail.com ; smtp_port = 587
; For Win32 only. ; http://php.net/sendmail-from ;sendmail_from = rscshopeu@gmail.com
Plik xampp\sendmail\sendmail.ini
[sendmail]
; you must change mail.mydomain.com to your smtp server, ; or to IIS's "pickup" directory. (generally C:\Inetpub\mailroot\Pickup) ; emails delivered via IIS's pickup directory cause sendmail to ; run quicker, but you won't get error messages back to the calling ; application.
smtp_server=smtp.gmail.com
; smtp port (normally 25)
smtp_port=587
; SMTPS (SSL) support ; auto = use SSL for port 465, otherwise try to use TLS ; ssl = alway use SSL ; tls = always use TLS ; none = never try to use SSL
smtp_ssl=auto
; the default domain for this server will be read from the registry ; this will be appended to email addresses when one isn't provided ; if you want to override the value in the registry, uncomment and modify
;default_domain=mydomain.com
; log smtp errors to error.log (defaults to same directory as sendmail.exe) ; uncomment to enable logging
error_logfile=error.log
; create debug log as debug.log (defaults to same directory as sendmail.exe) ; uncomment to enable debugging
;debug_logfile=debug.log
; if your smtp server requires authentication, modify the following two lines
; force the sender to always be the following email address ; this will only affect the "MAIL FROM" command, it won't modify ; the "From: " header of the message content
force_sender=
; force the sender to always be the following email address ; this will only affect the "RCTP TO" command, it won't modify ; the "To: " header of the message content
force_recipient=
; sendmail will use your hostname and your default_domain in the ehlo/helo ; smtp greeting. you can manually set the ehlo/helo name if required
Temat do zamknięcia uporałem się z problemem. Może ktos będzie miał ten sam problem to podam rozwiązanie. Wszystko w kodzie jest dobrze tylko zapomniałem odkomentować powinno wyglądać tak:
php.ini
[mail function] ; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury SMTP = smtp.gmail.com smtp_port = 587
; For Win32 only. ; http://php.net/sendmail-from » sendmail_from = rscshopeu@gmail.com