|
 |
|
Dev Articles Community Forums
> Web Design
> Web Hosting
|
Php mail function not working with godaddy.com
Discuss Php mail function not working with godaddy.com in the Web Hosting forum on Dev Articles. Php mail function not working with godaddy.com Web Hosting forum for discussing praise and problems with web hosts, and making recommendations for where to find reliable hosting solutions.
|
|
 |
|
|
|
|

Dev Articles Community Forums Sponsor:
|
|
|

March 4th, 2007, 02:34 AM
|
|
Registered User
|
|
Join Date: Mar 2007
Posts: 2
Time spent in forums: 20 m 54 sec
Reputation Power: 0
|
|
Php mail function not working with godaddy.com
I was suffering during the past week with the problem of sending email from my site, my site is hosted with godaddy.
The php mail command seems not working probably, although some times it does.
The command does not return any error, but my emails never reach to detonations.
I have contacted the support team several times, but seem that they do not understand what I am talking about.
Any body here can help me?

|

June 15th, 2007, 02:23 AM
|
|
Registered User
|
|
Join Date: Jun 2007
Posts: 1
Time spent in forums: 4 m 30 sec
Reputation Power: 0
|
|
|
Check your hosting settings...you need PHP Linux, not ASP windows
google unofficial godaddy test site for more info
peace out
|

August 10th, 2007, 03:59 PM
|
|
Registered User
|
|
Join Date: Aug 2007
Posts: 1
Time spent in forums: 1 m 46 sec
Reputation Power: 0
|
|
Sending Email using PHP from Godaddy host
Godaddy has the php.ini file configured with all the information.
This is the code to send a email using php is:
PHP Code:
<?
include_once("Mail.php");
...
$to = "support@software506.com";
$subject = "Email from php";
$body = "Hi \n this is a test";
mail($to, $subject, $body);
...
this just works in the godaddy host, no for test locally.
it works for me.
just try it.
|

November 13th, 2007, 10:55 PM
|
|
Registered User
|
|
Join Date: Nov 2007
Posts: 1
Time spent in forums: 19 m 41 sec
Reputation Power: 0
|
|
Sending Email using PHP from Godaddy host
Hi guys this is what you have to use.
You need to use Pear thats already included on the godaddy hosting and then inlcude the mail.php
Here is a function to help you: This will even allow you to send html emails
require_once "Mail.php";
function emailHtml($from, $subject, $message, $to) {
$host = "localhost";
$username = "";
$password = "";
$headers = array ('MIME-Version' => "1.0", 'Content-type' => "text/html; charset=iso-8859-1;", 'From' => $from, 'To' => $to, 'Subject' => $subject);
$smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => false));
$mail = $smtp->send($to, $headers, $message);
if (PEAR::isError($mail))
return 0;
else
return 1;
}
Have fun
Brandon Tapera
|

January 9th, 2008, 05:26 AM
|
|
Registered User
|
|
Join Date: Mar 2007
Posts: 2
Time spent in forums: 20 m 54 sec
Reputation Power: 0
|
|
Sorry guys, I discovered the reason of this problem. The problem was because the limit set to 1000 emails per day.
Thank you all for your participation.

|

January 20th, 2011, 02:44 PM
|
|
Registered User
|
|
Join Date: Jan 2011
Location: Zimbabwe
Posts: 2
Time spent in forums: 43 sec
Reputation Power: 0
|
|
|
Defloration - Choky White
Defloration – Choky White http://world-teenies.net/upload/images/78662135617513722553.jpg http://www.fastpic.info/image/20100418/df977fe073.jpg http://world-teenies.net/upload/images/41611989483184148133.jpg http://d.imagepix.org/Files/Images/d/f/4/df4aa9b75989b7283a2fe6c6aa22c4bc.jpg
Code:
Fileserve http://www.fileserve.com/file/uJfC4Mf Hotfile http://hotfile.com/dl/86923321/c0d3c43/Choky_White_1133.rar.html
|

February 28th, 2011, 02:16 PM
|
|
Registered User
|
|
Join Date: Feb 2011
Posts: 1
Time spent in forums: 23 m 53 sec
Reputation Power: 0
|
|
|
Didn't work then did
I was able to send email with the following:
$to = "jbowers@myemail.com";
$subject = "Email from php";
$body = "Hi this is a test";
mail($to, $subject, $body);
At first it didb't work. Then it did.
|

August 17th, 2011, 08:43 PM
|
|
Registered User
|
|
Join Date: Jul 2011
Posts: 6
Time spent in forums: 1 h 31 m 49 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by jbowers I was able to send email with the following:
$to = "jbowers@myemail.com";
$subject = "Email from php";
$body = "Hi this is a test";
mail($to, $subject, $body);
At first it didb't work. Then it did. | Congrats its working well..
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|