Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending an email from an asp web page
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00662044
Message ID:
00664290
Vues:
21
better still you can:
<a href="mailto:Whomever<whomever@whereever.com>?Subject=Hello%20World">whomever@whereever.com</a>
however in PHP I hide my email addresses in a script to keep the spammers at bay so I'd have:
<a href="mailto.php?to=Whomever&subject=Hello%20World">Whomever</a>
and the script has
<? 
$to = $HTTP_GET_VARS["to"]; 
/* 
Configure the variables and case options 
*/ 
$domain = "whereever.com"; 

switch ($to) { 
    case "sales":
      $addr_info = "Whomevers Sales";
      break;

    case "support":
      $addr_info = "Whomevers ";
      break;

    case "webmaster": 
      $addr_info = "Whomevers Webmaster"; 
      break; 
    case "nzsales":
      $addr_info = "NZ Sales";
      break;
   case "refunds":
     $addr_info = "Refund Request" ;
     break;
   default: 
     $addr_info = "For: ". $to; 
     $to = "webmaster"; 
} 
if (!empty($subject)) $subject = "?Subject=".$subject;
/* send the mail header */ 
header ("Location: mailto:$addr_info <$to@$domain>".$subject); 
?>
Shouldn't be too hard to convert this.
Sarah King
pcpropertymanager.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform