Zaloguj | Zarejestruj | FAQ
Anonymous

sending mail

+ Odpowiedz

Posty: 2 Strona 1 z 1


sending mail

przez jene » Pt lut 14, 2014 6:35 pm

I'm trying to send information, as an email, that was collected from a form on my website. I'm having issues with it though--I don't get all the information in the emails and it is even out of order in the email. The following is my code:

<?php

// Recipient
$strEmail = "jene@judgmentenforcer.net";

// Get user inputs
$strEmailmessage = $_POST["emailfrom"];
$strEmailsubject = $_POST["emailsubject"];
$strEmailmessage = $_POST["emailmessage"];

mail($strEmail,$strEmailfrom,$strEmailsubject,$strEmailmessage);


?>

I have another form that is much bigger which I'm also trying to email, also to no avail. What am I doing wrong? Thanks in advance for the help! Kind regards, J
Avatar użytkownika

jene

  • Posty: 1
  • Dołączył(a): Pt lut 14, 2014 6:28 pm

Re: sending mail

przez XainPro » Pt lut 14, 2014 8:24 pm

try to modify this like like

$strEmailmessage = nl2br($_POST["emailfrom"]);
Avatar użytkownika

XainPro

  • Posty: 3933
  • Dołączył(a): Pt lut 17, 2012 8:10 pm


+ Odpowiedz

Strona 1 z 1