Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Old 05-26-2009, 09:59 AM   #1 (permalink)
Contributing Member
 
Join Date: 05-21-09
Posts: 60
iTrader: 0 / 0%
Latest Blog:
None

jacks smith is liked by many
Attach a page with mail in ASP

hello friend i create a carrier page in aspi add one field to attach resume doc file. my program work properly on local (iis)but when i upload it on our site it's show path problem please help me ?
jacks smith is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-28-2009, 03:45 AM   #2 (permalink)
v7n Mentor
 
Boogle's Avatar
 
Join Date: 09-03-07
Location: England
Posts: 646
iTrader: 0 / 0%
Latest Blog:
None

Boogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really niceBoogle is just really nice
Does the path to the document exist on the server?

Are you using relative paths?

Post the code for you MailMessage and i'll point you in the right direction.

Boog's.
__________________
Great new 'June' Javascript Framework
June Forums - Innovative JScripting

Price is what you pay... Value is what you get.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-29-2009, 05:58 AM   #3 (permalink)
Contributing Member
 
Join Date: 05-21-09
Posts: 60
iTrader: 0 / 0%
Latest Blog:
None

jacks smith is liked by many
Quote:
Originally Posted by Boogle View Post
Does the path to the document exist on the server?

Are you using relative paths?

Post the code for you MailMessage and i'll point you in the right direction.

Boog's.
<%


sName=Request.form("txtName")
sEmail=Request.form("txtEmailId")
phone=Request.form("txtphone")
post=Request.form("postappliedfor")
cv=request.form("T2")
dim b
b=split(cv,".")


sMsg="<div align='center'><table border='0' cellpadding='1' cellspacing='1' style='border-collapse: collapse' width='100%'>"

sMsg=sMsg&"<tr><td align='right'colspan='3'>&nbsp;</td></tr>"
If sName <> "" Then
sMsg=sMsg&"<tr><td width='20%' align='right'><p align='right'><font face='Arial' size='2'><b>Name</b></font></td>"
sMsg=sMsg&"<td width='4%' align='center'><font face='Arial' size='2'><b>:</b></font></td>"
sMsg=sMsg&"<td width='75%'><font size='2' face='Arial'>"& sName &"</font></td></tr>"
End If
If sEmail<> "" Then
sMsg=sMsg&"<tr><td width='20%' align='right'><p align='right'><b><font face='Arial' size='2'>Email</font></b></td>"
sMsg=sMsg&"<td width='4%' align='center'><font face='Arial' size='2'><b>:</b></font></td>"
sMsg=sMsg&"<td width='75%'><font size='2' face='Arial'>"& sEmail &"</font></td></tr>"
End If
If phone<> "" Then
sMsg=sMsg&"<tr><td width='20%' align='right'><p align='right'><b><font face='Arial' size='2'>Phone No.</font></b></td>"
sMsg=sMsg&"<td width='4%' align='center'><font face='Arial' size='2'><b>:</b></font></td>"
sMsg=sMsg&"<td width='75%'><font size='2' face='Arial'>"& phone &"</font></td></tr>"
End If
If post<> "" Then
sMsg=sMsg&"<tr><td width='20%' align='right'><p align='right'><font face='Arial' size='2'><b>Post Applied For</b></font></td>"
sMsg=sMsg&"<td width='4%' align='center'><font face='Arial' size='2'><b>:</b></font></td>"
sMsg=sMsg&"<td width='75%'><font size='2' face='Arial'>"& post &"</font></td></tr>"
End If
sMsg=sMsg&"<tr><td align='right' colspan='3'>&nbsp;</td></tr>"
sMsg=sMsg&"</table></div>"


sch = "http://schemas.microsoft.com/cdo/configuration/"
Set cdoConfig = CreateObject("CDO.Configuration")
With cdoConfig.Fields
.Item(cdoSendUsingMethod) = cdoSendUsingPort
.Item(cdoSMTPServer) = "mail.hotelclarks.com"
.Item(cdoSMTPAuthenticate) = 1
.Item(cdoSendUsername) = "test@hotelclarks.com"
.Item(cdoSendPassword) = "test123"
.Update
End With
Set cdoMessage = CreateObject("CDO.Message")
With cdoMessage

Set .Configuration = cdoConfig

cdoMessage.From = sName&"<"&semail&">"
'cdoMessage.To = "hrd@clarksamer.com"
' cdoMessage.cc = "admin@clarksamer.com"
' cdoMessage.bcc= "satishflight@gmail.com"
cdoMessage.To = "epkgupta@gmail.com"
If Trim(cv) <> "" Then
cdoMessage.AddAttachment "file://" & sTempPath &cv// i am facing problem on this path
End If
if(b(1)="doc") then

.Subject = subject
.htmlBody = sMsg
.Send
flage="t"
else

flage="f"

end if

cdoMessage.Subject = "Enquiry from "&sName
cdoMessage.HTMLBody =sMsg

cdoMessage.Send


End With

Set cdoMessage = Nothing
Set cdoConfig = Nothing




%>
jacks smith is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Own name attach on the Domain name? SEO_guru2009 Domain Name Forum 5 03-30-2009 01:54 PM
attach via database and email in php funguru Coding Forum 14 06-07-2007 05:33 AM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 05:23 AM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.