Jump to content

mail from problems


raptor30506090

Recommended Posts

Hi all hope you can help im just doing a simple form but i cant set the mail from message

 


$name = mysql_escape_string($_POST['name']);
$number = mysql_escape_string($_POST['contactNum']);
$from = "Webdazsign";
$email = "email address";
$header = "header";
mail($email, $header, $name, $number, $from);
header("Location: ../index.php");

 

 

Link to comment
https://forums.phpfreaks.com/topic/247952-mail-from-problems/
Share on other sites

There are many examples on the PHP Manual about sending emails.

mail()

 

Good example

<?php
$to      = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
    'Reply-To: [email protected]' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>

Link to comment
https://forums.phpfreaks.com/topic/247952-mail-from-problems/#findComment-1273245
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.