Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > help with sending mail in Program

Reply
Thread Tools

help with sending mail in Program

 
 
Ivan Shevanski
Guest
Posts: n/a
 
      06-06-2005

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, but
I can't figure out how to include my variables in it, such as the questions
I ask them. Can someone explain this to me?
-Ivan

__________________________________________________ _______________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement

 
Reply With Quote
 
 
 
 
Chris Curvey
Guest
Posts: n/a
 
      06-06-2005
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.

 
Reply With Quote
 
 
 
 
Fuzzyman
Guest
Posts: n/a
 
      06-07-2005


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 figured out how to send with it, but
> I can't figure out how to include my variables in it, such as the questions
> I ask them. Can someone explain this to me?
> -Ivan
>

If you look at the cgiutils module at :
http://www.voidspace.org.uk/python/recipebook.shtml

It contains a couple of different functions for sending emails from
Python. One using SMTP (either with a login or without), or using the
sendmail program.

You pass the body of the message to them as a string - so it will be
easy enough to construct the string in the way you want.

Regards,


Fuzzy
http://www.voidspace.org.uk/python


> __________________________________________________ _______________
> On the road to retirement? Check out MSN Life Events for advice on how to
> get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Failure Sending Mail" when using System.Net.Mail and ASP.Net 2.0 HoustonComputerGuy@gmail.com ASP .Net 4 09-28-2007 03:57 PM
problem sending mail: Sending the email to the following server failed Luke Java 2 03-15-2007 10:54 AM
pls help me when i sent mail, it vil sending twice instead of once ,am using java.mail,am sending my code.... shailajabtech@gmail.com Java 0 09-28-2006 06:38 AM
Re: help with sending mail in Program Ivan Shevanski Python 1 06-16-2005 06:29 AM
Re: help with sending mail in Program Ivan Shevanski Python 5 06-09-2005 12:33 PM



Advertisments