View Single Post
  #24 (permalink)  
Old 09-11-2008, 08:29 PM
disbrowpr disbrowpr is offline
Novice
Join Date: Aug 2008
Location: Rolla, Mo
Posts: 14
iTrader: (0)
disbrowpr is on a distinguished road
Icon6

Ok, So I gave up on that, and found a Dynamic XML Flash. The site is up @ www.disbrowpr.org . When you click on contact there is some boxes at the bottom where you fill out and click submit. I got all the buttons working correctly and everything! =D but here is the issue! I dont get the mail in my mailbox. here is the 2 codes I am using to make this work.



This one is called Contact.asp
Code:
<%
    for i=1 to 7
         message=Request("message")
    next
         message=message + Request("message")    
        smtpServer = "disbrowm.startlogic.com"
        smtpPort = 587
        

        name = Request("Your_Name:")
        Set myMail = CreateObject("CDO.Message") 
        myMail.Subject = "from " & name
        myMail.From = Request("Your_E-Mail:")
        myMail.To = Request("*taken out*")
        myMail.HTMLBody = "<html><head><title>Contact Info</title></head><body><br>" & message & "</body></html>"
        myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
        myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtpServer
        myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = smtpPort
        myMail.Configuration.Fields.Update 
        myMail.Send
    
%>
And this one is called Contact.php
PHP Code:
<?php
Error_Reporting
(E_ALL & ~E_NOTICE);

 while (
$request current($_REQUEST)) {
     if (
key($_REQUEST)!='recipient') {
        
$pre_array=split ("&777&",  $request);
        
        
$post_vars[key($_REQUEST)][0]=preg_replace ("/<[^>]*>/"""$pre_array[0]);
        
$post_vars[key($_REQUEST)][1]=preg_replace ("/<[^>]*>/"""$pre_array[1]);
    }
    
next($_REQUEST);
}



reset($post_vars);


$subject="From ".$post_vars['your_name'][0] ;
$headers"From: ".$post_vars['your_email'][0] ."\n";
 
$headers.='Content-type: text/html; charset=iso-8859-1';
 
$message='';
  while (
$mess current($post_vars)) {
      if ((
key($post_vars)!="i") && (key($post_vars)!="your_email") && (key($post_vars)!="your_name")) {

         
$message.="<strong>".$mess[1]."</strong>&nbsp;&nbsp;&nbsp;".$mess[0]."<br>";
    }
    
next($post_vars);
 }

mail($_REQUEST['recipient'], $subject,  "
<html>
<head>
 <title>Contact letter</title>
</head>
<body>
<br>
  "
.$message."
</body>
</html>" 
$headers);
echo (
"Your information was submitted sucsessfully. We will review it and get back to you soon. -- DPR Case Management");

?>
<script>
    resizeTo(600, 600);
</script>
Now everything seems to be fine in the .php. But I think its the .asp file. I have everything correct in there, but I dont know if its my host or who or what it is. I think I got my e-mail in the right spot. Its marked *taken out*. If you can help that would be great! Thanks!

__________________

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote