how can I send emails from facebookmail to my app users? - facebook

i would like to send my app users an email from Facebookmail, i have received such email from another app and i would like to do the same for my app users.
the email I have received was from this sender
"apps+kr4m4XXXXX5x#facebookappmail.com"
can someone please advise how it can be done? ( I'm aware that i can send them email directly but im looking to send them directly from facebookmail..?)
* another point to mention is by clicking "unsubscribe" link on the email - this is the link :
http://www.facebook.com/n/?editaccount.php&notifications&block=376XXXXXX2389556&t=1366XXXXX53&l=b&mid=7ddd6d3G5af3eff255b6G0G27&bcode=1.136XXXXX853.AbkyMvZyA7-3FDDD&n_m=my_email#url.com
therefore I'm pretty sure it can be done....
anyone???
** ( the XXXXX i added in order not to recognize the sender )
Thanks

You Can use the REST API which will be deprecated. Unfortunately it's not possible to send emails via Facebook through GRAPH API.
https://developers.facebook.com/docs/reference/rest/notifications.sendEmail/
the link above is broken
it looks like this
https://api.facebook.com/method/notifications.sendEmail?recipients=USER_ID&subject=YOUR_SUBJECT&text=YOUR_EMAIL_BODY&callback=YOUR_CALLBACK_URL&access_token=YOUR_ACCESS_TOKEN_HERE

Related

How can I send a form by email with titanium

I have seen the email dialog example and also the email dialog example, but I am not looking for an email client interface.
I also took a look at the pizza ordering app, and I couldn't find any method for the send button.
I have custom text fields and in the end I want to send the whole form to an email recipient. I can't find the way to do that.
That is, I would appreciate your help.
For sending E-mail from your app , you have these options :-
1- Using Titanium.UI.EmailDialog .
The Email Dialog is created with the Titanium.UI.createEmailDialog method. The user needs to register an e-mail account on the device in order to open the dialog. The dialog will not open when there is not a registered e-mail account.
Ex : Android
Read more http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.EmailDialog
But As you said you don`t want like this ! and if you want to send direct messages from your app please see these other options :-
2- Make any backend service like #PHP to send email
for ex:- http://www.w3schools.com/php/func_mail_mail.asp, and using Titanium.Network.HTTPClient to connect with your backend service .
3- Using ArrowDB
Enjoy !
Follow these steps,
1) Create webservice method to send email.
2) Call particular email method in the button click.
Note :
Apple will not approve if you don't provide valid reason to send email via webservice. They might think you are trying to spam users.
Create a web service (e.g. a PHP script) that receives POST data and send an email based on it.
In your app, clicking the button simply collects all the data and POST it to your web service.
You can not check this on emulator/simulator only can check on device. And in device you need to configure any email account like gmail or outlook mail.
var emailDialog = Ti.UI.createEmailDialog();
emailDialog.subject = "Hello from Titanium";
emailDialog.toRecipients = ['foo#yahoo.com'];
emailDialog.messageBody = '<b>Appcelerator Titanium Rocks!</b>';
var f = Ti.Filesystem.getFile('cricket.wav');
emailDialog.addAttachment(f);
emailDialog.open();

Send email to users gmail contacts or yahoo mail contacts or LinkedIn connections

I am working on website with symfony where users create a page which is publicly viewable and I need to do something so that the users can send an email to their gmail or yahoo or LinkedIn or Facebook contacts(they can choose to whom the mail should go, it's like sending invitations to their mail contacts) about the site saying all about its greatness. I have no idea on what this process called or how to do this ? Do I need to use any Apis or ?
Usually this is done with several invitation channels:
simple email input field
https://developers.facebook.com/docs/plugins/send-button - with Facebook App, but no API call needed, you can just create the code with the code generator
Not sure if there is a possibility to share something with specific LinkedIn accounts, but i assume that you need to use their API: https://developer.linkedin.com/apis

New #facebook.com email - API Howto?

With the new #facebook.com emails being available for all users I'm wondering if there is an Graph API call that can be made to obtain a users facebook email address?
From what I've seen you can simple take the users alias (as we see in the URL) and slap on the #facbook.com to get the email. Until I cam across a friend who had his FB Id instead of the alias listed on his account.
I tested this by sending an email to myself using myid#facebook.com and myalias#facebook.com. The ID failed to send while the alias sent and was received with no issues.
Ideas?
Thanks.
Some people can receive mails from both ID#facebook.com and ALIAS#facebook.com, and some people cannot receive ID#facebook.com with an mailer error saying that it's not in their address book.
I wasn't able to see any pattern here, it was random. Not sure this is an error or a spec.

Automatic email from iphone application

I have seen some similar questions here on stack-overflow, but in my application i want when user click on confirm button automatic email go to the email id specified in the form with other details.
How can i implement this.
You could just make a post request to a server and have the server then send the email.
You cannot send emails automatically without sending the user to the mail application. You could however, take advantage of a third party service like Amazon Simple Email Service http://aws.amazon.com/ses/ to send the message.

Facebook proxy email not arriving -- do I need permissions?

I'm building a website that allows user to connect using Facebook Connect. So far I'm able to log the user in and fetch data about them (name, email, pic, etc.). If I fetch the email (using Users.getInfo) I get a proxied email (apps+blahblah#facebook.com), which is absolutely great. Problem is, that email doesn't work. I've tried sending an email to it and I never received it. There are two reasons I see that could cause this:
I don't have enough permissions. Ok, I can understand that, but if I don't have enough permissions then why are they returning an email at all?
The email has to be somehow sent from the application itself (I've tried sending it from my Gmail account) -- but how would Facebook know that the email is coming from the application?
So which is it? Or is it something else?
I have recently been looking into this as well.
I did find some guidelines on http://www.insidefacebook.com/2010/01/15/facebook-platform-email-sharing-api-proxy-email-service-going-live-in-5-days/
here is the most important part:
Emails you send must clearly indicate that they are from you and must not appear to be from Facebook or anyone else. For example, you must not include Facebook logos or brand assets in your emails, and you must not mention Facebook in the subject line, “from” line, or body header. All emails to users must originate from the same domain, and you must provide us with the name of that domain in the Facebook Developer application used to manage your application.
I have already found that if you do not have the address in the from as #facebookappmail.com
might even have to be appname#facebookappmail.com the emails will bounce. So sending from your gmail will not work, the "blah blah blah" in the proxy contains the application information of the application that had the permissions to get that email.