Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 16th, 2004, 06:46 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default Send mail

Hi friends,

  I am generating purchse order. I want to the same to store as a document and send mail as an attchemnt to the specific id. How can i do this.

Ex:

<%
    dim strHTML
strHTML=strHTML & "<table.........></table>"

response.write strHTML

%>

The output is displaying on the page. I want the same out put to save in the word format and send mail as an attachment.

Thanx in advance

 
Old January 16th, 2004, 11:45 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

<%
strmail="<html>"
strmail=strmail+"<body>"
strmail=strmail+"<table>"
strmail=strmail+"<tr>"
strmail=strmail+"<td>Hello Suren!"
strmail=strmail+"</td>"
strmail=strmail+"</tr>"
strmail=strmail+"</table>"
strmail=strmail+"</body>"
strmail=strmail+"</html>"

set objCDOMail=server.CreateObject("CDONTS.NewMail")
objCDOMail.To ="[email protected]"
objCDOMail.From [email protected]
objCDOMail.Subject = "Hi From Suren"
objCDOMail.BodyFormat = 0
objCDOMail.MailFormat = 0
objCDOMail.Body = strMail
objCDOMail.Importance = 2
objCDOMail.Send
%>

surendran
 
Old January 17th, 2004, 04:17 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 363
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hello,

  Thanx its working fine.



 
Old March 8th, 2004, 05:20 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hello
welcome,


surendran





Similar Threads
Thread Thread Starter Forum Replies Last Post
Send mail and attachments with PHP mail function Lofa Beginning PHP 1 June 2nd, 2008 03:24 PM
send mail chavakoti BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 1 September 4th, 2007 05:03 AM
How to send mail Jolley_tolson PHP How-To 0 August 13th, 2007 03:38 AM
Cannot send mail rajanikrishna JSP Basics 3 March 17th, 2006 01:39 AM
The mail can't be send jabby General .NET 2 September 8th, 2004 05:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.