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
#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


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

Forum Jump:


Users browsing this thread: 1 Guest(s)