On Sat, Mar 5, 2011 at 11:11 PM, Littlefield, Tyler <ty...@tysdomain.com>wrote:

> >ourEmail = '
> myemaila...@gmail.com'
>
> >ourEmail = '
> q...@xxx.com'
>
>   You redefine this twice.
>

Right. The second definition, of course, overwrites the first. That is
deliberate. I simply comment out the second when I'm testing. The second is,
of course, bogus. But it works while the first doesn't!!! WHY???


> You also don't define a variable down lower.
> >#      to_address = ourEmail,
>
> >      from_address = ourEmail,
> >      to_address = emailText,
> I could be wrong, but emailText isn't defined.
>

No, in fact, emailText *is* defined. And it, too, works, *unless* it's going
to a gmail address!! In fact, I just now tested it, commenting out the
second bogus email address, and using another gmail address but different
than the one defined as ourEmail, and everything works as expected.
Therefore, it appears that gmail, for whatever reason, filters out emails
send to the same address from which they are sent.
Thanks,
Beno
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to