Page 1 of 1

How to configure the mail server

Posted: Sun Aug 10, 2008 12:51 am
by snowball77
Hi
I am extremely green on all this stuff.

I was just trying to run the simple form with an attachement and got this error

Fatal error: Uncaught exception 'Swift_ConnectionException' with message 'The SMTP connection failed to start [your_smtp_server.tld:25]: fsockopen returned Error Number 4 and Error String ''' in /home/threerob/public_html/lib/Swift/Connection/SMTP.php:309 Stack trace: #0 /home/threerob/public_html/lib/Swift.php(216): Swift_Connection_SMTP->start() #1 /home/threerob/public_html/lib/Swift.php(101): Swift->connect() #2 /home/threerob/public_html/handle_form.php(56): Swift->__construct(Object(Swift_Connection_SMTP)) #3 {main} thrown in /home/threerob/public_html/lib/Swift/Connection/SMTP.php on line 309

It looks like i need to configure my mail server.

WHERE ON EARTH DO I DO THIS

I need to change this to

Change you mail server from

your_smtp_server.tld:25

to mail.mydomain.com

I expect there is a config file somewhere I just am getting lost finding it.

Can someone help me please?

Re: How to configure the mail server

Posted: Sun Aug 31, 2008 6:37 am
by Trance-formation
if you still need help with this, I'm thinking you don't need to configure your mail server, just set up the connection properly in your swiftmailer code... can you post the the code as you use it on your server (with any usernames and passwords removed, obviously)?

Re: How to configure the mail server

Posted: Mon Sep 01, 2008 2:53 pm
by snowball77
Hi Thanks for replying.
I fix it up.

I was using the tutorial for emails and attachments and there was a place within the handle_form.php section that needed to be set up.

That was basically what I was looking for, but didn't follow the instructions properly

A