Welcome Guest, Not a member yet? Register   Sign In
Sending SMTP e-mail on 1and1.com server
#1

[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
#2

[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.
#3

[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.
#4

[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?
#5

[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
#6

[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
#7

[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.




Theme © iAndrew 2016 - Forum software by © MyBB