I get the following error:
----
From: [email protected]
To: [email protected]
Enter message, end with ^D (Unix) or ^Z (Windows):
bla bla bla
Message length is 65
send: 'ehlo [127.0.1.1]\r\n'
reply: '250-essence\r\n'
reply: '250-PIPELINING\r\n'
reply: '250-SIZE 10240000\r\n'
reply: '250-VRFY\r\n'
reply: '250-ETRN\r\n'
reply: '250-STARTTLS\r\n'
reply: '250-ENHANCEDSTATUSCODES\r\n'
reply: '250-8BITMIME\r\n'
reply: '250 DSN\r\n'
reply: retcode (250); Msg: essence
PIPELINING
SIZE 10240000
VRFY
ETRN
STARTTLS
ENHANCEDSTATUSCODES
8BITMIME
DSN
send: 'mail FROM:<[email protected]> size=65\r\n'
reply: '250 2.1.0 Ok\r\n'
reply: retcode (250); Msg: 2.1.0 Ok
send: 'rcpt TO:<[email protected]>\r\n'
reply: '250 2.1.5 Ok\r\n'
reply: retcode (250); Msg: 2.1.5 Ok
send: 'data\r\n'
reply: '354 End data with <CR><LF>.<CR><LF>\r\n'
reply: retcode (354); Msg: End data with <CR><LF>.<CR><LF>
data: (354, 'End data with <CR><LF>.<CR><LF>')
send: 'From: [email protected]\r\nto: [email protected]\r\n\r\nbla
bla bla\r
\n.\r\n'
reply: '250 2.0.0 Ok: queued as B207C1FD5A\r\n'
reply: retcode (250); Msg: 2.0.0 Ok: queued as B207C1FD5A
data: (250, '2.0.0 Ok: queued as B207C1FD5A')
send: 'quit\r\n'
reply: '221 2.0.0 Bye\r\n'
reply: retcode (221); Msg: 2.0.0 Bye
----


On Tue, 2009-06-30 at 21:10 -0700, mr.freeze wrote:
> You might try sending an email from the Python shell using the script
> below.
> (from http://docs.python.org/library/smtplib.html) It should at least
> give you an error message if it fails.
> If you can't debug postfix before your presentation tomorrow, maybe
> you could use gmail's servers.
> 
> import smtplib
> def prompt(prompt):
>     return raw_input(prompt).strip()
> fromaddr = prompt("From: ")
> toaddrs  = prompt("To: ").split()
> print "Enter message, end with ^D (Unix) or ^Z (Windows):"
> # Add the From: and To: headers at the start!
> msg = ("From: %s\r\nTo: %s\r\n\r\n"
>        % (fromaddr, ", ".join(toaddrs)))
> while 1:
>     try:
>         line = raw_input()
>     except EOFError:
>         break
>     if not line:
>         break
>     msg = msg + line
> print "Message length is " + repr(len(msg))
> server = smtplib.SMTP('localhost')
> server.set_debuglevel(1)
> server.sendmail(fromaddr, toaddrs, msg)
> server.quit()
> 
> 
> On Jun 30, 10:27 pm, Jason Brower <[email protected]> wrote:
> > I hope to get this resolved soon.  It was very unexpected.  It just
> > stopped working.  And now I have my thesis project being piloted for the
> > first time tomorrow. :(....
> > Is there anyone that can help?
> > Regards,
> > Jason Brower
> >
> >
> >
> > [ Attached Message ]From:Jason Brower <[email protected]>To:Web2py 
> > Mailing List <[email protected]>Date:Tue, 30 Jun 2009 22:01:40 
> > +0300Local:Tues, Jun 30 2009 2:01 pmSubject:email not workingIt looks like 
> > email was working, and now it's not. :(
> > I am down to static typing with still no result.
> > I have postfix installed from my ubuntu repositories.
> > I have turned off postfix and I get an error, so I figure it is getting
> > that far.
> > ---
> > def email_user(sender,message,subject, recipient):
> >     import smtplib
> >     fromaddr=sender
> >     toaddrs=recipient
> >     #msg="From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n%
> > s"%(fromaddr,toaddrs,subject,message)
> >     msg="From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n%
> > s"%("[email protected]","[email protected]","Testing","Another
> > test")
> >     server = smtplib.SMTP('localhost:25')
> >     server.sendmail(fromaddr, toaddrs, msg)
> >     server.quit()
> > ---
> > Any ideas?
> > 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to