...

View Full Version : problems



haha
05-01-2006, 07:10 AM
hello sir i am dharmendra but i have a problems these problems is that when we are fill the registration form at that time i want to send a email with attachment but it have errr in in the attachment of path .
and it will be send only subject, to, from but not send attachment so pls tell me that err correct that




codding is given below




dim messageDetails
Dim cdoconn

Set mail = Server.CreateObject("CDO.Message")

Set cdoconn = Server.CreateObject ("CDO.Configuration")

cdoconn.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "199.237.54.50"
cdoconn.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") =25

cdoconn.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

'cdoconn.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60

cdoconn.Fields.Update

Set Upload = Server.CreateObject("Persits.Upload")

Set mail.Configuration = cdoconn

mail.From = Request.Form("txtemail")

mail.To = "buyer@nepalsecondhand.com"

mail.Subject = "Suggestion"

messageDetails="Product :" & Request.QueryString("pid") & vbCrLf

messageDetails=messageDetails & "Name :" & Request.Form("txtname") &

messageDetails=messageDetails & "Phone :" & Request.Form("txtphone") &

messageDetails=messageDetails & "suggestion: " & request.Form("txtmessage") & vbCrLf

mail.TextBody = messageDetails


mail.AddAttachment strAttachPath


mail.Send
Set mail = nothing
Set cdoconn = nothing

degsy
05-02-2006, 02:45 PM
What is strAttachPath?
Also, you have no uploading code there.

Brandoe85
05-02-2006, 08:17 PM
@haha,
In the future, please use a more descriptive subject when posting a question. See posting guidelines. (http://www.codingforums.com/postguide.htm)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum