send mail in background in iPhone - iphone

I want to send Email in the background of the application. I dont want to show the MailComposer Dialog box to add all the detail.
So How Can I do so ?
Thanks .

You will need to communicated directly with a specified mail server using a third-party library. If you wish to send the email using the iPhone users email account details, you will have to use Apple's mail composer dialog.

Here's a third party library that will let you send email without the Composer dialog
http://code.google.com/p/skpsmtpmessage/
-t

Related

How to send email in flutter withouth open a email app?

I'm newest in flutter.
I need help.
In one of the pages of my application, I need to send an email without opening the email application itself.
I'll explain.
I have a bug report page. For example, I need to send an email because a package has not been returned.
After filling out a form with my personal data, I need to automatically send an email.
I tried with url_lanch and mailer but either nothing happens or the gmail app opens (in the android emulator).
Can anyone help me?
use mailer package mailer to send mail. and also can make custom template using http package from the same site.

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();

How to send mail without showing the mail composer view

I am developing an iPhone application in which I have to send mail to only recipient without showing the MFMailComposer UI view (i.e without user interaction). Can please tell me how to achieve this?
You cannot send Email without user acceptance. But there are a lot of web-services in internet which can send Email. I guess some app uses those services or uses own.
See also How can I send mail from an iPhone application
You can also use the gmail mail facilities into the xcode
For that following to gives much more tutorial and source code here
Reference link
Using openURL method of UIApplication, you can send the mail without using mail composer. For that you should select "mailto" option.

sending SMS in IOS Custome SMS Composer

I am looking for sending SMS through my iPhone app.
There is a condition , i am not using the default composer of iPhone, i have designed my own design.
There is a text box and send button, so sms should go to the selected respective phone no of phone book.
I have done that with default compose, but i want to go with customize sms composer.
Please help in this case.
Thanks,
Gopal
If you want to use iOS' built-in SMS API, I'm afraid you must also use the built-in message composer (it's part of the package deal). That said, you could always use a third-party SMS gateway, and rather than send the SMS directly from the phone, you could send it via HTTP to the gateway.

Iphone SDK : Send Email in background in iphone app

Iphone sdk : how to send an email in background from an iphone app.
Based on certain selections made by the user I want to trigger an event to send an email to an admin.
I am aware of the MFMailComposeViewController but this will open the mail composer window which I want to skip.
You will need to use a third party library for that. The SDK doesn't allow you to send emails in the background.
Here's one you can use:
http://code.google.com/p/skpsmtpmessage/
This is an old question, but for anyone coming across it still you can take a look at this post. The accepted answer shows how to send the email in a background using a smtp server. It also includes an image that will "dim" the screen as the email is sent and "brighten" back up after the email is sent. Take a look at the screen shot to see what I mean.
Locking the Fields in MFMailComposeViewController