Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 email design
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

quince
Junior Member

Canada
103 Posts

Posted - 21 March 2005 :  11:27:18  Show Profile
i had this code to send an email when i submit a form .... i am facing a problem over here which is the structure of the message i recieve on the email is all in one line ..so how i can insert a new line in this code ?

Set objEMail = Server.CreateObject("CDO.Message")
Set objConfig = Server.CreateObject("CDO.Configuration")
Set Confi = objConfig.Fields
Confi("http://schemas.microsoft.com/cdo/configuration/sendusing") = 1
Confi("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "C:\inetpub\mailroot\pickup"
Confi.Update
Set objEMail.Configuration = objConfig
objEMail.To = Request.form("email")
objEMail.From = "Middle_East_Insurance_Brokers_administration"
objEMail.Subject = "Job Acceptance"

objEMail.TextBody = " Mr. / Mrs. " & request.form("emp_name") &" " & request.form("emp_l_name") &" you have been hired by middle east insurance broker,and this your information: Employee name:"& rs("emp_id")&"Employee name: "& rs("emp_name")& " " &rs("emp_l_name")& " "&"Employee username: "& " "& rs("username")& " " &"Employee password: "& " "& rs("password") & " "&"Employee Job: "&rs("job")& " " &"Employee Job: "& " "&rs("emp_extension")

objEMail.Send
Set objEMail = Nothing

waiting for ur suggestions ... thanks in advance
quince

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 21 March 2005 :  11:31:24  Show Profile
Use the vbscript constant vbnewline. You'll need to break out of the string to do so.
Example: string="text"&vbnewline&"more text"


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

quince
Junior Member

Canada
103 Posts

Posted - 22 March 2005 :  18:02:11  Show Profile
thanks shaggy for ur reply i will try it
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 23 March 2005 :  05:41:26  Show Profile
You're welcome, Quince


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07