Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  yordan : (19 June 2013 - 02:28 PM) Long Life To Asta New Era
@  agyat : (19 June 2013 - 01:58 PM) New Era Start At Asta Or Asta Start In New Era. :unsure:
@  yordan : (16 June 2013 - 05:41 PM) You're Welcome, Agyat!
@  agyat : (16 June 2013 - 07:38 AM) Thanks Yordan...
@  velma : (16 June 2013 - 12:06 AM) I Have Asked Opa To Check For A Backup.. He'll Let Me Know Soon :)
@  velma : (16 June 2013 - 12:05 AM) T_T It Seems That Someone Has Deleted That Topic Since I Found The Url Of The Topic But It Gives Me An Error
@  yordan : (15 June 2013 - 10:31 PM) @velma : It's A Tuto On How To Create A Login Program.
@  yordan : (15 June 2013 - 10:31 PM) Happy Birthday To Youuuuuu Agyat!
@  yordan : (15 June 2013 - 10:31 PM) Ba$
@  agyat : (15 June 2013 - 04:41 PM) :(
@  agyat : (15 June 2013 - 04:41 PM) Where The Hall I Were? 15Th Is Almost At End And No-One Wished Me "happy Birthday"!!!
@  velma : (14 June 2013 - 10:39 AM) Which Tutorial Is He Searching For?
@  velma : (14 June 2013 - 10:38 AM) Which Tutorial Is He Searching For?
@  yordan : (14 June 2013 - 07:47 AM) Ok, Have A Look Tomorrow.
@  yordan : (13 June 2013 - 03:19 PM) @velma, Can You Have A Look At Feelay's Problem? Seems That His Tutorial Is Not Searchable Today.
@  Feelay : (13 June 2013 - 08:11 AM) Oh, Haha
@  velma : (12 June 2013 - 05:39 PM) T_T Lately My Levels Of Procrastination..... **sigh**
@  velma : (12 June 2013 - 05:38 PM) I'll Do It Later
@  velma : (12 June 2013 - 05:38 PM) Procrastinators.. People Who Keep Saying "i'll Do This In A Bit"
@  Feelay : (12 June 2013 - 02:05 PM) Deal Punishments To What?

Replying to Php Send Email Problem


Post Options

    • Can't make it out? Click here to generate a new image

  or Cancel


Topic Summary

Posted 06 February 2010 - 02:54 PM

Problem with php mail() clientPhp Send Email Problem

Hi,

Just today my website start to send blank emails to every member. I'm using the php() mail client. Is there any answer for that. Hope they didn't  hack  my site.

-question by Bart

danagym

Posted 23 January 2005 - 12:03 PM

mail ($GAdmin_email, $name.": ".$subject, $telefon, $organization, $message, "From:$sender_email");

I think the error lies in the way that the variables are being syntaxed, i think you can on ly have the 4 variaables in the argument.

It might be easier to construct these outside the mail() argument.

something like:
$subject = $name . " : " . $subject;
$message2 = $telfon . $organization . $message;
$from = "From: " . $sender_email . "\r\n";

mail ($GAdmin_email, $subject, $message2, $from);

i know its a longer way round but it might work, i would also check in the php manual to make check how arguments can be parsed.

<{POST_SNAPBACK}>


thanks A lot!it is perfect to me!
good luck!

pixelsmack

Posted 23 January 2005 - 11:48 AM

mail ($GAdmin_email, $name.": ".$subject, $telefon, $organization, $message, "From:$sender_email");

I think the error lies in the way that the variables are being syntaxed, i think you can on ly have the 4 variaables in the argument.

It might be easier to construct these outside the mail() argument.

something like:
$subject = $name . " : " . $subject;
$message2 = $telfon . $organization . $message;
$from = "From: " . $sender_email . "\r\n";

mail ($GAdmin_email, $subject, $message2, $from);

i know its a longer way round but it might work, i would also check in the php manual to make check how arguments can be parsed.

danagym

Posted 19 January 2005 - 05:26 PM

I have a problem with send e-mail form!
First it was designed only for name,email,subject and message entries!
Now I need to add organisation and phone to be sent to my email!
When I click the send button, it gives me that "mail" suposed to have 5 variables, and the message dont arrive!
please help!

here is a piece of code where is the error!

======
function SendEmailToUs(){
//-------------------------------
// Initialize variables
//-------------------------------
global $sFormErr;
global $GAdmin_email;
global $GEmails_subject;
global $isSent;

$sender_email = get_param("email");
$subject = get_param("subject");
$name = get_param("name");
$message = get_param("message");
$organization= get_param("organization");
$telefon= get_param("telefon");

if ($subject == "") $subject = $GEmails_subject;

if(!strlen($name))
$sFormErr .= "Вы пропустили поле Имя.<br>";
if(!strlen($sender_email))
$sFormErr .= "Вы пропустили поле Email.<br>";
if(strlen($sender_email) &&( !validEmail( $sender_email )) )
$sFormErr .= "Вы написали ваш email неправильно!.<br>";
if(!strlen($message))
$sFormErr .= "Вы пропустили поле Сообщение.<br>";
if(!strlen($organization))
$sFormErr .= "Вы пропустили поле Организация.<br>";
if(!strlen($telefon))
$sFormErr .= "Вы пропустили поле телефон.<br>";
if(strlen($sFormErr)) return;

>>>>> here is the problem>>>
mail ($GAdmin_email, $name.": ".$subject, $telefon, $organization, $message, "From:$sender_email");
$isSent = 1;
}
=====

thnaks!really need help guys!so what should I change in it, to work?

Review the complete topic (launches new window)