Jump to content

[SOLVED] Sending email


The Midnighter

Recommended Posts

$to = $agent;

$from = "[email protected]";

$subject = "A file has been uploaded";

$headers = 'Return-Path: ' . $from . "\n";

$body = "Hello, " . $name .  " has uploaded a file, " . $target_path ."

Email: " . $email . "

Company: " . $company . "

Phone: " . $phone ."

Comments: " . $comment;

 

if (mail($to, $subject, $body, $headers))

{

  echo("<p>Email Message successfully sent!</p>");

}

else

{

  echo("<p>But message delivery failed...</p>");

}

 

That's the jist of my code right now.

 

Allworknoplay, that didn't help at all. Thanks though.

Link to comment
https://forums.phpfreaks.com/topic/145565-solved-sending-email/#findComment-764231
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.