Jump to content

Email help


avatar.alex

Recommended Posts

I cant figure out wats wrong with it???

<?
  $email = $_REQUEST['email'] ;
  $name = $_REQUEST['name'] ;
  $mappingskills = $_REQUEST['mappingskills'] ;
  $mapping = $_REQUEST['mapping'] ;
  $scripting = $_REQUEST['email'] ;
  $scriptingskills = $_REQUEST['email'] ;
  $message = $_REQUEST['message'] ;

  mail( "avatar.alex@yahoo.com", "Develop App - $name",
    $message, $scriptingskills, $scripting, $mapping, $mappingskills, "From: $email" );
  header( "Location: /index.php?id=thankyou" );
?>

Heres the error code:

Warning: mail() expects at most 5 parameters, 8 given in /home/www/killako.freehostia.com/sendmail.php on line 11

Warning: Cannot modify header information - headers already sent by (output started at /home/www/killako.freehostia.com/sendmail.php:11) in /home/www/killako.freehostia.com/sendmail.php on line 12

Link to comment
Share on other sites

just as what Orio said.

 

maybe what you mean/want is:

mail( "avatar.alex@yahoo.com", "Develop App - $name, $message, $scriptingskills, $scripting, $mapping, $mappingskills", "From: $email" );

 

ofcourse you'd have to format the message part of mail() to something easier to understand.

 

regards.

Link to comment
Share on other sites

Can explain better?

What $mapping for an example? How do you want the email to look like?

 

Check the mail() function in php.net, maybe you will find your answer there.

 

Orio.

Im creating an mmorpg and I need mappers for it. People with Experence with gaming. And I need developers to show there mapping skills so I need them to send me info on their skills

 

woopsie... what i meant was:

mail( "avatar.alex@yahoo.com", "Develop App - $name",  "$message, $scriptingskills, $scripting, $mapping, $mappingskills", "From: $email" );

 

regards.

nope didn't work I got this as an error

Parse error: parse error, unexpected ';' in /home/www/killako.freehostia.com/sendmail.php on line 11

Link to comment
Share on other sites

...unexpected ';'...

if the code you posted is what your actually using, then you must filter your user input.  try first a crude test, and set every user input to pass a single character, ie a or 1 or something, except for the $name and $email.

 

regards.

Link to comment
Share on other sites

well it doesn't show up as any errors( it send me to the thank you page) but it won't send the email to my yahoo.com email my other feedback form did this also could I divide it up like this:

 

<?
  $email = $_REQUEST['email'] ;
  $name = $_REQUEST['name'] ;
  $mappingskill = $_REQUEST['mappingskill'] ;
  $mapping = $_REQUEST['mapping'] ;
  $scripting = $_REQUEST['scripting'] ;
  $scriptingskill = $_REQUEST['scriptingskill'] ;
  $message = $_REQUEST['message'] ;

    mail( "adalbrecht67@aim.com", "Develop App - $name",  "$message", "--------------", "$scriptingskill", "--------------", "$scripting", "--------------", "$mapping", "--------------", "$mappingskill"", "--------------", ""From: $email" );
  header( "Location: /index.php?id=thankyou" );
?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.