This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

HOW TO send emails with PHP script using mail() function
#1
HOW TO send emails with PHP script using mail() function
And here it is, the resume of the Sentora PHP send mail adventure.
So you guys, if you have a PHP contact form in one of your websites hosted in SENTORA for Windows and you are having problems with it, just try the following solution:

Edit PHP.ini

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

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = me@example.com

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

This will not affect the hMailServer/SENTORA email accounts

Of course that you'll need to open all the relevant ports and probably also to create an inbound/outbound rule for SENTORA in Windows Firewall.

How about to put them all together?

Ports: 20-21, 25, 56, 80, 110, 143, 443, ...
Reply
Thanks given by:
#2
RE: HOW TO send emails with PHP script using mail() function
not very useful it is better to send emails directly in smtp
when you use the mail function in 90% of cases you are e-mail this is found in spam is the client
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
how to run and handle script php 5.2 in zpanelcp ...?? lathif 1 6 ,299 09-26-2015, 01:55 AM
Last Post: TGates
Sending emails but not receiving them - WINDOWS Miow5 2 10 ,361 08-19-2015, 11:12 AM
Last Post: zHostingSolutions

Forum Jump:


Users browsing this thread: 1 Guest(s)