Author Topic: SMTP problems  (Read 2402 times)

fengy

  • Freshman
  • *
  • Posts: 42
    • View Profile
SMTP problems
« on: July 02, 2010, 02:06:50 am »
Hi guys,

I'm new to Feng and I really love it! You've done a great job

I'm using Feng 1.7
Everything works fine except for Sending mails.
Currently:
 - I can receive my mails (using POP3 server)
 - I _can't_ send e-mail (using an SMTP server)

I have the following error:
"#1 ERROR: Error: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to mail.host.bg (Connection refused) in '/www/intra/fengoffice/library/swift/lib/Swift/Connection/SMTP.php' on line 149 (error code: 2)"


I did a test of the Mail Settings:
when I use PHP Default Settings  - It works - Fend sends the mail. Feng also sends notifications successfully.
but when I use SMTP Settings - it keeps saying "Connection refused"

I'm sure that the SMTP server, port, user and pass are correct.
With Thunderbird I can send mails with no problem.


I guess it is something to deal with my hosting provider, firewall or something... I tried to connect to localhost:25 but I got the same exception.

Can you plase have a look and give me a suggestion how to fix it.

Thanks,
Best
Fengy
« Last Edit: July 02, 2010, 02:19:46 am by fengy »

fengy

  • Freshman
  • *
  • Posts: 42
    • View Profile
Re: SMTP problems
« Reply #1 on: July 02, 2010, 02:17:56 am »
is there a way to use the 'Default PHP Settings" when Sending an Email in the Email module....currently these settings are used for Feng notifications only
...or maybe I'm missing something?

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: SMTP problems
« Reply #2 on: July 02, 2010, 10:37:03 am »
No way to send non-notification email without smtp.

You might not need authentication for SMTP, or need a secure connection, or have ports blocked ...

fengy

  • Freshman
  • *
  • Posts: 42
    • View Profile
Re: SMTP problems
« Reply #3 on: July 04, 2010, 10:28:44 am »
Hi there,

I asked my hosting provider and they told me that ports(25 & 465) are blocked due to anti-spam issues.

They told me that I should use mail() or sendmail
Can I configure Feng to work with sendmail for outgoing mails....Swift Mailer seems to support sendmail transport ?

or should I request from my hosting provider a workaround?
« Last Edit: July 04, 2010, 12:04:40 pm by fengy »

cabeza

  • Administrator
  • Hero Member
  • *****
  • Posts: 1004
    • View Profile
    • Feng Office
Re: SMTP problems
« Reply #4 on: July 05, 2010, 10:11:51 am »
I guess you could, but you would have to hack it yourself ...
It really depends, but looks like you might end up getting your sent email into recipients SPAM box more frequently than you wish.