Jump to content

Sending Email Form

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
millsy007

millsy007

    Newbie

  • Members
  • PipPip
  • 15 posts
Hi
I have some code that sends a form:
$name = trim($_GET['name']); //The senders name
$email = trim($_GET['email']); //The senders email address
$subject = trim($_GET['subject']); //The senders subject
$message = trim($_GET['msg']); //The senders message

mail($to,$subject,$message,"From: ".$email.""); //a very simple send

It works fine but I am trying to make some changes to it but when I do it stops working :(

What I want to do is change the subject of the email to say 'Enquiry'
And have the subject text that is passed in be added as part of the message (this will actually hold the users brief summary)
Any help would be appreciated as my attempt didnt send the mail.

Edited by John, 20 May 2009 - 04:05 PM.


#2
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
$subject = "Enquiry: " . trim($_GET['subject']); //The senders subject