Mail a VPS

azonic

Avatar: azonic

2014-04-16 21:51

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.


Jak zaradzić?

Z góry dziękuje

» Quick.Cart v6.x

selekcjoner

Avatar: selekcjoner

2014-04-17 12:25

To jest problem XAMPP-A, nie skryptu.
Szukaj w google pod "konfiguracja poczty XAMPP"

simlution.org

azonic

Avatar: azonic

2014-04-18 13:47

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]
XAMPPComment 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 quickerbut 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 registryuncomment 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 authenticationmodify the following two lines

auth_username
=rscshopeu@gmail.com
auth_password
=haslo

; if your smtp server uses pop3 before smtp authenticationmodify the 
following three lines.  do not enable unless it is required.

pop3_server=smtp.gmail.com
pop3_username
=rscshopeu@gmail.com
pop3_password
=haslo

force the sender to always be the following email address
this will only affect the "MAIL FROM" commandit 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

hostname
=smtp.gmail.com

selekcjoner

Avatar: selekcjoner

2014-04-18 14:11

U góry jest taki duży napis:
Support forum for Quick.Cart and Quick.Cms :)

simlution.org

azonic

Avatar: azonic

2014-04-18 17:07

Co racja to racja nie przemyslałem.

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]
XAMPPComment 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 

maplewang

Avatar: maplewang

2017-04-20 04:56

So I need install sendmail in my server?
Can I just use Pear Mail to send via ssl?

Do góry
o nas | kontakt