sending msg to and email account

Discussion in 'Scripts' started by katspn, Mar 5, 2013.

to remove all ads.
  1. katspn

    katspn New Member

    Hi all, I wonder if anyone can help me.

    Ok so my problem is that I program in mostly php and js. I can send messages from my website to email via a form using php. as below. However I need to do the same thing using C# and I cant seem to figure it out, any help or site links would be much appreciated. :confused:


    $ip = $_POST['ip'];
    $httpref = $_POST['httpref'];
    $httpagent = $_POST['httpagent'];
    $visitor = $_POST['visitor'];
    $visitormail = $_POST['visitormail'];
    $notes = $_POST['notes'];
    $attn = "me";

    $todayis = date("l, F j, Y, g:i a") ;

    $attn = $attn ;
    $subject = $attn;

    $notes = stripcslashes($notes);

    $message = " $todayis [EST] \n
    Attention: $attn
    Message: $notes \n
    From: $visitor ($visitormail)\n
    Additional Info : IP = $ip \n
    Browser Info: $httpagent \n
    Referral : $httpref \n

    $from = "From: $visitormail\r\n";

    mail("[email protected]", $subject, $message, $from);

  2. leroy30

    leroy30 New Member


Share This Page