godaddy - php mailer

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kippy
Forum Commoner
Posts: 84
Joined: Wed Jun 07, 2006 8:25 pm

godaddy - php mailer

Post by kippy »

Does anyone know how to work around/with the godaddy php mailer? I have a php script that works perfectly fine with my host(not godaddy), but shows no signs of life on godaddy. Any help is appreciated!
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

This sounds like something you should discuss with your host.

Otherwise, are you getting any error messages? PHP mailer has a debugging feature, if memory serves.

Code: Select all

$phpmailer->debug = true;
or something along those lines.



Out of habbit, you should be using cough cough swiftmailer.org
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

GoDaddy make it a near impossibility to use anything other than mail() unless you're not on a basic shared hosting plan. It sucks :( I've just recently dealt with a GoDaddy customer who was having problems with creating sockets and starting processes. Swift does have a mail() connection though.
kippy
Forum Commoner
Posts: 84
Joined: Wed Jun 07, 2006 8:25 pm

Post by kippy »

so there is no way to use the following with godaddy?

Code: Select all

$msg="Some message.\n\n";
$to="something@something.com";
$subject="Subject";
$mailheaders="From: www.something.com Site <>\n";
kippy
Forum Commoner
Posts: 84
Joined: Wed Jun 07, 2006 8:25 pm

Post by kippy »

sorry forgot to include:

Code: Select all

mail($to, $subject, $msg, $mailheaders);
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

kippy wrote:sorry forgot to include:

Code: Select all

mail($to, $subject, $msg, $mailheaders);
Re-read my reply. I didn't say mail() won't work, I said "aything other than mail()" ;)
kippy
Forum Commoner
Posts: 84
Joined: Wed Jun 07, 2006 8:25 pm

Post by kippy »

So how does swift mailer work? Does it have to be installed ona server, etc?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

kippy wrote:So how does swift mailer work? Does it have to be installed ona server, etc?
It's PHP code. You just upload it to your host's server and run it like any other PHP code ;) It won't work with SMTP or Sendmail on GoDaddy servers in just the same way PHPMailer won't work on their servers. You'll probably get Swift's NativeMail connection working in just the same way mail() should work though.

GoDaddy bug me... but I guess when they sell their plans for peanuts they can't be expected to provide anything very flexible.
kippy
Forum Commoner
Posts: 84
Joined: Wed Jun 07, 2006 8:25 pm

Post by kippy »

so how did you get yours to work? I mean, you would think sending emails wouldnt be that difficult...
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

kippy wrote:so how did you get yours to work? I mean, you would think sending emails wouldnt be that difficult...
I write Swift Mailer. I'm not sure what you mean... I don't use GoDaddy so I haven't been able to get it working on GoDaddy servers. Are you saying mail() doesn't work neither? Have you spoken to GoDaddy about this yet?
kippy
Forum Commoner
Posts: 84
Joined: Wed Jun 07, 2006 8:25 pm

Post by kippy »

Just FYI, in regards to the godaddy mail() issue. I was able to have godaddy transfer the account from a windows server to a linux server and the mai() function works perfectly on the linux server. I hope this helps others that come accross same issue.
Post Reply