 |
| Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Basics 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
|
|
|
|

September 28th, 2006, 09:20 AM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
|
|
email code..
Pls verify below email code
-----------------------------------
Function SendMail(receiver,sender,subject,content)
Dim ObjSendMail
Dim iConf
Dim Flds
Set ObjSendMail = Server.CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")
Set Flds = iConf.Fields
Flds("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1
'**** Path below may need to be changed if it is not correct
Flds("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "c:\inetpub\mailroot\pickup"
Flds.Update
Set ObjSendMail.Configuration = iConf
ObjSendMail.To = receiver
ObjSendMail.CC = sender
'ObjSendMail.BCC = receiver & "," & sender
ObjSendMail.Subject = subject
ObjSendMail.From = sender
' we are sending a html email.. simply switch the comments around to send an text email instead
ObjSendMail.HTMLBody = content
'ObjSendMail.TextBody = content
ObjSendMail.Send
Set ObjSendMail = Nothing
End Function
Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
|
|

September 28th, 2006, 09:27 AM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
Umm, are you recieving any errors, having problems with the code etc?
--Stole this from a moderator
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
|
|

October 4th, 2006, 10:33 AM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
|
|
then please tell me how to do it???? greatly appreciate!!!
Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
|
|

October 4th, 2006, 10:37 AM
|
|
Authorized User
|
|
Join Date: Sep 2006
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Tell you how to do what??
Is that "your" code you have typed for a program or is that code you have searched on the internet and want to know how to "implement" it into your program code??? No one can help you address the problem if you don't state it. :)
Quote:
quote:Originally posted by rupen
then please tell me how to do it???? greatly appreciate!!!
Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
|
Toni Burgess
[email protected]
|
|

October 4th, 2006, 02:37 PM
|
|
Wrox Author
|
|
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
|
|
Reference this post rupen:
http://p2p.wrox.com/topic.asp?TOPIC_ID=50600
If you have further questions please post them.
--Stole this from a moderator
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.
|
|

October 17th, 2006, 06:12 AM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
|
|
I got this simple code for email will it work???? Please help....
http://www.stardeveloper.com/article...1091801&page=1
Thanks
Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
|
|

October 17th, 2006, 04:57 PM
|
|
Authorized User
|
|
Join Date: Sep 2006
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Uhhhh Hi Rupen. Did the post
http://p2p.wrox.com/topic.asp?TOPIC_ID=50600
not help any??? Take a look at it, if you have not done so already. I'm a newbie up here myself, so there's not a lot of help I can give you, unless it's something I've done already (hence the link to the post). Dparsons is pretty good about helping people on this site, but you may need to state your problem a little more clearly inorder for him, or anyone else for that matter, to assist you. "I got this simple code for email will it work???" is awfully vague and no one will really know the answer to that better than you (after implementing it into you program). The link you gave appears to be an article on sending emails, I'm sure it would work but you need to use it properly in your program. Unfortunately, no one is going to write it for you, but I'm sure you are aware of this already, judging from your stars.
Don't forget to take a look at the link and see if this could maybe help you. You didn't give much information about what you were doing, so I'm not sure if this is what you were looking for or not:
http://p2p.wrox.com/topic.asp?TOPIC_ID=50600
Have a blessed day!
Toni Burgess
[email protected]
|
|

October 18th, 2006, 01:20 AM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
|
|
THANKS A LOT IT IS ROCKING
Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
|
|

January 4th, 2007, 09:55 AM
|
|
Registered User
|
|
Join Date: Apr 2005
Posts: 352
Thanks: 14
Thanked 0 Times in 0 Posts
|
|
One more thing....
any idea how do i attach a file???
tried .AddAttachment but error reads as object dosen't support this property...
Rupen Anjaria.:)
------------------
We CAN'T avoid problems, but can solve it.
|
|
 |