phentalmyst
Programmer
hi all...
im writing a mailing list and i developed a front-end where the emails can be sent out. i wrote a loop that sends out an individual email to each person on the last, as opposed to dumping all the names in the CDoObject.To parameter with commas and spaces. my question/problem is in a special feature i want:
i want the list subscriber to be able to delete their name from the database from the individual email they receieve. for some reason, im not being able to pull their name into the CDoObject.Body field as i can in the To field. i dont know what im doing wrong...but here's my code:
Do While Not ML.eof
Set CDoObject=CreateObject("CDONTS.NewMail"
CDoObject.From= "Blue_Lucy_Mailing_List"
CDoObject.To= ML(0)
CDoObject.Subject= "Blue Lucy News!"
CDoObject.Body= ML(0)
CDoObject.Send
Set CdoObject=nothing
ML.movenext
loop
ML.Close
again....the CDoObject.To= ML(0) line works just fine, but when i toss it into the Body...it breaks. I also tried CDoObject.Body= CDoObject.To, but that didnt work as well.
of course im going to have more in the Body area. i just wanted to get this going with the harder stuff first.
thanks in advance to anyone who can help.
-pm
im writing a mailing list and i developed a front-end where the emails can be sent out. i wrote a loop that sends out an individual email to each person on the last, as opposed to dumping all the names in the CDoObject.To parameter with commas and spaces. my question/problem is in a special feature i want:
i want the list subscriber to be able to delete their name from the database from the individual email they receieve. for some reason, im not being able to pull their name into the CDoObject.Body field as i can in the To field. i dont know what im doing wrong...but here's my code:
Do While Not ML.eof
Set CDoObject=CreateObject("CDONTS.NewMail"
CDoObject.From= "Blue_Lucy_Mailing_List"
CDoObject.To= ML(0)
CDoObject.Subject= "Blue Lucy News!"
CDoObject.Body= ML(0)
CDoObject.Send
Set CdoObject=nothing
ML.movenext
loop
ML.Close
again....the CDoObject.To= ML(0) line works just fine, but when i toss it into the Body...it breaks. I also tried CDoObject.Body= CDoObject.To, but that didnt work as well.
of course im going to have more in the Body area. i just wanted to get this going with the harder stuff first.
thanks in advance to anyone who can help.
-pm