I have a Flash movie that has an embedded "email a friend" function. When a user completes the form to "email a friend", it uses a php script to actually send the email to the friend and also copy a 3rd party: Below is the current php code used:
(I had to change the email at symbol to the word "at" in this posting.)
<?
// This defines the variables
$email1 = $_POST["email1"];
$email2 = $_POST["email2"];
$msg = $_POST["msg"];
$toMail = "info(at)[login to view URL]";
$Subject = "Business Shorts Solutions Movie";
$Message = "$email2 would like to you to view this 3-minute movie about Business Shorts Solutions\n\n$msg\n\nYou can view the movie by clicking on the following link: [login to view URL]";
// This line sends the email
mail("$toMail", $Subject, $Message, "From: $email1");
mail("$email1", $Subject, $Message, "From: $email1");
// This next line returns a success message to the movie.
print "Status=Your email has been sent!";
?>
Here my pretty urgent need: The hosting environment for the flash movie will not be running PHP so I need a ASP version of this script.
I have done this before with a simple info request form… as you can see below – maybe it will help you think through it.
HERE IS A SAMPLE FROM A SIMILAR FORM IN THE PAST:
PHP:
<?php
$sendTo = "info(at)[login to view URL]";
$subject = "Contact Form";
$message = "Name : " . $_POST["name1"] . "\nCompany name : " . $_POST["company1"] . "\nEmail : " . $_POST["email1"];
mail($sendTo, $subject, $message, "From: Business Shorts");
?>
ASP VERSION of SAME SCRIPT:
<%
Set myMail=CreateObject("[login to view URL]")
myMail.Subject="Business Short Lead"
myMail.From="info (at)[login to view URL]"
myMail.To="info (at)[login to view URL]"
myMail.TextBody="Prospect Name: " & request("name1") & VBCRLF & "Company: " & request("company1") & VBCRLF & VBCRLF & "Email Address: " & request("email1")
[login to view URL] _
("[login to view URL]")=2
'Name or IP of remote SMTP server
[login to view URL] _
("[login to view URL]") _
="[login to view URL]"
'Server port
[login to view URL] _
("[login to view URL]") _
=25
[login to view URL]
[login to view URL]
set myMail=nothing
%>
I realize the swf will need to call the asp version of the script (instead of the php) and I can take care of that.
Please let me know if you can do this and if you are interested as soon as possible.