CodeIgniter Forums
GoDaddy & CI - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: GoDaddy & CI (/showthread.php?tid=36875)



GoDaddy & CI - El Forum - 12-17-2010

[eluser]Matt Larsen[/eluser]
Hi,

I've setup a website hosted with GoDaddy. Everything is working fine except for sending emails. I'm using the CodeIgniter Email class, with mailtype: "text" and protocol: "mail". When the emails are sent, a success message is displayed from the email->print_debugger() function and everything seems fine. However, the mail never arrives.

Config Code: (located in "application/config/email.php" - autoloaded settings)
$config['mailtype'] = 'text';
$config['protocol'] = 'mail';

Controller Code:
//email user
$this->email->from('[email protected]');
$this->email->to('[email protected]');
$this->email->subject('Test Email');
$this->email->message('Test Email Body Text');
$this->email->send();
echo $this->email->print_debugger();

Is there anything I'm doing obviously wrong - like should I be using an SMTP server instead of the PHP mail() function? I've tried using the "relay-hosting.secureserver.net" SMTP server as suggested by GoDaddy, but to no avail. When using this SMTP server, I get the following error: "Unable to send data: .
451 See http://pobox.com/~djb/docs/smtplf.html.
The following SMTP error was encountered: 451 See http://pobox.com/~djb/docs/smtplf.html.
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method." I've double checked that the config file actually gets loaded. I've even tried using sendmail (yes I'm on linux), this returns the same result as the mail() function.

Anyone else having problems?
Regards,
Matt


GoDaddy & CI - El Forum - 12-17-2010

[eluser]skunkbad[/eluser]
[quote author="Matt Larsen" date="1292659749"]... like should I be using an SMTP server instead of the PHP mail() function? ...[/quote]

All you gotta do is call or write to Godaddy, and they will tell you their requirements for sending email.

As a side note, you will only learn to hate Godaddy more and more, and you'd be better off getting your hosting from somebody else. I think I hate Godaddy hosting worse than IE6. At least IE6 has an excuse. The only nice thing I have to say about Godaddy is that they will give you a refund for your unused time, so there's really no reason to stay with them.


GoDaddy & CI - El Forum - 12-17-2010

[eluser]Matt Larsen[/eluser]
Hi Skunkbad,

Thanks for the quick reply. I have already contacted them and they told me to use the "relay-hosting.secureserver.net" server. They said if it didn't work with that server, the problem was in my code.

Now, some good news - I figured out that the only time the emails failed were when I sent the email from and to the same address. When I sent if from my bigpond address to my hotmail - it worked!
So the php mail() function works! Thanks very much for your time.

Matt
PS: I had to change the CI_Email class so that it sent the content type as "text/html" instead of multipart/alternative. Download a great replacement library here: http://codeigniter.com/?ACT=51&fid=51&aid=6118_i92Up9qf0wuuKdnLZq8X&board_id=2


GoDaddy & CI - El Forum - 12-18-2010

[eluser]skunkbad[/eluser]
[quote author="Matt Larsen" date="1292671846"]...if it didn't work with that server, the problem was in my code.[/quote]

I think this is the first thing they learn to say to any customer with a problem. I've heard it many times. I had hosting accounts with them a few years ago. What made me leave was when I proved to them that their server had a problem, but they wouldn't fix it. They claim that they won't discuss any of the server details with their customers, so I switched to one that would:

MDD Hosting

If you decide to switch, use code "half-price" at checkout for 50% off your first year of hosting.

The owner of MDD Hosting (Mike) personally handles many of the technical support issues. He'll tell you anything you want to know, and in many cases will probably tell you more than you can understand. I've had instances where I did have a problem with my code, and he helped me fix it. What other host is going to do that? Instead of saying, "It's your problem" like Godaddy would, MDD Hosting helps its customers. Now I'm not saying that this host is perfect, because I don't think there is such a thing, but it's the best I've found.

*DISCLAIMER*
I have an affiliate account with MDD Hosting. If you click on the link I put up there, and you buy hosting, I get 15 dollars. If you don't want to use the affiliate link, but are interested in MDD Hosting, just go to http://www.mddhosting.com.


GoDaddy & CI - El Forum - 12-18-2010

[eluser]pickupman[/eluser]
I have issues in the past with GD as well. It seems some customers buy hosting but not email services. If you haven't signed up for email, alot of servers will block your from address as there is not a valid mx address. That's why it's simple to setup a Google Apps account for free, and create your MX entries for your domain.

Also, CloudIgniter is a great hosting. Started by some fellas here on the boards. Even $5/mo accounts get ssh access with HG/SVN access. Only downside is they don't support SSL on the shared plans right now.


GoDaddy & CI - El Forum - 03-24-2011

[eluser]king Rony[/eluser]
Hi I am also using godaddy account but my problem is whenever I click on any of the link it shows error "No Input file specified" can you plese help me regarding this issue link to my site is http://cutjobs.com


GoDaddy & CI - El Forum - 03-25-2011

[eluser]pickupman[/eluser]
[quote author="king Rony" date="1301047302"]Hi I am also using godaddy account but my problem is whenever I click on any of the link it shows error "No Input file specified" can you plese help me regarding this issue link to my site is http://cutjobs.com[/quote]
Seems like you got it fixed because your signup link is working.


GoDaddy & CI - El Forum - 03-27-2011

[eluser]king Rony[/eluser]
[quote author="pickupman" date="1301083682"][quote author="king Rony" date="1301047302"]Hi I am also using godaddy account but my problem is whenever I click on any of the link it shows error "No Input file specified" can you plese help me regarding this issue link to my site is http://cutjobs.com[/quote]
Seems like you got it fixed because your signup link is working.[/quote]

Yes thanks ....I sort of fixed my htaccess file and got it working...My problem was because i was using windows machine and when i was trying to create htaccess file it was not working...finally i got it fixed as I created the htaccess file by going into the command promt and typing copy con .htaccess cntrl->Enter