My website sends automatic emails from many (25) different places. I want to
send a second email by reading the parameters of the first one. I don't want
to have to repeat and maintain the assignment of the second email
From,To,Subject fields so I am just using an include at each point in the
code where I send an email:
Set MyCDONTSMail = CreateObject("C DONTS.NewMail")
MyCDONTSMail.Bo dyFormat= 0
MyCDONTSMail.Ma ilFormat= 1
MyCDONTSMail.Fr om= fr************* *@whatever.com
MyCDONTSMail.To = to*******@whate ver.com
MyCDONTSMail.Su bject="some subject"
MyCDONTSMail.Bo dy= "some text":
%>
<!--#include file="SendFollo wUpEmail.asp" -->
<%
MyCDONTSMail.Se nd
set MyCDONTSMail=no thing
-------------------------------------------------------------------------------
The SendFollowUpEma il.asp just wants to take the From,To,Subject parameters
that are defined in the original email and add a different body:
Set MyCDONTSMail2 = CreateObject("C DONTS.NewMail")
MyCDONTSMail2.B odyFormat= 0
MyCDONTSMail2.M ailFormat= 1
MyCDONTSMail2.F rom= MyCDONTSMail.Fr om
MyCDONTSMail2.T o= MyCDONTSMail.To
MyCDONTSMail2.S ubject=MyCDONTS Mail.Subject
MyCDONTSMail2.B ody= "some new text"
MyCDONTSMail2.S end
set MyCDONTSMail2=n othing
It chokes on this:
MyCDONTSMail2.F rom= MyCDONTSMail.Fr om
Object doesn't support this property or method: 'MyCDONTSMail.F rom'
Seems to me MyCDONTSMail.Fr om is only a string, why can't I retrieve its
value? More to the point though - how can I retrieve its value?
Thanks!