Re: help with sending mail in Program

2005-06-16 Thread Tim Williams
- 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

Re: help with sending mail in Program

2005-06-15 Thread Ivan Shevanski
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

Re: help with sending mail in Program

2005-06-11 Thread Tim Williams
- 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

Re: help with sending mail in Program

2005-06-09 Thread Tim Williams
- 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 > > > >'''

Re: help with sending mail in Program

2005-06-09 Thread Ivan Shevanski
#!/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

Re: help with sending mail in Program

2005-06-09 Thread Tim Williams
- 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

Re: help with sending mail in Program

2005-06-09 Thread Ivan Shevanski
>>#!/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

Re: help with sending mail in Program

2005-06-09 Thread Kent Johnson
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

Re: help with sending mail in Program

2005-06-09 Thread Peter Hansen
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

Re: help with sending mail in Program

2005-06-09 Thread Kent Johnson
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

Re: help with sending mail in Program

2005-06-08 Thread Tim Roberts
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

Re: help with sending mail in Program

2005-06-07 Thread Kent Johnson
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

Re: help with sending mail in Program

2005-06-07 Thread Fuzzyman
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

Re: help with sending mail in Program

2005-06-06 Thread Ivan Shevanski
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

Re: help with sending mail in Program

2005-06-06 Thread Ivan Shevanski
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 __

Re: help with sending mail in Program

2005-06-06 Thread Chris Curvey
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

help with sending mail in Program

2005-06-06 Thread Ivan Shevanski
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,