Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 09-29-2000, 01:30 PM   #1
Member (10 bit)
 
Join Date: May 1999
Location: Orlando, FL
Posts: 975
Send a message via ICQ to artsapimp
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

Code:
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.
artsapimp is offline   Reply With Quote
Old 09-29-2000, 03:07 PM   #2
Member (9 bit)
 
Join Date: Dec 1999
Location: Midland, NC, USA
Posts: 292
Try adding

objMail.MailFormat = CdoMailFormatMime
objMail.BodyFormat = CdoBodyFormatText

before you do the send.

UncaDanno is offline   Reply With Quote
Old 09-29-2000, 04:08 PM   #3
Member (10 bit)
 
Join Date: May 1999
Location: Orlando, FL
Posts: 975
Send a message via ICQ to artsapimp
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 is offline   Reply With Quote
Old 09-29-2000, 04:32 PM   #4
Member (10 bit)
 
Join Date: May 1999
Location: Orlando, FL
Posts: 975
Send a message via ICQ to artsapimp
this doesn't make sense....

I have CDONTS on a different portion of the website and it works fine coded like this.

Code:
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.
artsapimp is offline   Reply With Quote
Old 09-29-2000, 09:48 PM   #5
Member (9 bit)
 
Join Date: Dec 1999
Location: Midland, NC, USA
Posts: 292
You've got my email addy. Send me a copy of both pages and I'll take a looky.
UncaDanno is offline   Reply With Quote
Old 09-30-2000, 11:17 AM   #6
Member (10 bit)
 
Join Date: May 1999
Location: Orlando, FL
Posts: 975
Send a message via ICQ to artsapimp
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/
artsapimp is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:00 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2