Email Settings API (Sendas)

65 views
Skip to first unread message

Timothy Suffredini

unread,
Mar 2, 2012, 6:11:03 PM3/2/12
to google-app...@googlegroups.com
Hello all,

I'm having a bit of a problem with the Sendas options with the Email Settings API.  I have verified that I can create sendas addresses for users in our Google Apps domain when there is already an account that exists. However, I am trying to create sendas addresses for users because we have a secondary domain alias connected and verified with our account and we want the alias to be the primary sendas address.  So our primary domain is domain1.com and our alias is domain2.com, we want to make it so that all of our users at domain1.com always send mail as if if is coming from domain2.com.

Whenever we get an XML response trying to create a sendas address for an account we get the error code 1301 and the description that the EntityDoesNotExist.

I'm stumped at the moment so if anyone has any insight that would be helpful!

Thanks,

Tim

Jay Lee

unread,
Mar 3, 2012, 9:29:27 AM3/3/12
to google-app...@googlegroups.com
Hi Timothy,

Do you have sample code for this that you could show us? What about the XML request you are sending? It's hard to tell you what's wrong without seeing exactly what you are sending.

Jay

On Friday, March 2, 2012 6:11:03 PM UTC-5, Timothy Suffredini wrote:
> Hello all,
>
> I&#39;m having a bit of a problem with the Sendas options with the Email Settings API.  I have verified that I can create sendas addresses for users in our Google Apps domain when there is already an account that exists. However, I am trying to create sendas addresses for users because we have a secondary domain alias connected and verified with our account and we want the alias to be the primary sendas address.  So our primary domain is <a href="http://domain1.com" target="_blank">domain1.com</a> and our alias is <a href="http://domain2.com" target="_blank">domain2.com</a>, we want to make it so that all of our users at <a href="http://domain1.com" target="_blank">domain1.com</a> always send mail as if if is coming from <a href="http://domain2.com" target="_blank">domain2.com</a>.
>
> Whenever we get an XML response trying to create a sendas address for an account we get the error code 1301 and the description that the EntityDoesNotExist.
>
> I&#39;m stumped at the moment so if anyone has any insight that would be helpful!
>
> Thanks,
>
> Tim

Timothy Suffredini

unread,
Mar 3, 2012, 11:43:40 AM3/3/12
to google-app...@googlegroups.com
Jay,

Here is the XML request that we are sending:

<?xml version='1.0' encoding='utf-8'?><atom:entry xmlns:atom='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'><apps:property name='name' value='FirstName LastName' /><apps:property name='address' value='us...@domainalias.com' /><apps:property name='makeDefault' value='true' /></atom:entry>

We are using Oracle PL/SQL's utl.http in order to send the request to Google Apps. As I mentioned earlier, for some reason I can create a sendas address with this method for a userA if userB (the address I want to send as) already exists in our primary domain, I just cannot create one based on the domain alias.

Let me know what else you would need.

Thanks for your assistance,
Tim


On Friday, March 2, 2012 6:11:03 PM UTC-5, Timothy Suffredini wrote:

Timothy Suffredini

unread,
Mar 5, 2012, 6:36:04 PM3/5/12
to google-app...@googlegroups.com
Just as some added info,

I have gotten the sendas attribute to apply in some cases for our domain alias but the API intermittently alternates between working and not. I read in the documentation that it is recommended that a one second delay be inserted between the creation of the account and the application of a sendas alias but I have found it to require a much longer period. Now I am even more baffled that it works some of the time and not all of the time.

Any recommendations would be appreciated.


Tim

On Friday, March 2, 2012 6:11:03 PM UTC-5, Timothy Suffredini wrote:
On Friday, March 2, 2012 6:11:03 PM UTC-5, Timothy Suffredini wrote:
On Friday, March 2, 2012 6:11:03 PM UTC-5, Timothy Suffredini wrote:
On Friday, March 2, 2012 6:11:03 PM UTC-5, Timothy Suffredini wrote:
On Friday, March 2, 2012 6:11:03 PM UTC-5, Timothy Suffredini wrote:
On Friday, March 2, 2012 6:11:03 PM UTC-5, Timothy Suffredini wrote:
On Friday, March 2, 2012 6:11:03 PM UTC-5, Timothy Suffredini wrote:
On Friday, March 2, 2012 6:11:03 PM UTC-5, Timothy Suffredini wrote:
On Friday, March 2, 2012 6:11:03 PM UTC-5, Timothy Suffredini wrote:
Reply all
Reply to author
Forward
0 new messages