473,395 Members | 1,441 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

SMTP - Topic & add files

EsC
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
Jul 18 '05 #1
3 1564
On Sat, 3 Jan 2004 15:19:17 +0100, rumours say that "EsC"
<ch****************@liwest.at> might have written:
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?


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
Jul 18 '05 #2
"EsC" <ch****************@liwest.at> wrote in message news:<10***************@news.liwest.at>...
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


its in the msg parameter of sendmail such as :

yourSmtp = smtplib.SMTP('yourMailServer.org')

#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.sendmail("From: ow*****@yourMailServer.org",
"To: re**************@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
Jul 18 '05 #3
EsC
hy!

thanks for this simple and excellent solution!

greetings
EsC
"jmdeschamps" <jm*********@cvm.qc.ca> schrieb im Newsbeitrag
news:3d**************************@posting.google.c om...
"EsC" <ch****************@liwest.at> wrote in message

news:<10***************@news.liwest.at>...
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


its in the msg parameter of sendmail such as :

yourSmtp = smtplib.SMTP('yourMailServer.org')

#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.sendmail("From: ow*****@yourMailServer.org",
"To: re**************@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

Jul 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: hstockbridge5 | last post by:
Hi, My company's Exchange team created a mailbox for our department with an ampersand in the SMTP e-mail address (e.g. ABCD&EFG@domain.com.) Is it possible to create a mailto link that can...
1
by: Von Shean | last post by:
I need to send ".mht" files to different recipients. I have saved .mht files using CDO. Now i have to send it across.. I have two options both have different types of problems Using CDO I...
7
by: Razzie | last post by:
Hey all, I need to connect to an SMTP server and get a notification when it gets a new mail to send. I want to be able to 'read' that email (retrieve recipient information for example). Is that...
1
by: bivin | last post by:
hai i am requesting your technical support. please help me. i have been working with this for five days. the problem is relating with the smtp. i am trying to send an email from the asp.net...
1
by: michi | last post by:
Hi there.... Got here a tricky thing with my SMTP. First I show you what works on my machine.. **This Works** SmtpMail.SmtpServer = "mail.gmx.net" <-gmx is my mail provider...
34
by: antonyliu2002 | last post by:
I've set up the virtual smtp server on my IIS 5.1 like so: 1. Assign IP address to "All Unassigned", and listen to port 25. 2. Access Connection granted to "127.0.0.1". 3. Relay only allow...
4
by: CLEAR-RCIC | last post by:
I want to send an email from our Intranet site to myself whenever an error happens. Our manager will not let us install SMTP on the web server. Is it possible to send email programatically...
11
by: ibiza | last post by:
Hi all, I am trying to use the System.Net.Mail class for the first time, with ASP.NET 2.0. I setup everything according to http://www.codeproject.com/aspnet/EasySMTP_package.asp, which gives...
6
by: phpmagesh | last post by:
Hi, I am using mail function in my php page, As soon i update the details, i have to send mail to the customer with the updated details, problem is when i send mail it simple through waring msg...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.