toeban
asked on
How send email web page asp
How send email web page asp
I tried using the above code, but to no joy! Is there anything other than ASP, that needs to be supported on the server?
i.e 'Server.CreateObject("CDON TS.NewMail ")'
i.e 'Server.CreateObject("CDON
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
hi toeban,
SPLAT's method using the CDONTS.NewMail object should work...i have created another similar one in another thread perhaps u can try as well....
https://www.experts-exchange.com/questions/20541877/Attachment-with-an-e-mail-form-in-ASP.html
Cheers
IcE
SPLAT's method using the CDONTS.NewMail object should work...i have created another similar one in another thread perhaps u can try as well....
https://www.experts-exchange.com/questions/20541877/Attachment-with-an-e-mail-form-in-ASP.html
Cheers
IcE
<% dim fromadd,toadd,sub,body,cls
fromadd=Request.Form("text 1")
toadd=Request.Form("text2" )
sub=Request.Form("text3")
body=Request.Form("TEXTARE A1")
set cls=Server.CreateObject("c donts.newm ail")
cls.From=fromadd
cls.To=toadd
cls.Subject=sub
cls.Body=body
cls.Send
Response.Write "Your mail is send to " & t%>
fromadd=Request.Form("text
toadd=Request.Form("text2"
sub=Request.Form("text3")
body=Request.Form("TEXTARE
set cls=Server.CreateObject("c
cls.From=fromadd
cls.To=toadd
cls.Subject=sub
cls.Body=body
cls.Send
Response.Write "Your mail is send to " & t%>
This question has been classified abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
Unless it is clear to me that the question has been answered I will recommend delete. It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.
</note>
If the user does not know how to close the question, the options are here:
https://www.experts-exchange.com/help/closing.jsp
Cd&
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
Unless it is clear to me that the question has been answered I will recommend delete. It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.
</note>
If the user does not know how to close the question, the options are here:
https://www.experts-exchange.com/help/closing.jsp
Cd&
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Split between Splat, whammy, BubbaisBest
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Programming_Gal
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
Split between Splat, whammy, BubbaisBest
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
Programming_Gal
EE Cleanup Volunteer
Sounds good to me, they all have pretty much the same answers, and the 4guysfromrolla.com link that I gave has additional info as well on many other email components besides CDONTS.
I figured if Splat's solution didn't work, then at least one of the components in the link I posted should be installed on ANY ASP server. Apparently that's the same angle Bubba was taking with his ASPMail post, so his response is definitely valid.
You must really know your stuff, Programming_Gal, to come up with that solution for splitting points!
I figured if Splat's solution didn't work, then at least one of the components in the link I posted should be installed on ANY ASP server. Apparently that's the same angle Bubba was taking with his ASPMail post, so his response is definitely valid.
You must really know your stuff, Programming_Gal, to come up with that solution for splitting points!
If so, this should work...
<%
Dim objCDO
Set objCDO = Server.CreateObject("CDONT
objCDO.MailFormat = 0 'tells it to be HTML
objCDO.BodyFormat = 0 'tells it to be HTML
objCDO.From = "your.address@domain.com"
objCDO.value("Reply-To") = "your.address@domain.com" 'reply address
objCDO.To = "address@domain.com"
objCDO.CC = "address@domain.com"
objCDO.BCC = "address@domain.com"
objCDO.Subject = "This is a HTML email"
objCDO.Body = "This is the body"
objCDO.Send
Set objCDO = Nothing 'cleanup
%>
You can remove the Reply-To, CC, and BCC lines if you like.