PHP mail()

Status
Not open for further replies.

nmntex

New Member
Messages
1
Reaction score
0
Points
1
Hi, I am new to x10 and I am trying to send and automated email using smtp (secure or non-secure). Yesterday it was working but after about 5 tries it stopped sending the emails. I have checked the email settings and gives me the server for and port numbers for both SSL and non-SSL. I have used ini_set to add the port number and server name but still did not work. It says the 'server requires authentication' on the cPanel email config. Although last night I did not use ini_set to set the server or port numbers. I just used

mail('send@email.com', 'subject', 'message')

That seemed to work fine.

Am I doing anything wrong? and I couldn't get it to send through SSL and I wasn't looking to user PHPMailer or PEAR
 

Skizzerz

Contributors
Staff member
Contributors
Messages
2,928
Reaction score
118
Points
63
We restrict your ability to connect to external SMTP servers (such as gmail) from your Free Hosting account; all emails sent from your account must either make use of PHP's mail() function or be sent using SMTP to localhost on port 25 to make use of our internal mail server.

We do this so that we can scan outgoing email for spam and discard such spam before it hits the outside world, and we are unable to do that if people were allowed to use external SMTP servers. If too much spam is detected as coming from a server, the server's IP (which is shared between thousands of accounts) gets blacklisted and nobody can get mail through then no matter how legitimate it is. By forcing users to use our internal mail server and scanning outgoing mails for spam, we are able to better prevent our server's IPs from being added to blacklists, which as a whole means email is more reliable on Free Hosting.
 
Status
Not open for further replies.
Top