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
>
> 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
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
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?
>
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
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
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
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
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
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
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!!"
--
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
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()
>
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
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
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
> [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
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
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
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
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?
>
[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)
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
[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
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
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
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
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
"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
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
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
"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
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
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
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
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
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
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
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
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:
# -*- 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
41 matches
Mail list logo