Sending failed using mail() as PHP's default mail() function

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
SoHo
Forum Newbie
Posts: 2
Joined: Thu Aug 07, 2008 4:19 pm

Sending failed using mail() as PHP's default mail() function

Post by SoHo »

Hi, I'm using Swift 3.1.3 with PHP 5.2.6 and have a problem with making it work. I'm getting following error:

Sending failed using mail() as PHP's default mail() function returned boolean FALSE

I know that mail() works on the server and sendmail_path seems to be correct. Any suggestions?
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

Re: Sending failed using mail() as PHP's default mail() function

Post by susrisha »

Two things dude.. either u didnot set the SMTP listener right or the the internet provider has a default email service which will usually disable any transactions through port 25 which happens to be the port for sending emails..

config file settings to be checked are:

smtp listening port - check if it is 25 and if it is enabled..
SoHo
Forum Newbie
Posts: 2
Joined: Thu Aug 07, 2008 4:19 pm

Re: Sending failed using mail() as PHP's default mail() function

Post by SoHo »

I have smtp port 25 and it is enabled. mail() command works fine. I should also probably mention that I'm using SwiftMailer component with cakePHP if it makes a difference.
Post Reply