LiveZilla Live Help
 


Go Back   Chime Host - Web Hosting Forum > World Wide Web > Programming / Scripting / Coding Forum > PHP
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

PHP The most widely used server-side programming language for web applications.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-24-2007, 06:18 PM
Junior Member
 
Join Date: May 2007
john s is on a distinguished road
Default PHP Mail() function problem?

I have been trying to use the php mail() function to send details from an HTML form. Trouble is that it just wont work! It says it is working and is sending the mail, but I have never recieved any mail! Tried it with several email accounts and a couple of web hosting accounts. Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-24-2007, 08:06 PM
Junior Member
 
Join Date: May 2007
eclipseagent is on a distinguished road
Default

And you don't provide us your code? Would something like that fo ryou work?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-24-2007, 09:08 PM
spl spl is offline
Junior Member
 
Join Date: May 2007
spl is on a distinguished road
Default

It's probably a PHP configuration problem. You'll need to contact the web host to ensure you can send SMTP mail from their server using PHP.Additionally, you don't specific the code you're using but you may want to try adding header information if you're using a Windows server.PHP mail function: http://us2.php.net/manual/en/ref.mail.php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-28-2007, 03:05 PM
Member
 
Join Date: Apr 2007
drixie is on a distinguished road
Default

Lets see the code you are using. it sure is a problem with the code if you have tried different web hosting accounts. but ideally, the php mail() funcion should follow basically the following format: mail(address, subject, message). Please crosscheck your code. If it is still not working. paste it here
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-08-2008, 09:03 PM
Junior Member
 
Join Date: Jun 2008
bokepwap is on a distinguished road
Default

This code the sample of php mail spamm..
this script not recomended
PHP Code:
<?php
// PHP Mail Spam v.2 Beta
// Created by Imzers Crew [BugCLones and nababan]
// Info and Support: http://wap.imzers.us
$email $_POST['to'];
$mail_message $_POST['message'];
$senders_name $_POST['name'];
$senders_email $_POST['email'];
$mail_subject $_POST['subject'];

$senders_name preg_replace("/[^a-zA-Z0-9s]/"" "$senders_name);
$senders_email preg_replace("/[^a-zA-Z0-9s.@-_]/"" "$senders_email);
$mail_message stripslashes($mail_message);
$headers "From: $senders_name <$senders_email>
"
;
$headers .= "Hallo...

"
;
$jumlah $_POST['jumlah'];
$i=0;
if (
$_SERVER["REQUEST_METHOD"]=="POST")
{
if (
$jumlah 2)
{
$mail_subject++;
$mail_subject $mail_subject++;
}

{
do
{
$i++;
mail($email$mail_subject$mail_message$headers);
}
while (
$i $jumlah);
echo 
"email was sent sebanyak $jumlah!<br/>";
exit;
}

}
echo 
"<form action="{$_SERVER["PHP_SELF"]}dan" method="post">";
echo 
"Dari Nama:<br/>
"
;
echo 
"<input type="text" name="name" size="40" /><br/>
"
;
echo 
"Dari Email:<br/>
"
;
echo 
"<input type="text" name="email" size="40" /><br/>
"
;
echo 
"Kepada:<br/>
"
;
echo 
"<input type="text" name="to" size="40" /><br/>
"
;
echo 
"Judul:<br/>
"
;
echo 
"<input type="text" name="subject" size="40" /><br/>
"
;
echo 
"<br/>Message:<br/><textarea name="message" rows="20" cols="40"></textarea><br/>
"
;
echo 
"<br/>Jumlah:<br/>
"
;
echo 
"<input type="text" name="jumlah" size="12" />
"
;
echo 
"<br/>
"
;
echo 
"<input type="submit" value="Kirim!" name="post" />
"
;
echo 
"</form>
"
;
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHOTOBLOG: Wordpress or aminus3? Carmela Programming / Scripting / Coding Forum 0 01-24-2010 09:50 AM
This new linux distro is really driving me crazy? Linebacker Linux, BSD, other *nixes & Open Source Software 3 01-01-2010 10:20 PM
Can the LG KS360 be used as an Alltel prepaid phone? Keri LG 0 12-16-2009 05:49 AM
does anyone know the name of this website? Brooke Internet 0 12-09-2009 02:21 AM


All times are GMT +1. The time now is 09:06 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ChimeHost, a Profuse Solutions LLC company