Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
I want to do the same in asp as the following code in php[mail()]:
Old 09-03-2007, 05:46 AM I want to do the same in asp as the following code in php[mail()]:
Experienced Talker

Posts: 34
Trades: 0
[mail() PHP]:I want to do the same in asp as the following code in php:

Code:
<?php 
/* recipients */
$email = $_POST['EmailAddress']; 
$to = "fontana@cytanet.com.cy,fontanatours@yahoo.com"; 
// if ($email != '') { $to .= ','.$email; } 

$subject = "Booking Request - PafosCarHire.com"; // new form field 

$country = $_POST['country'];
$Name = $_POST['Name'];
$Address = $_POST['Address'];
$CityPostCode = $_POST['CityPostCode'];
$phone = $_POST['Phone'];
$wphone = $_POST['WorkPhone'];
$YearStart = $_POST['YearStart'];
$MonthStart = $_POST['MonthStart'];
$DayStart = $_POST['DayStart'];
$PickUpTimehours = $_POST['PickUpTimehours'];
$PickUpTimeMins = $_POST['PickUpTimeMins'];
$DayNumber = $_POST['DayNumber']; 
$PICKUPLocation = $_POST['PICKUPLocation'];
$OtherPickUp = $_POST['OtherPickUp'];
$DropOffYear = $_POST['DropOffYear'];
$DropOffMonth = $_POST['DropOffMonth'];
$DropOffday = $_POST['DropOffday'];
$DropOffTimehours = $_POST['DropOffTimehours'];
$DropOffTimeMinutes = $_POST['DropOffTimeMinutes'];
$DROPOFFLocation = $_POST['DROPOFFLocation'];
$OtherDropOff = $_POST['OtherDropOff'];
$cartype = $_POST['cartype'];
$SecondCarGroup = $_POST['SecondCarGroup'];
$Notes = $_POST['Notes'];
$affiliate = $_POST['affiliate'];


include_once ("email-manual.php"); 

ob_start();
include('email-manual.php');
$message = ob_get_clean();

ob_start();
include('email-manual_printable.php');
$message1 = ob_get_clean();

$headers = "From:fontana@cytanet.com.cy"; 
// $headers .= "\nBcc:fontanatours@yahoo.com"; 
$headers .= "\nReply-To:fontana@cytanet.com.cy"; 
$headers .= "\nContent-Type: text/html; charset=UTF-8";
$headers .= "\nMIME-Version: 1.0";  

mail($to,$subject,$message1,$headers); 
mail($email,$subject,$message,$headers); 
//  http://www.codingforums.com/showthread.php?p=573908#post573908    
?>
lse123 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-03-2007, 07:39 AM Re: I want to do the same in asp as the following code in php[mail()]:
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Self-promo link
Sending email with CDOSYS
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?

Last edited by chrishirst; 09-03-2007 at 08:36 AM..
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-03-2007, 08:25 AM Re: I want to do the same in asp as the following code in php[mail()]:
Experienced Talker

Posts: 44
Name: Kuldeep Sahi
Trades: 0
Quote:
Originally Posted by chrishirst View Post
Self-promo link
The above link is not working.
__________________

Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE
Kuldeep2195 is offline
Reply With Quote
View Public Profile Visit Kuldeep2195's homepage!
 
Old 09-03-2007, 08:37 AM Re: I want to do the same in asp as the following code in php[mail()]:
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
whoops, linked to test server instead of main server.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-03-2007, 03:20 PM Re: I want to do the same in asp as the following code in php[mail()]:
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Whenever I've seen people send email from OLD ASP it's through CDOSYS like Chris pointed out.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to I want to do the same in asp as the following code in php[mail()]:
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.10894 seconds with 12 queries