Jump to content

[SOLVED] mail information needed cheers.


redarrow

Recommended Posts

advance thank you.

 

I will let the admin send a reply from there website but from my server,  But i need to no is

it possable to hard code the $form information so when the recipeint get the email message and reply to that email

there replying to the admin hard codded email address and not my server email address is that possable please cheers.

 

off course they can get the email address it came from buy looking at the header information but would this work cheers.

 

 

Link to comment
https://forums.phpfreaks.com/topic/45390-solved-mail-information-needed-cheers/
Share on other sites

solved yes it works example cheers.

<?php
$to = 'user's email address';
$subject = 'Wakeup bob!';
$message = '<b>yo</b>, whassup?';
$headers = "From: that user's reply email address \r\n" .
        'X-Mailer: PHP/' . phpversion() . "\r\n" .
        "MIME-Version: 1.0\r\n" .
        "Content-Type: text/html; charset=utf-8\r\n" .
        "Content-Transfer-Encoding: 8bit\r\n\r\n";

// Send
mail($to, $subject, $message, $headers); 

?>

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.