now it works well, how can i get the successfully send message
in the form like if form.accepts ... (in my case response.flash)?
def einladen():
if auth.is_logged_in():
email_empfaenger=db(db.projectmember.id==request.args
(0)).select()[0]
empfaengermail=email_empfaenger.memberemail
subject='Einladung als Projektteilnehmer von 2busy'
email_user(sender='[email protected]',\
empfaenger=empfaengermail,\
message='Zum Anmelden bitte auf folgenden Link
klicken: http://www.2busy.de/projectplace',\
subject=subject)
response.flash='Einladung wurde erfolgreich versendet'
redirect(URL(r=request,c='menu',f='projectmember'))
redirect(URL(r=request,c='default/user',f='login'))
On 23 Jun., 07:58, pk <[email protected]> wrote:
> but the adress isn`t incorrect.
>
> this is my controller:
> def einladen():
> if auth.is_logged_in():
> email_empfaenger=db(db.projectmember.id==request.args
> (0)).select()[0]
> empfaengermail=email_empfaenger.memberemail
> subject='Einladung als Projektteilnehmer von '
> email_user(sender='[email protected]',\
> empfaenger=empfaengermail,\
> message='Zum Anmelden bitte auf folgenden Link
> klicken:http://www.2busy.de/projectplace',\
> subject=subject)
> response.flash='Einladung wurde erfolgreich versendet'
> redirect(URL(r=request,c='default/user',f='login'))
>
> and this is my model:
> def email_user(sender,empfaenger,message,subject="Einladung als
> Projektteilnehmer"):
> import smtplib
> fromaddr=sender
> toaddrs=empfaenger
> msg="From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n%s"%
> (fromaddr,toaddrs,subject,message)
> server = smtplib.SMTP('smtp.fh-augsburg.de:25')
> server.sendmail(fromaddr, toaddrs, msg)
> server.quit()
>
> thanks
>
> On 23 Jun., 01:51, mdipierro <[email protected]> wrote:
>
> > It says the format of the destination address is (addresses are)
> > incorrect.
>
> > On Jun 22, 4:06 pm, pk <[email protected]> wrote:
>
> > > hi massimo,
>
> > > i got follow ticket:
> > > Traceback (most recent call last):
> > > File "gluon/restricted.py", line 107, in restricted
> > > File "/Applications/web2py/web2py1.64.3/web2py.app/Contents/
> > > Resources/applications/2busy/controllers/invite.py", line 17, in
> > > <module>
> > > File "gluon/globals.py", line 100, in <lambda>
> > > File "/Applications/web2py/web2py1.64.3/web2py.app/Contents/
> > > Resources/applications/2busy/controllers/invite.py", line 13, in
> > > einladen
> > > File "/Applications/web2py/web2py1.64.3/web2py.app/Contents/
> > > Resources/applications/2busy/models/db.py", line 81, in email_user
> > > File "smtplib.pyc", line 695, in sendmail
> > > SMTPRecipientsRefused: {'[email protected]': (550,
> > > '5.7.1 <[email protected]>... Relaying denied. Proper
> > > authentication required.')}
>
> > > i used your email app.
>
> > > how can i solve the authentication in this app?
>
> > > thanks
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---