SMTPlib Emailing Attachments
Bill
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