All pastes #125405 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-08-10 16:55 UTC
rendered paste body
# Import a standard function, and get the HTML request and response objects.
from Products.PythonScripts.standard import html_quote
request = container.REQUEST
RESPONSE =  request.RESPONSE

# assunto,mensagem
mailhost = context.MailHost
email = "portal@grupocampofert.com.br" #remetente

mail_to = "fernandopaiva@grupocampofert.com.br" #email para
mail_msg = request.get('mensagem')              #mensagem do email
mail_subj = request.get('assunto')              #assunto do email
mail_from = '%s <%s>' % (email,mail_subj)       #email do remetente e assunto

mailhost.send(mail_msg, mail_to, mail_from, mail_subj)