Need (more) help with PHP form to be sent by email?

Posted by admin | Programming & Design | Wednesday 31 March 2010 9:03 am


Sorry for the very long extra information but I thought I should include everything that is relevant. Ignore missing
tags, I removed them as they took effect in the question layout.

I’m in the process of making a simple website (my first ever website) for IB students with links to various study notes and similar things…

I’ve created a “Submit link” page in which I want a form with several fields that when submitted is sent to my email (see code below).

My problem is I don’t know how to include multiple fields into the body of the email (I wrote my current code based on a tutorial which only showed how to include one field into the email body).

Here is the form code:




Submit a link to IBnoobs.com

Your name:

Your e-mail adress:

Link you wish to submit:

Subject(s) to which the link is relevant

HL

SL

Both
Short descripton of link (optional):


And here is the send mail page code:

$email = $_REQUEST['email'] ;
$message = $_REQUEST['level'] ;

mail( "postmaster@ibnoobs.com", "Reported Link",
$message, "From: $email" );
header( "Location: ./thankyou.html" );
?>

I tried some of peoples suggestions such as:

Replacing send mail code with this:

email = $_POST['email'];
$message = $_POST['name'] . "
” . $_POST['link'] . “
” . $_POST['level'] . “
” . $_POST['description'];

mail( “oscarconiel@ibnoobs.com”, “Reported Link”,
$message, “From: $email” );
header( “Location: ./thankyou.html” );
?>

But I get this error:

Parse error: syntax error, unexpected ‘=’ in /home.42/i/b/n/ibnoobs/www/sendmail.php on line 2

I also tried replacing send mail page with this:

$email = $_REQUEST['email'] ;
$link = $_REQUEST['link'] ;
$subject = $_REQUEST['subject']
$level = $_REQUEST['level'];
$desc = $_REQUEST['description'];

$message = "Subject: ".$subject."\nLink: ".$link."\nLevel: ".$level."\n\n".$desc;

mail( "postmaster@ibnoobs.com", "Reported Link",
$message, "From: $email" );
header( "Location: ./thankyou.html" );
?>

But I get the following error:

Parse error: syntax error, unexpected T_VARIABLE in /home.42/i/b/n/ibnoobs/www/sendmail.php on line 5

Email Limit before marked as Spam?

Posted by admin | Other - Internet | Wednesday 31 March 2010 8:36 am


My Co. will be using a mass emailing program to reach to our candidate. As you know, most people using free email such Yahoo!, Gmail, AOL, and Hotmail.

My mass email software can automatically set when should i pause and for how long.

Does anyone can give me a guideline how many email should i send before pause and for how long?