SMTP - Topic & add files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • EsC

    SMTP - Topic & add files

    Hy!

    probably a dummy question, but i don't
    know how to set a Topic-Text and add
    Files to an email ...

    i use the SMTPLIB module and the
    function/method: .sendmail(from, to,msg)

    but how can i set a topic Text?
    is there an other function/method, or
    must it be encoded within the message-text?

    thanks for your help
    EsC


  • Christos TZOTZIOY Georgiou

    #2
    Re: SMTP - Topic & add files

    On Sat, 3 Jan 2004 15:19:17 +0100, rumours say that "EsC"
    <christian.eslb auer@liwest.at> might have written:
    [color=blue]
    >probably a dummy question, but i don't
    >know how to set a Topic-Text and add
    >Files to an email ...
    >
    >i use the SMTPLIB module and the
    >function/method: .sendmail(from, to,msg)
    >
    >but how can i set a topic Text?
    >is there an other function/method, or
    >must it be encoded within the message-text?[/color]

    To prepare the body of your email message, you need the email package;
    check it in the documentation.
    --
    TZOTZIOY, I speak England very best,
    Ils sont fous ces Redmontains! --Harddix

    Comment

    • jmdeschamps

      #3
      Re: SMTP - Topic &amp; add files

      "EsC" <christian.eslb auer@liwest.at> wrote in message news:<107313798 3.983243@news.l iwest.at>...[color=blue]
      > Hy!
      >
      > probably a dummy question, but i don't
      > know how to set a Topic-Text and add
      > Files to an email ...
      >
      > i use the SMTPLIB module and the
      > function/method: .sendmail(from, to,msg)
      >
      > but how can i set a topic Text?
      > is there an other function/method, or
      > must it be encoded within the message-text?
      >
      > thanks for your help
      > EsC[/color]

      its in the msg parameter of sendmail such as :

      yourSmtp = smtplib.SMTP('y ourMailServer.o rg')

      #envoi un message
      #ARGUMENTS from sendMail
      #from: your own client adress
      #to: the intended recipient's adress
      #msg: what will really show...in different fields
      monSmtp.sendmai l("From: ownMail@yourMai lServer.org",
      "To: recipientAdress e@hisServer.org",
      "From:joe\r\nTo : Owner \nSubject: 3 weeks left"
      + "\n\nTopic text of the message! ")

      on Windows, may differ slightly on Linux :)

      Good messaging,

      JM

      Comment

      • EsC

        #4
        Re: SMTP - Topic &amp; add files

        hy!

        thanks for this simple and excellent solution!

        greetings
        EsC


        "jmdeschamp s" <jmdeschamps@cv m.qc.ca> schrieb im Newsbeitrag
        news:3d06fae9.0 401031339.7a2dc db5@posting.goo gle.com...[color=blue]
        > "EsC" <christian.eslb auer@liwest.at> wrote in message[/color]
        news:<107313798 3.983243@news.l iwest.at>...[color=blue][color=green]
        > > Hy!
        > >
        > > probably a dummy question, but i don't
        > > know how to set a Topic-Text and add
        > > Files to an email ...
        > >
        > > i use the SMTPLIB module and the
        > > function/method: .sendmail(from, to,msg)
        > >
        > > but how can i set a topic Text?
        > > is there an other function/method, or
        > > must it be encoded within the message-text?
        > >
        > > thanks for your help
        > > EsC[/color]
        >
        > its in the msg parameter of sendmail such as :
        >
        > yourSmtp = smtplib.SMTP('y ourMailServer.o rg')
        >
        > #envoi un message
        > #ARGUMENTS from sendMail
        > #from: your own client adress
        > #to: the intended recipient's adress
        > #msg: what will really show...in different fields
        > monSmtp.sendmai l("From: ownMail@yourMai lServer.org",
        > "To: recipientAdress e@hisServer.org",
        > "From:joe\r\nTo : Owner \nSubject: 3 weeks left"
        > + "\n\nTopic text of the message! ")
        >
        > on Windows, may differ slightly on Linux :)
        >
        > Good messaging,
        >
        > JM[/color]


        Comment

        Working...