Re: Sending Email using examples From Tutorials

2018-01-28 Thread Skip Montanaro
Your code is fine, ... In addition to what Jason wrote, note that the way you need to authenticate to most email servers has changed substantially since this tutorial example was written. The OP has a yahoo.com email address. Even assuming you used something like smtp.yahoo.com as the SMTP server

Re: Sending Email using examples From Tutorials

2018-01-27 Thread Jason Friedman
> > import smtplib > server = smtplib.SMTP('localhost') > server.sendmail('gg77gal...@yahoo.com', > """To: gg.gal...@gmail.com > From: gg77gal...@yahoo.com > > Beware the Ides of March. > """) > server.quit() > > when running this I get the following message. Please help: > > Traceback (most recent

Sending Email using examples From Tutorials

2018-01-27 Thread Gg Galvez
I am having difficulty getting the python script to send an email to work. Here is the code I use from among a number of other examples which I used. The only changes I made were the email addresses, so I can see the result if it works. If you have any suggestions, please email your reply also t

Re: Why from en to two times with sending email

2015-05-04 Thread Cecil Westerhof
Op Monday 4 May 2015 21:48 CEST schreef Ian Kelly: > On Mon, May 4, 2015 at 12:59 PM, Cecil Westerhof wrote: >> I want to change an old Bash script to Python. When I look at: >> https://docs.python.org/2/library/email-examples.html >> >> Then from and to have to be used two times? Why is that? >

Re: Why from en to two times with sending email

2015-05-04 Thread Ian Kelly
On Mon, May 4, 2015 at 12:59 PM, Cecil Westerhof wrote: > I want to change an old Bash script to Python. When I look at: > https://docs.python.org/2/library/email-examples.html > > Then from and to have to be used two times? Why is that? Once to construct the message headers, and once to inst

Why from en to two times with sending email

2015-05-04 Thread Cecil Westerhof
I want to change an old Bash script to Python. When I look at: https://docs.python.org/2/library/email-examples.html Then from and to have to be used two times? Why is that? -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof -- https://mail.pytho

Sending email in python

2011-07-04 Thread vijay swaminathan
Hi All, I read through the smtplib and email modules of python and have come up with a simple program to send a email as an attachment. This module sends out an email but not as an attachment but in the body of the email. Any problem with this code? any insight would be greatly appreciated. impo

Sending email via proxy

2011-02-13 Thread Jason Sergeant
Hello, Is chilkat the best option for doing this?(Sending email via proxy) Kind Regards, Jason Sergeant This email has been processed by SmoothZap - www.smoothwall.net -- http://mail.python.org/mailman/listinfo/python-list

python smtp gmail authentication error (sending email through gmail smtp server)

2009-09-05 Thread online
Hi all, I have the following code import smtplib from email.mime.text import MIMEText smtpserver = 'smtp.gmail.com' AUTHREQUIRED = 1 # if you need to use SMTP AUTH set to 1 smtpuser = 'ad...@myhost.com' # for SMTP AUTH, set SMTP username here smtppass = '123456' # for

Re: Sending email

2009-08-30 Thread John Haggerty
I would concur On Fri, Aug 28, 2009 at 9:49 AM, 7stud wrote: > On Aug 28, 8:18 am, Fencer > wrote: > > 7stud wrote: > > > > [snip] > > > > Thanks for your reply. After consulting the sysadmins here I was able to > > get it to work. > > > > - Fencer > > > Ok, but how about posting your code so t

Re: Sending email

2009-08-30 Thread 7stud
On Aug 28, 8:18 am, Fencer wrote: > 7stud wrote: > > [snip] > > Thanks for your reply. After consulting the sysadmins here I was able to > get it to work. > > - Fencer Ok, but how about posting your code so that a future searcher will not be left screaming, "WHAT THE EFF WAS THE SOLUTION!!" --

Re: Sending email

2009-08-28 Thread Fencer
7stud wrote: [snip] Thanks for your reply. After consulting the sysadmins here I was able to get it to work. - Fencer -- http://mail.python.org/mailman/listinfo/python-list

Re: Sending email

2009-08-28 Thread 7stud
On Aug 28, 2:37 am, Fencer wrote: > Hello, I'm using Python version 2.6.2 and I discovered it has built-in > libraries for sending email (imports smtplib and email). On the web I > discovered how to send mail through smtp.gmail.com: > > mail_server = smtplib.SMTP() >

Sending email

2009-08-28 Thread Fencer
Hello, I'm using Python version 2.6.2 and I discovered it has built-in libraries for sending email (imports smtplib and email). On the web I discovered how to send mail through smtp.gmail.com: mail_server = smtplib.SMTP() mail_server.connect('smtp.gmail.com') m

Re: web site feedback page using python for sending email

2008-11-14 Thread Philip Semanchuk
On Nov 14, 2008, at 1:48 PM, KAM.covad wrote: Here is a great reference: http://www.thinkspot.net/sheila/staticpages/index.php?page=gypsymail However, the code will not work for an SMTP site like gmail that requires authentication. Anyone know of a site that has that code? I am a nube with

web site feedback page using python for sending email

2008-11-14 Thread KAM.covad
Here is a great reference: http://www.thinkspot.net/sheila/staticpages/index.php?page=gypsymail However, the code will not work for an SMTP site like gmail that requires authentication. Anyone know of a site that has that code? I am a nube with python and am looking for a way to learn as well a

Re: How to avoid a warning message box when sending email via Outlook

2006-08-31 Thread Steve M
> [Dermot Doran] > > | I'm very new to using win32com! I just want to send an email > | message via Outlook. However, I keep getting an annoying > | message box (generated by Outlook) indicating that my program > | could be a virus. Does anybody know how to get around this? The users in our of

Re: How to avoid a warning message box when sending email via Outlook

2006-08-31 Thread Grant Edwards
On 2006-08-31, Tim Golden <[EMAIL PROTECTED]> wrote: > [Dermot Doran] > >| I'm very new to using win32com! I just want to send an email >| message via Outlook. However, I keep getting an annoying >| message box (generated by Outlook) indicating that my program >| could be a virus. Does anybod

Re: How to avoid a warning message box when sending email via Outlook

2006-08-31 Thread Dermot Doran
Thanks Tim!   We have smtp bolted to the floor :-(  On 31/08/06, Tim Golden <[EMAIL PROTECTED]> wrote: [Dermot Doran]| looks like I might be back to the drawing board :-(  Thanks| for letting me know what your experiences have been. Just to elaborate slightly on that experience, if all I wantto do

Re: How to avoid a warning message box when sending email via Outlook

2006-08-31 Thread Dermot Doran
Hi Giles,   Yep, the admin can override this.  I've been doing some of my own hunting around and it would appear that you can: - Resolve this if you have admin rights. - Use Outlook Redemption http://www.dimastr.com/redemption/ - Use Extended MAPI - Install ClickYes http://www.contextmagic.com/ - H

Re: How to avoid a warning message box when sending email via Outlook

2006-08-31 Thread Giles Brown
Tim Golden wrote: > [Dermot Doran] > > | I'm very new to using win32com! I just want to send an email > | message via Outlook. However, I keep getting an annoying > | message box (generated by Outlook) indicating that my program > | could be a virus. Does anybody know how to get around this? >

RE: How to avoid a warning message box when sending email via Outlook

2006-08-31 Thread Tim Golden
[Dermot Doran] | looks like I might be back to the drawing board :-( Thanks | for letting me know what your experiences have been. Just to elaborate slightly on that experience, if all I want to do is to send an email (ie not look up addresses on Contacts or do any fancy Outlook-related thing)

Re: How to avoid a warning message box when sending email via Outlook

2006-08-31 Thread Dermot Doran
Hi Tim,   looks like I might be back to the drawing board :-(  Thanks for letting me know what your experiences have been.   I'm kind of surprised that it works this way since the ns.logon() allows me to access the Outlook address book without any problems.  Without the logon I get another warning

RE: How to avoid a warning message box when sending email via Outlook

2006-08-31 Thread Tim Golden
[Dermot Doran] | I'm very new to using win32com! I just want to send an email | message via Outlook. However, I keep getting an annoying | message box (generated by Outlook) indicating that my program | could be a virus. Does anybody know how to get around this? As far as I've ever been a

How to avoid a warning message box when sending email via Outlook

2006-08-31 Thread Dermot Doran
Hello All,   I'm very new to using win32com!  I just want to send an email message via Outlook.  However, I keep getting an annoying message box (generated by Outlook) indicating that my program could be a virus.  Does anybody know how to get around this?  Here is the sample code I'm using: from w

Re: sending email with charset utf-8 but subject is not coded properly

2006-04-14 Thread Rene Pijlman
Grzegorz ¦lusarek: >I sending email using standard python modules smtplib, email, >coding email in utf but subject of message is not coded properly. In >subject i use my national characters (polish) and after send i get XX in >place these characters. >Here is the

sending email with charset utf-8 but subject is not coded properly

2006-04-14 Thread Grzegorz Ślusarek
Hi all. I sending email using standard python modules smtplib, email, coding email in utf but subject of message is not coded properly. In subject i use my national characters (polish) and after send i get XX in place these characters. Here is the code Message = email.message_from_string

Re: Sending email in utf-8?

2005-11-09 Thread morphex
By turning everything into unicode objects (unicode(string)) and then running body.encode('utf-8') and using quoted printable, it works. Thanks for all the help, it's really appreciated! -- http://mail.python.org/mailman/listinfo/python-list

Re: Sending email in utf-8?

2005-11-08 Thread Fredrik Lundh
"morphex" <[EMAIL PROTECTED]> wrote: > """ > Date: Mon, 7 Nov 2005 11:38:29 -0700 (MST) > Message-Id: <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED], [EMAIL PROTECTED] > From: [EMAIL PROTECTED] > Subject: Order confirmation > Content-Type: text/plain; charset="utf-8" > X-Bogosity: No, tests=bogofilt

Re: Sending email in utf-8?

2005-11-08 Thread Max M
morphex wrote: > That works, kinda. I get strange characters now like this > > """ > Date: Mon, 7 Nov 2005 11:38:29 -0700 (MST) > Message-Id: <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED], [EMAIL PROTECTED] > From: [EMAIL PROTECTED] > Subject: Order confirmation > Content-Type: text/plain; charset

Re: Sending email in utf-8?

2005-11-07 Thread morphex
That works, kinda. I get strange characters now like this """ Date: Mon, 7 Nov 2005 11:38:29 -0700 (MST) Message-Id: <[EMAIL PROTECTED]> To: [EMAIL PROTECTED], [EMAIL PROTECTED] From: [EMAIL PROTECTED] Subject: Order confirmation Content-Type: text/plain; charset="utf-8" X-Bogosity: No, tests=bo

Re: Sending email in utf-8?

2005-11-07 Thread Fredrik Lundh
"morphex" <[EMAIL PROTECTED]> wrote: > I have an email that's in the utf-8 encoding, and I'm getting this > error message when I try to send it using smtplib: > >* Module smtplib, line 688, in sendmail >* Module smtplib, line 485, in data >* Module smtplib, line 312, in send >* Mod

Sending email in utf-8?

2005-11-07 Thread morphex
Hi, I have an email that's in the utf-8 encoding, and I'm getting this error message when I try to send it using smtplib: * Module smtplib, line 688, in sendmail * Module smtplib, line 485, in data * Module smtplib, line 312, in send * Module socket, line 1, in sendall UnicodeEnc

Re: Administrative prohibition error when sending email

2005-08-04 Thread Lad
I solved the problem. The reason was uncomplete email message msg should be like this timezone = ' %+03d%02d' % (-time.timezone/3600, time.timezone%3600) MessageSubject="This is a subject" BodyMessage="This is a body" msg='From: '+fromaddr+' <'+fromaddr+'>\nTo: '+toaddrs+'<'+toaddrs+'>\nDate: '+ t

Administrative prohibition error when sending email

2005-08-03 Thread Lad
I use a new webhosting provider and I can not send an email from my script. This is the script that I use to test the connection ### import smtplib,poplib, #I first login to my POP3 account M=poplib.POP3('www.mywebh.com') M.user('MYWeb) M.pass_('12345') print M.pass_ #check if

Re: [perl-python] sending email

2005-01-30 Thread Chris Mattern
YYusenet wrote: > Xah Lee wrote: > [snip] >> >> The first two has glaring problems. I'm sorry i forgot what they >^ ^^ >> are. > > [snip] > > How can you complain about *Mail::Mailer* and *Mail::Send* when you > don't even k

Re: [perl-python] sending email

2005-01-30 Thread YYusenet
Xah Lee wrote: [snip] The first two has glaring problems. I'm sorry i forgot what they ^ ^^ are. [snip] How can you complain about *Mail::Mailer* and *Mail::Send* when you don't even know what they are? -- k g a b e r t (at) x

Re: [perl-python] sending email

2005-01-30 Thread Tad McClellan
Jürgen Exner <[EMAIL PROTECTED]> wrote: > Xah Lee wrote: > [...] >> Here's how the situation stands as of 2001 March: > ^^ > > Well, at least now we know why Mr. Lee is a little bit behind Mr. Lee is a *big* behind! -- Tad McClellan

Re: [perl-python] sending email

2005-01-30 Thread Jürgen Exner
Xah Lee wrote: [...] > Here's how the situation stands as of 2001 March: ^^ Well, at least now we know why Mr. Lee is a little bit behind jue -- http://mail.python.org/mailman/listinfo/python-list

Re: [perl-python] sending email

2005-01-29 Thread Dan Perl
I recommend the example in the Python Library Reference as a better example: http://www.python.org/doc/lib/SMTP-example.html. You can also find the entire description of the smtplib module in the same section (http://www.python.org/doc/lib/module-smtplib.html). Xah Lee's example is missing:

[perl-python] sending email

2005-01-29 Thread Xah Lee
# -*- coding: utf-8 -*- # Python # Suppose you want to spam your friend, and you have lots of # friends. The solution is to write a program to do it. After a gander # at python docs, one easily found the module for the job. # see http://python.org/doc/2.3.4/lib/SMTP-example.html # the code is a b