JMail problem

Discussion in 'ASP General' started by Lasse Edsvik, Sep 11, 2003.

  1. Lasse Edsvik

    Lasse Edsvik Guest

    Hello

    I use this code to send massmail with an attachment using JMail 4
    proffessional. and the attachment seems to be attached but when i open it
    the first time my system32 folder opens....... next time i try to open it
    the file opens, but with the name "menu2.xml", i open it again and its
    "menu3.xml" and so on..... i have this piece of code:


    set msgtemplate = server.createobject("jmail.message" )
    msgtemplate.from = ""
    msgtemplate.mailserverusername = "xxxx"
    msgtemplate.mailserverpassword = "xxxx"
    msgtemplate.addattachment server.mappath("adminmenu.xml")
    msgtemplate.fromname = ""
    msgtemplate.isoencodeheaders = false
    msgtemplate.addrecipient "%%Email%%", "%%EMail%%"
    msgtemplate.subject = "d"
    msgtemplate.body = "k"

    set mmerge=server.createobject("jmail.mailmerge" )
    mmerge.mailtemplate = msgtemplate
    mmerge.bulkmerge rs, false, "192.168.8.2"
    set msgtemplate = nothing
    set mmerge = nothing
    set conn=nothing


    headers is really wrong, tried to set that isoencodeheaders = false but
    didnt help much.....



    Win2000Server, Microsoft Mail Internet Headers Version 2.0
    Received: from TOKER ([192.168.8.3]) by exch2k2.srv2.100procent.com with
    Microsoft SMTPSVC(5.0.2195.6713);
    Wed, 10 Sep 2003 16:23:35 +0200
    Subject: =??Q?d?=
    Sender: "=??Q?lasse@100procent=2Ecom?=" <>
    From: "=??Q?lasse@100procent=2Ecom?=" <>
    Date: Wed, 10 Sep 2003 16:15:22 +0200
    To: "=??Q?lasse@100procent=2Ecom?=" <>
    X-Priority: 3
    X-MSMail-Priority: Normal
    MIME-Version: 1.0
    X-USER_IP: 62.168.149.29
    X-Mailer: JMail 4.1.4 by Dimac
    Content-Type: multipart/mixed;
    boundary="--NEXT_BM_EFB927AEAC944588A147EE1C355352C5"
    Return-Path:
    Message-ID: <2.100procent.com>
    X-OriginalArrivalTime: 10 Sep 2003 14:23:35.0937 (UTC)
    FILETIME=[1EF8C710:01C377A7]

    ----NEXT_BM_EFB927AEAC944588A147EE1C355352C5
    Content-Type: application/octet-stream; name="menu.xml";
    name="=??Q?menu=2Exml?="
    Content-Transfer-Encoding: base64
    Content-Description: =??Q?menu=2Exml?=
    Content-Disposition: attachment; filename="=??Q?menu=2Exml?="
    Content-ID: <EB238E9FBEFF4B16A4D4EB76B461EF93>


    ----NEXT_BM_EFB927AEAC944588A147EE1C355352C5--




    what's really wrong here? i cant send a simple mail with attachment without
    headers being totally wrong nomatter what filetyp i send... i cant open
    them.....


    /Lasse
    Lasse Edsvik, Sep 11, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ron
    Replies:
    2
    Views:
    451
    Showjumper
    Jun 30, 2003
  2. Ingrid

    asp.net and Jmail

    Ingrid, Oct 28, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    436
    Ingrid
    Oct 28, 2003
  3. Vix
    Replies:
    1
    Views:
    3,422
    Thomas Weidenfeller
    Jan 26, 2005
  4. Al

    Jmail problem

    Al, Mar 13, 2005, in forum: Java
    Replies:
    1
    Views:
    514
    GaryM
    Mar 14, 2005
  5. Kingdom
    Replies:
    2
    Views:
    210
    Kingdom
    Nov 30, 2003
Loading...

Share This Page