Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

Send mail

Question posted by: idsanjeev (Familiar Sight) on May 13th, 2008 07:59 AM
Hello
I have a page thats display reports
my requirements is after display of records send mail this reports to mail id selected from table click on mail

and other is to save this reports to .xls file
thanks
Attached Files
File Type: txt h.txt (3.6 KB, 11 views)
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
jeffstl's Avatar
jeffstl
Expert
328 Posts
May 13th, 2008
01:36 PM
#2

Re: Send mail
Quote:
Originally Posted by idsanjeev
Hello
I have a page thats display reports
my requirements is after display of records send mail this reports to mail id selected from table click on mail

and other is to save this reports to .xls file
thanks


All email requires a "from" address. So does your webserver have an email server you can utilize to send the mail from? An alias email you can use?

What have you tried so far? Have you gotten any error messages?

You will need to either use File System Object to write to excel, or set up your database itself to do the export rather then do it in run time code.

Code: ( text )
  1. <%
  2. Set Mail=Server.CreateObject(“CDONTS.NewMail”)
  3. Mail.To=”me@mydomain.com”
  4. Mail.From=”testing-my@SP-Script.com”
  5. Mail.Subject=”Just testing my script”
  6. Mail.Body=”Whatever you need.”
  7. Mail.Send
  8. Set Mail=nothing
  9. %>

Reply
Reply
Not the answer you were looking for? Post your question . . .
170,099 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Top ASP Forum Contributors