- Original Message -
From: "Ivan Shevanski" <[EMAIL PROTECTED]>
>
> if __name__ == '__main__':
>body = 'x is',x,'y is',y,'.Lets hope that works!'
>subject = 'Neo'
>sendToMe(subject, body)
>
> I really have no idea whats going on. . .help?
>
> -Ivan
Ivan, you need to pass the
Well everything was working in this mail sending script until. . .this:
Traceback (most recent call last):
File "mailvar.py", line 27, in ?
sendToMe(subject, body)
File "mailvar.py", line 8, in sendToMe
send(me, me, subject, body)
File "mailvar.py", line 16, in send
msg = MIMEText(bod
- Original Message -
From: "Ivan Shevanski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 11, 2005 3:32 AM
Subject: Re: help with sending mail in Program
>
> >>from smtplib import SMTP
> >
> >>def sendToMe(subject, bod
- Original Message -
From: "Ivan Shevanski" <[EMAIL PROTECTED]>
To:
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, June 09, 2005 5:33 PM
Subject: Re: help with sending mail in Program
>
> >
> >#!/usr/local/bin/python
> >
> >'''
#!/usr/local/bin/python
''' Send mail to me '''
from smtplib import SMTP
def sendToMe(subject, body):
me = '"Ivan Shevanski" <[EMAIL PROTECTED]>'
send(me, me, subject, body)
def send(frm, to, subject, body):
s = SMTP()
#///On or off for test\\\ #s.set_debuglevel(1)
s.conn
- Original Message -
From: "Ivan Shevanski" <[EMAIL PROTECTED]>
I think this seems like it would work, but I still can't seem to get it to
work. I turned on the debugging and everything seemed alright. I'll post
how I modified it (I probally made a simple mistake). Can someone help
h
>>#!/usr/local/bin/python
>>
>>''' Send mail to me '''
>>
>
>>from smtplib import SMTP
>
>>def sendToMe(subject, body):
>> me = '"Kent Johnson" <[EMAIL PROTECTED]>'
>> send(me, me, subject, body)
>>
>>
>>def send(frm, to, subject, body):
>> s = SMTP()
>>#s.set_debuglevel(1)
>> s.conn
Kent Johnson wrote:
> Tim Roberts wrote:
>> Not exactly like this, you didn't. The list of destination addresses in
>> SMTP.sendmail must be a sequence, not a string:
>
> Yes, exactly like that. This is a working module, the only thing I
> changed to post it was the email address and the name of
Kent Johnson wrote:
> Tim Roberts wrote:
>> Not exactly like this, you didn't. The list of destination addresses in
>> SMTP.sendmail must be a sequence, not a string:
>
> Yes, exactly like that. This is a working module, the only thing I
> changed to post it was the email address and the name of
Tim Roberts wrote:
> Kent Johnson <[EMAIL PROTECTED]> wrote:
>
>>Ivan Shevanski wrote:
>>
>>>Could someone send me a good tutorial for sending mail then? The one I
>>>found is not what I'm looking for. Also please dont send me the stmp
>>>definition cause i've looked at that enough.
>>
>>Here i
Kent Johnson <[EMAIL PROTECTED]> wrote:
>Ivan Shevanski wrote:
>> Could someone send me a good tutorial for sending mail then? The one I
>> found is not what I'm looking for. Also please dont send me the stmp
>> definition cause i've looked at that enough.
>
>Here is a module I use to send mail
Ivan Shevanski wrote:
> Could someone send me a good tutorial for sending mail then? The one I
> found is not what I'm looking for. Also please dont send me the stmp
> definition cause i've looked at that enough.
Here is a module I use to send mail to myself using smtplib:
#!/usr/local/bin/pyt
Ivan Shevanski wrote:
> Hey i'm new here and relatively new to python. I've made a few small
> programs and now I'm making a program for my friends that at the end has a
> feedback form. I want to send the feedback back to my email adress. I know
> I should use the SMTP module and I have figur
Could someone send me a good tutorial for sending mail then? The one I found
is not what I'm looking for. Also please dont send me the stmp definition
cause i've looked at that enough.
thanks,
-Ivan
_
Express yourself instantly wi
Ugh. . .I'm really confused. In the example I saw the message was taken
from a file on the computer. . .Like it opened it and then sent it. I guess
I just need to check out the whole thing a bit more before I get specific.
I'll ask again if I need specific help.
thanks,
-Ivan
__
Maybe you could give us a little more info about where you're getting
messed up. The message body is just a string, so if you can build a
string out of variables, you should be able to do it.
--
http://mail.python.org/mailman/listinfo/python-list
Hey i'm new here and relatively new to python. I've made a few small
programs and now I'm making a program for my friends that at the end has a
feedback form. I want to send the feedback back to my email adress. I know
I should use the SMTP module and I have figured out how to send with it,
17 matches
Mail list logo