I think you can do this when you pre-authorize the address you want to send
the mail as. Meaning you have to log into your contactus gmail account and
authorize a specific email address as authorized to send-on-behalf-of (this
requires an email sent to that address to authorize the action). Of course
this is not practical to do on behalf of all of your clients. 

Although I'm not directly familiar, I imagine you can set the reply-to
address as the original sender, and perhaps it's enough to do something like
setting the name as: "Client Name <contac...@yourdomain.com>" I think that
would work (though it's just off the top of my head). If that's as doable as
I think then it seems like it would be plenty sufficient for your internal
reps (and a bonus, they would be able to see that the email cam into
contactus and not directly to them).

Good luck with it.


-----Original Message-----
From: google-appengine@googlegroups.com
[mailto:google-appeng...@googlegroups.com] On Behalf Of voscausa
Sent: Saturday, November 06, 2010 8:21 PM
To: Google App Engine
Subject: [google-appengine] Failed tot created a smart relay agent for
inbound mail with appengine (GAE)

In Gmail you can forward messages with a filter. The receiver of this
relayed messages does not see any difference. The sender is the
original sender.   In the "delivered-to" field of the message header
you can find the relay mail address.

I tried to build the same functionality with GAE. Relaying messages in my
apps domain based on the address of the sender. So when clients send mail
to: contac...@mydomain.com , the clients mail is relayed to his personal
account manager.

But GAE does not let you not relay messages: "Unauthorized sender"
When you send mail, you are not allowed to use the original sender (any
name) as the relay sender. You have to use an address you own for the relay
sender.

Why is that? Gmail allows it and even with apps script you can specify any
name of the sender.  Is this a spam measure? App engine should have a
relaying protocol. Gmail uses a collection of forwarding addresses for this
purpose.

I also tried to send mail with the python smtplib.  It works with the SDK,
but is not allowed when you publish the script.

--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to