ASP File Attachment Mailer.....

Discussion in 'C#' started by ameilius, Aug 17, 2009.

  1. #1
    i need some suggestions.... ive done my reading... learning asp as i go - i got a piece of code that works with me editing manually what i want it to send and where i want it to send....

    ok ok ok - im rambling...

    heres what i need to accomplish....

    i made a ton of .htm files in a /folder - i made an html page with 1 text input field for an email to send the files to - what i want to do is select with radio buttons or check boxes which .htm i want to send to the email address entered - and POSSIBLY have the subject line state which file im sending

    ie.

    i want to select "1.htm" and "2.htm" and send them to "email@email.com"

    im always going to be sending from 1 specific constant email so that can be static... heres what i have so far that can send what i want to who i want - but i want to be able to select multiple files to display as html in their OWN email if possible --- PLEASE ASSIST IF POSSIBLE

    <%
    Set myMail=CreateObject("THIS IS THE SUBJECT LINE")
    myMail.Subject="THIS IS THE SUBJECT LINE"
    myMail.From="EMAIL@EMAIL.COM"
    myMail.To="RANDOM@EMAIL.COM"
    myMail.CreateMHTMLBody "file://C:/FOLDER/1.mht"
    myMail.AddAttachment "file://C:/FOLDER/1.pdf"
    myMail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
    'Name or IP of remote SMTP server
    myMail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserver")="SMTP.EMAIL.COM"
    'Server port
    myMail.Configuration.Fields.Item _
    ("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25
    myMail.Configuration.Fields.Update
    myMail.Send
    set myMail=nothing
    %>
    Code (markup):
    like i said - this works manually... but id like to be able to select which files from an .html page with the check boxes or radio buttons to send to whatever email address i designate....
     
    ameilius, Aug 17, 2009 IP
  2. mansite2003@yahoo.com

    mansite2003@yahoo.com Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    just add my yahoo msger and will teach you.. at only 10$ hehhee
     
    mansite2003@yahoo.com, Aug 18, 2009 IP
  3. ameilius

    ameilius Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    haha - ill add you....
     
    ameilius, Aug 18, 2009 IP
  4. ameilius

    ameilius Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    other options/opinions/suggestions welcome! - please
     
    ameilius, Aug 18, 2009 IP
  5. ameilius

    ameilius Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    i wish this made more sense to me

    i think the part im confused on is... the actual coding and selecting of the files themselves with the check boxes

    maybe im going about it wrong - heres what i want

    we talk to customers... and we'd like to email them, after interaction on the phone, with a FAQ or basic walkthrough etc/documentation about their issue if its one we have a .htm for (we made a ton for the most popular issues) - so we want a simple page, with an open field for email address, then we want to select which files to send them based on category for easy finding etc (we made all the categories and all the .htm's but dont have an official "submit/find" page)

    any suggestions rather than get twisted up in code we dont fully understand yet? - i GET what your code is trying to do - but me understanding it is something else - i think i might be more on the lines of looking for something preexisting/script that we kind of fill in the blanks etc

    i GREATLY appreciate your feedback, FYI
     
    ameilius, Aug 18, 2009 IP