Tech Support banner

Status
Not open for further replies.
1 - 5 of 5 Posts

·
Registered
Joined
·
2,390 Posts
Hi and welcome to TSF,

First of all the code I have below for you is something I found through Google. It is written in the programming language ASP. Hope this is what you were looking for :sayyes:

Code:
<%
Set objMessage = Server.CreateObject("CDO.Message")

With objMessage
  .To       = "John <[email protected]_domain.com>"
  .To       = "Gary <[email protected]_domain.com>"
  .From     = "Sender <[email protected]_domain.com>"
  .Subject  = "Message Subject"
  .TextBody = "Message Body"
  .Send
End With

Set objMessage = Nothing
%>
Have a fun and computing day,
Grove :cool:
 

·
Registered
Joined
·
2,390 Posts
Sorry, I must be going blind. I just read your first sentence and saw that you wanted it in PHP. Ok, well I hope this is the code you were looking for:
Code:
<?php

echo "<html><body>";

$recipient = "Kris Arndt <[email protected]>,[email protected]";
$subject = "Testing the mail function";
$message = "Hello!\n\nThis is the body of the message.\n\n";
$extra = "From: [email protected]\r\nReply-To: [email protected]\r\n";

mail ($recipient, $subject, $message, $extra);

echo "Sending mail...";
echo "</body></html>";

?>
The code above will send to two emails. You just add more emails to the $recipient function.

Have a fun and computing day,
Grove :cool:
 
1 - 5 of 5 Posts
Status
Not open for further replies.
Top