|
rdouglass -> RE: Adding User to CDOSYS Email Notification (5/26/2006 12:12:59)
|
quote:
and how do I work strText2 into this group of code You did it right here: call sendEmail("user@userdomain.com","user@userdomain.com","Cancelled Ad",strText2) That is the *whole* purpose of using a function; so you don't have to re-code the CDOSYS routine every time. And is strText2 different than strText? It doesn't look that way to me. See the whole idea of using a function is to have code that you can pass items to and do the same thing to those items. Wheat we did is build a function that would send an email. The function is expecting 4 items: who do i send it to, who is it from, what is the subject, and what is the message. When we call the function like so: call sendEmail("mydomain.com","mydomain.com","Cancelled Ad",strText) whatever is in strText will be sent as the body of the message. To change that, change what we're sending in the last item of the function: call sendEmail("mydomain.com","mydomain.com","Cancelled Ad",strText2) We do not want to change anything in the function itself but what we are sending to the function. Does that help?
|
|
|
|