/    Sign up×
Community /Pin to ProfileBookmark

mail function problem ( linux , godaddy )

in this php code the data is posted from a form and will be mailed to my e-mail

but my problem is that when Using the php mail function with godaddy , i did not receive the mail

the system is linux

and for more details for phpinfo click on the following link

[url]http://projects.kayandco-egypt.com/untitled2_old.php[/url]

really i need help to fix this problem today…..

i tried to see many forums but i dont have the solutions yet
i tried also to use phpmailer but it did not help me

[B]if anyone have a function or any solution for this problem plz send for me[/B]

[code=php]<?
session_start();
header(“Cache-control: private”); // IE 6 Fix

if ($_POST[“name”])

{

foreach ($_POST as $key => $value) {

$$key = trim($value);
$_SESSION[$key . “_b”] = $value;
// echo “Key: $key; Value: $value<br />n”;

}

$kind = “mail”;

$messageo = ‘

<html>
<head>
<style>

body {

font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #737373;
text-align: justify;
width: auto;
margin-right: 0px;
margin-left: 0px;
margin-top: 10px;
margin-bottom: 10px;
line-height: 17px;
}
.padding {
padding-left: 30px;
background-color: #cdcdcd;
color: #023061;
height: 30px;
vertical-align: middle;
}
.padding2 {
padding-left: 30px;
background-color: #E5E5E5;
color: #023061;
height: 30px;
}

.title1 {
font-size: 17px;
font-weight: bold;
color: #023061;
padding-top: 20px;
padding-bottom: 25px;
font-family: Arial, Helvetica, sans-serif;
text-transform: uppercase;
}

</style>

</head>
<body>
<div class=”title1″ align=”center”>mail</div>
<table width=”50%” border=”0″ cellspacing=”1″ cellpadding=”4″ align=”center”>
<tr class=”padding”>
<td width=”30%”><strong>Name <b></strong> </td>
<td >’ . $name . ‘</td>
</tr>

<tr class=”padding2″>
<td ><strong>E-mail </strong> </td>
<td >’ . $emal . ‘</td>
</tr>

<tr class=”padding”>
<td><strong> City </strong> </td>
<td>’ .$city . ‘</td>
</tr>
<tr class=”padding2″>
<td><strong>Country</strong> </td>
<td>’.$country.'</td>
</tr>
<tr class=”padding”>
<td><strong>Telephone</strong> </td>
<td>’ . $tel.'</td>
</tr>
</table>

</body>
</html> ‘;

//echo $message;

$headers .= “MIME-Version: 1.0rn”;
$headers .= “Content-type: text/html; charset=windows-1256rn”;
$headers .= “From: [email protected]>rn”;
$headers .= “cc: [email protected]”;

$ok = mail(“[email protected]”, $kind, $messageo, $headers);

}
header(“Location: welcome.php”);
?>

[/code]

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@SyCoJan 14.2009 — Turn up error handling to E_ALL and debug by cutting out all extraneous code. Your issue is with the mail function so first check it works in a stand alone script.
[code=php]
<?
mail("[email protected]", "my subject" , "my message");
?>
[/code]

If it sends you issue is elsewhere, if it doesn't contact GoDaddy. On GoDaddy Linux hosting, the mail() function apparently works.

GoDaddy are such a bunch of arse monkeys, why does anyone use them? I had to buy back a domain that had expired after their system failed to send me emails. I'll never spend another penny with them.

Easiest solution, host with a reliable company.
Copy linkTweet thisAlerts:
@tracknutJan 14.2009 — 
GoDaddy are such a bunch of arse monkeys, why does anyone use them? I had to buy back a domain that had expired after their system failed to send me emails. I'll never spend another penny with them.

Easiest solution, host with a reliable company.[/QUOTE]


Sorry to hear of your problems with them, but some of us find GoDaddy extremely reliable. Sure, some folks will have issues with any host, and the bigger the host, the more folks you'll find with problems.

Dave
Copy linkTweet thisAlerts:
@SyCoJan 14.2009 — It was more their couldn't care attitude that forced me to move. They screwed up and I had to pay $80 to fix their mistake. They Entirely blamed me and took no responsibility for the error, yet it was was not my fault in any way. So they get $80 and I move hundreds of dollars worth of domains to another host and will never use or recommend them again.

I understand things go wrong, I'm an IT professional. It's how they get fixed that matters to me.
Copy linkTweet thisAlerts:
@tracknutJan 14.2009 — I don't blame you. I was just responding to your question "why does anyone use them?" and stating that not all of us have had issues - that's why we use them.

Dave
Copy linkTweet thisAlerts:
@john_zakariaauthorJan 15.2009 — i checked my sapn folder and junk folders and i did not receive any mails

i want to know if this problem exists on php.ini

or in my code?

where??

i want to solve it ... ?
×

Success!

Help @john_zakaria spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...