CodeIgniter Forums
Sending SMTP e-mail on 1and1.com server - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: Sending SMTP e-mail on 1and1.com server (/showthread.php?tid=29081)



Sending SMTP e-mail on 1and1.com server - El Forum - 03-29-2010

[eluser]cxb450[/eluser]
I have a Linux Hosting account at 1and1.com, and I'm writing the code locally on a Vista Box running the latest WAMP installation. I switched over to PHP5.

But to authenticate the user, I'm trying to send an e-mail with a link to click and I am having no luck. The 1and1.com server requires authentication, and I don't think CodeIgniter supports that.

So when I pass the server, user, pass parameters and the message and to link and all, I call the send function as shown in the CodeIgniter online docs. So far I've only ever gotten it to time out. I'm not sure where the problem is, but I'm assuming I'm missing something that has to do with 1and1 configuration. I was going to install phpmailer as a library in codeigniter, but I'm looking to see if I can do it with just using straight up CodeIgniter.

Does anyone have experience sending email from php code on a 1and1 server? If so, is there anything in particular (the user authentication is what I'm thinking) I need to consider? I'm only timing out, never getting any other errors. I left the smtp folder to default because 1and1 says their's is set the same way. Also, I define the 'smtp' protocol. Any help is much appreciated!

Chris


Sending SMTP e-mail on 1and1.com server - El Forum - 03-29-2010

[eluser]cxb450[/eluser]
I ran netstat to see if any ports are open while the script is running, and I'm not seeing my SMTP port 25 in the list. So I don't think it's getting out of the system, but as far as I know I opened the port in my firewall.


Sending SMTP e-mail on 1and1.com server - El Forum - 03-29-2010

[eluser]cxb450[/eluser]
Well geee, I upload it to the server and it works there. But I still wonder how I get it to work on a local machine.


Sending SMTP e-mail on 1and1.com server - El Forum - 05-01-2010

[eluser]bennyhill[/eluser]
Did you ever figure out how to send email from codeigniter on 1and1? I can't seem to get it to work? What does your email config look like? My send mail function is in a model, does that matter?


Sending SMTP e-mail on 1and1.com server - El Forum - 08-15-2010

[eluser]Unknown[/eluser]
I've just been working through the Jeffrey Wade tutorials (excellent by the way)

I couldn't get the email library to work with 1and1 hosting using;

$config = Array(
'protocol'=>'smtp',
'smtp_host'=>'auth.smtp.1and1.co.uk',
'smtp_port'=>'25',
'smtp_user'=>'[email protected]',
'smtp_pass'=>'changed'
);

I just kept getting timeouts and mad errors.

On a whim I tried

$config = Array(
'protocol'=>'mail',
'smtp_host'=>'auth.smtp.1and1.co.uk',
'smtp_port'=>'25',
'smtp_user'=>'[email protected]',
'smtp_pass'=>'changed'
);

and bingo bango bongo it works!

go me!

Hope this helps


Sending SMTP e-mail on 1and1.com server - El Forum - 08-15-2010

[eluser]Unknown[/eluser]
okay okay today tonight I promise my busy ass is gonna give yall the greatness..
Watch The Expendables Movie Online for Free
Watch Scott Pilgrim Vs. the World Movie Online for Free


Sending SMTP e-mail on 1and1.com server - El Forum - 09-26-2010

[eluser]hooflung64[/eluser]
Code:
$config = Array(
        ‘protocol’=>‘smtp’,
        ‘smtp_host’=>‘smtp.1and1.com’,
        ‘smtp_port’=>‘25’,
        ‘smtp_user’=>‘[email protected]’,
        ‘smtp_pass’=>‘changed’
        );

This works on the US 1and1.com for one of my clients who refuses to leave 1and1's shoddy hosting.