A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2003-September/200291.html below:

SMTPlib Emailing Attachments

SMTPlib Emailing Attachments SMTPlib Emailing AttachmentsBill bblancett at hotmail.com
Fri Sep 19 09:09:57 EDT 2003
Thanks Richie this corrected my error. I appreciate it.

Richie Hindle <richie at entrian.com> wrote in message news:<mailman.1063891936.20380.python-list at python.org>...
> [Bill]
> > IOError: [Errno 2] No such file or directory: 'C:\\Email\test.txt'
>                                                    ^^     ^
> 
> You've missed a backslash somewhere.  Your filename looks like
> C:\Email<tab>est.txt.  You should always do one of the following:
> 
>  o Remember to double your backslashes: "C:\\Email\\test.txt"
>  o Use raw strings for pathnames: r"C:\Email\test.txt"
>  o Use forward slashes (which are fine on Windows): "C:/Email/test.txt"


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4