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 07-05-2000, 11:03 AM   #1
Member (10 bit)
 
Join Date: May 1999
Location: Orlando, FL
Posts: 975
Send a message via ICQ to artsapimp
Post

I am making a page which when the form is submitted it send the information of the form to an email address through CDONTS. The problem I'm having is the body of the email is setup like this:

Name: Art Sapimp Phone#: 407-555-5640 Email: artsapimp@yahoo.com...

instead of like this:

Name: Art Sapimp
Phone#: 407-555-5640
Email: artsapimp@yahoo.com

The code is written in asp format but it's an email so I can't put a [i]& "< br >" &... because it's not html. Here is the code so far.

Set objNewMail = Server.CreateObject("CDONTS.NewMail")
objNewMail.From = strName
objNewMail.To = "artsapimp@yahoo.com"
objNewMail.Body = "Name: " & strName & "Phone#: " & strPhone & "Email: " & strEmail

objNewMail.Send

Thanks for any help.


------------------
If you think an education is expensive...try ignorance.
artsapimp is offline   Reply With Quote
Old 07-05-2000, 12:48 PM   #2
Member (9 bit)
 
Join Date: Dec 1999
Location: Midland, NC, USA
Posts: 292
Post

If you're using Interdev, you can add "& vbCRLF" where you want to have a carriage return and line feed.

If not, you can use " & chr(30) & chr(10)". vbCRLF translates to " chr(30) & chr(10) "
UncaDanno is offline   Reply With Quote
Old 07-05-2000, 12:57 PM   #3
Member (10 bit)
 
Join Date: May 1999
Location: Orlando, FL
Posts: 975
Send a message via ICQ to artsapimp
Post

Perfect, thanks. I have changed it and now my email doesn't get sent at all. I know it's not because of this code but do you see anything wrong in that code above? It did work, maybe it's yahoo's mail service.

------------------
If you think an education is expensive...try ignorance.
artsapimp is offline   Reply With Quote
Old 07-06-2000, 04:58 AM   #4
Member (9 bit)
 
Join Date: Dec 1999
Location: Midland, NC, USA
Posts: 292
Post

Try taking the crlf out and seeing if the send works. If it does, put the crlf back in and see if it works. If not, take it back out and see if it works.

Just a debugging drill.

If the only change is the addition of the crlf and that keeps the send from working, looks like the mail service doesn't like it.
UncaDanno 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 06:37 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0