Re: [Tutor] need help with sending email

2007-01-06 Thread Luke Paireepinart
shawn bright wrote:
 this is really cool. working too,
 we have one provider now that it does not work with, but i think its 
 them this time.
 thanks for your help on this
Just wondering -
do you guys buy SMS messages or is there some way to communicate with 
text message users for free?
Thanks,
-Luke
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] need help with sending email

2007-01-06 Thread Christopher Arndt
Luke Paireepinart schrieb:
 Just wondering -
 do you guys buy SMS messages or is there some way to communicate with 
 text message users for free?

There are some providers that give you a certain amount of SMS per month for
free, even if you only have a prepaid SIM card. O2 Ireland is an example. But I
guess the terms of service would forbid to use the web interfaces 
programmatically.

But I guess Shawn was talking about another way: most mobile phone providers
have an Email-to-SMS gateway where the receiver pays for emails to his
address/phone and therefore needs to activate it.

Chris
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] need help with sending email

2007-01-06 Thread Alan Gauld
Luke Paireepinart [EMAIL PROTECTED] wrote

 do you guys buy SMS messages or is there some way to communicate 
 with
 text message users for free?

Just to blow my own companies trumpet for once, if you sign
up to our new Web21C SDK you get a certain number of SMS
messages/month for free as part of the sign up deal (which is
also free).

The SDK is in C# :-(
Although it should be possible to use it from IronPython with
relatively little work.

They are working on a Java version which will work from Jython,
and I think is due shortly.

http://sdk.bt.com

This project is the first of several SDK initiatives to make the
new VoIP core network available to developers to create the
next generation of communication applications.

This page lists whats available:
http://sdk.bt.com/Services/tabid/40/Default.aspx

Hope its of interest to someone...


-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] need help with sending email

2007-01-05 Thread Mike Hansen
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of shawn bright
 Sent: Friday, January 05, 2007 10:18 AM
 To: tutor-python
 Subject: [Tutor] need help with sending email
 
 lo there all.
 
 i am in a tight spot because i need to send an email that it 
 mime encoded plain-text ( not html or anything )
 no attachements, no images, just text from a string. like 
 message = 'some message' 
 all the tutorials i find out there, and the cookbook recipies 
 are for sending multipart messages, attachments, etc..
 this needs to be simple, but needs to be able to reach a 
 large variety of cell phone text message receivers. 
 
 anyone know of a good tutorial or recipe out there ?
 
 thanks,
 shawn
 

This might help:

http://effbot.org/librarybook/smtplib.htm 

Also, the docs on smtplib:

http://docs.python.org/lib/module-smtplib.html

Mike
-

  NOTICE:  This e-mail transmission and any documents or files attached to
  it contain information for the sole use of the above-identified individual or 
entity.

  Its contents may be privileged, confidential, and exempt from disclosure 
under the law.
  Any dissemination, distribution, or copying of this communication is strictly 
prohibited.

  Please notify the sender immediately if you are not the intended recipient.

FGNS
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] need help with sending email

2007-01-05 Thread shawn bright

right, thanks, Mike.
i can send an email fine. Some of the providers we are trying to reach will
reject anything that is not content type: text-plain

thats what i need to know how to add.

thanks again
shawn

On 1/5/07, Mike Hansen [EMAIL PROTECTED] wrote:




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of shawn bright
 Sent: Friday, January 05, 2007 10:18 AM
 To: tutor-python
 Subject: [Tutor] need help with sending email

 lo there all.

 i am in a tight spot because i need to send an email that it
 mime encoded plain-text ( not html or anything )
 no attachements, no images, just text from a string. like
 message = 'some message'
 all the tutorials i find out there, and the cookbook recipies
 are for sending multipart messages, attachments, etc..
 this needs to be simple, but needs to be able to reach a
 large variety of cell phone text message receivers.

 anyone know of a good tutorial or recipe out there ?

 thanks,
 shawn


This might help:

http://effbot.org/librarybook/smtplib.htm

Also, the docs on smtplib:

http://docs.python.org/lib/module-smtplib.html

Mike


-

  NOTICE:  This e-mail transmission and any documents or files attached to
  it contain information for the sole use of the above-identified
individual or entity.

  Its contents may be privileged, confidential, and exempt from disclosure
under the law.
  Any dissemination, distribution, or copying of this communication is
strictly prohibited.

  Please notify the sender immediately if you are not the intended
recipient.

FGNS


___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor



___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] need help with sending email

2007-01-05 Thread Kent Johnson
shawn bright wrote:
 right, thanks, Mike.
 i can send an email fine. Some of the providers we are trying to reach 
 will reject anything that is not content type: text-plain
 
 thats what i need to know how to add.

The first example on this page seems to do what you want:
http://docs.python.org/lib/node162.html

Kent

___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] need help with sending email

2007-01-05 Thread Christopher Arndt
shawn bright schrieb:
 lo there all.
 
 i am in a tight spot because i need to send an email that it mime
 encoded plain-text ( not html or anything )
 
 anyone know of a good tutorial or recipe out there ?

Simplified example from http://www.python.org/doc/current/lib/node162.html:

# Import the email modules we'll need
from email.MIMEText import MIMEText

# Create a text/plain message
msg = MIMEText(Hello World!)

# me == the sender's email address
# you == the recipient's email address
msg['Subject'] = 'This is a test message'
msg['From'] = 'me'
msg['To'] = 'you'

# Print string repreentation of message
print msg.as_string()


Outputs:

Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: This is a test message
From: me
To: you

Hello World!
___
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor