Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: problems

  1. #1
    New to the CF scene
    Join Date
    May 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    problems

    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

  • #2
    Senior Coder
    Join Date
    Nov 2002
    Location
    North-East, UK
    Posts
    1,265
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What is strAttachPath?
    Also, you have no uploading code there.

  • #3
    teh Moderatorinator
    Join Date
    Sep 2004
    Location
    USA
    Posts
    2,472
    Thanks
    4
    Thanked 40 Times in 40 Posts
    @haha,
    In the future, please use a more descriptive subject when posting a question. See posting guidelines.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •