Myeeos codes and glitters | Free Ringtones | Payday Cash Advance | Adverse Credit Remortgage | Mortgages
More CDONTS troubles [Archive] - PCMech Forums

PDA

View Full Version : More CDONTS troubles


artsapimp
09-29-2000, 01:30 PM
I ended up using a different Email address and having outlook automatically forward all of those emails to the correct box. sloppy, but it works.

I have more problems though. Please help.

Here is my code. I get an email sent to the correct email box but it's empty. No subject, no from, no body, etc. Please help. thanks


Dim objMail

strMailBody = "A new web application has been requested by " & Request.Form("name")
strMailBody = strMailBody + Chr(13) & Chr(13)
strMailBody = strMailBody + "(URL goes here)."
strMailBody = strMailBody + Chr(13) & Chr(13)
strMailBody = strMailBody + "The approval process should be finished no later than " & Date + 7 & ", Please reply before that time."
strMailBody = strMailBody + Chr(13) & Chr(13)
strMailBody = strMailBody + "Thank you."

Set objMail = Server.CreateObject("CDONTS.Newmail")
objMail.From = "Mail"
objMail.To = "(email address is here)"
objMail.Subject = "New Website Request"
objMail.Body = strMailBody
objMail.Send
Set objMail = Nothing


Thank you for any help.

UncaDanno
09-29-2000, 03:07 PM
Try adding

objMail.MailFormat = CdoMailFormatMime
objMail.BodyFormat = CdoBodyFormatText

before you do the send.

artsapimp
09-29-2000, 04:08 PM
Thank you for the reply but I still got an empty email. I am really at a loss with this CDONTS stuff. When reading about it it seems so easy, but I'm about to pull my hair out. Thanks again for any help.

artsapimp
09-29-2000, 04:32 PM
I have CDONTS on a different portion of the website and it works fine coded like this.


Set objMail = Server.CreateObject("CDONTS.Newmail")
objMail.From = "NDCMail"
objMail.To = "email..."
objMail.Subject = "New Link Request"
objMail.Body = "'" & strURL1 & "'"
objMail.Send
Set objMail = Nothing


I have just copied that code to the new page and it didn't work either. Just to waste time I tried to use this page and send a test message to myself with the one that I know works. IT DIDN'T WORK! I don't know what to do now. This just worked about 3 days ago. Why not now? The server is up, nothing has changed. I don't understand it.

Both email forms work the same. I get a blank email.

Any help would be very helpful. Thanks again.

UncaDanno
09-29-2000, 09:48 PM
You've got my email addy. Send me a copy of both pages and I'll take a looky.

artsapimp
09-30-2000, 11:17 AM
I won't be in the office until Monday. I will try to stop in sometime today and get those pages for you, but don't worry about it until Monday. Thanks for any help.

I am looking at JMail right now. Have you used that?

http://tech.dimac.net/