Hi i'm new to Google App Engine.
what is Receiving Bounce Notification used for? How does it bounce a notification when there is an email ?
I also read the documentation at Google Docs but I do not understand it.
A bounce notification is when you send an email and the server returns an error. It could be the email address is invalid, the mail box is full .... So if you are planning on sending emails from your app you should setup a bounce notification catcher in case there was an error.
Related
For some reason I receive message from facebook page (with connected bot):
"Thanks for messaging us. We try to be as responsive as possible. We'll get back to you soon."
But in bot app there is no such phrase.
Whether he can send a facebook message under some conditions (such as long response from webhook)?
I'm guesssing it's an old auto response setting for that page.
Go into settings and under Response Assistant, set both of these to No:
Stay responsive when you can't get to your computer or phone
Send Instant Replies to anyone who messages your Page
I am trying to perform push notification activitiy using a cron within Google App Engine. I have setup the cron successfully and it is showing no failures. Also in logs i see that Multicasts are being created for all devices which are registered. However i am not getting any push notifications. Same code if i change using a form for sending Push notifications, its working perfectly fine. Can someone guide me on what can be the issue?
Update
Below is the form i have created where i send a POST request via form. This form takes the Message from Text area and sends it to all devices.
out.print("<form name='form' method='POST' action='sendAll'>");
out.print("<fieldset>");
out.print("<textarea rows='10' cols='100' name='Message'>Enter HTML Message </textarea>");
out.print("</fieldset>");
out.print("<input type='submit' value='Send Message' />");
out.print("</form>");
When i replace them with a normal post request which reads out the message from Data folder using below code,
getServletContext().getRequestDispatcher("/sendAll").forward(req, resp);
i get success messages in GCM Logs but doesnt receive any push notification. Can someone guide on what can be the issue?
It was nothing specific to Google App Engine. Message which was created for push notifications had issue.
I am trying to send an email from google app engine using the python 2.7 library but I keep getting Unauthorized sender in the logs. I have tried my gmail account I created the application with as the sender, I registered another gmail address as a developer and tried that but still get Unauthorized sender. I am not sure if it matters but I do have a domain name registered to this application.
Here is the code I am trying:
message = mail.EmailMessage()
message.sender = "ron.....#gmail.com"
message.subject = "Inquiry"
message.to = "ron.....#gmail.com"
message.body = "Please work"
message.send()
I have looked at other articles to no avail.
Google Appengine sending emails: [Error] unauthorized sender
InvalidSenderError: Unauthorized sender (Google App Engine)
from google.appengine.api import mail
mail.send_mail(sender="stackoverflow.com Hossam <Hossam#stackoverflow.com>",
to="rsnyder <rsnyder#stackoverflow.com>",
subject="How to send an e-mail using google app engine",
body="""
Dear rsnyder:
This example shows how to send an e-mail using google app engine
Please let me know if this is what you want.
Best regards,
""")
EDIT:
Note that sender must be an administrator of the application, so in case that you are not and administrator, follow these steps from the post google app engine: how to add adminstrator account
I found the issue. It was the wrong version of the code. I switched to a version 2 and didn't realize I had to activate it.
I was trying to send emails to my client from my application after few sent mails all mails bounces back with a message saying "You have reached a limit for sending mail. Your message was not sent." And one more thing when i see my developer console gmail api it still showing 0% usage.what is this issue? is this a bug or something else?
There's an extra limit on sending because it's a vector for abuse--it doesn't show up in the developers console but it's the same as sending via SMTP or the web interface.
This seems to have a good overview:
http://www.labnol.org/internet/email/gmail-daily-limit-sending-bulk-email/2191/
Quick question: What is the subscripiton stanza should sent from my .net app to GAE app.
Background is :
I want to have a google app engine app act as a Web end point which receives notifications from Google Mirror SDK by JSON over HTTP and relays notification back to the subscribed XMPP clients. From Google App Engine, it sends invitation and sends messages that can be seen from Google Talk client on my windows system. I want to make my .net app similar to Google talk client, i'm trying with agXMPP library, after sending subscription stanza, it throws exception and disconnects the connection.
What is the correct subscription stanza i should send?
I'm sending:
<iq to="user_name#gmail.com" id="agsXMPP_1" type="set">
<subscribe xmlns="google:push">
<item from="test_appid.appspot.com" channel="test_appid.appspot.com" />
</subscribe>
</iq>
Thanks
I tried myself and figure it out. Just accept the invitation and send IQ object like this after opening the connection:
IQ iq = new IQ();
Jid jid = new Jid("app-id#appspot.com");
iq.To = jid;
iq.From = _bareJid;
XmppCon.Send(iq);
It worked.