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

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.

Related

How to send email with HTML body in Flutter's web?

I am using the mailer package. However, the mailer package does not support web. Suddenly I thought that the package url_launcher can send emails and support the web.
However, I have a question, how can I make the body HTML? Or is this not a solution for sending emails with HTML body?
I didn't include the code because I don't think the code has anything to do with this.
If you need more info feel free to leave a comment!
How to send email with HTML body in Flutter's web? I would appreciate any help. Thank you in advance!
For a few of my recent projects built for web I was using firebase, and could simply add the Firebase Mail Extension, which allows you to push a document to a specific collection with data such as the target email address, subject, and body (included HTML). The extension then triggers the email to be sent through SMTP.
Read more about it here

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.

How to send emai using SMTP server in iphone sdk without using Composer Window?

Here In My app, There is a case where User registering a form
He will give his mail id in one textfield. After Complete the form I need to send a mail to User for conformation of his registering.
Any one can help me please.
Thanks In Advance
I don't think its the right way to send email from the phone to the user's email id. You need to process the form at a remote server and it should send the confirmation email which most of the phone apps with user registration do. If you are going to save the user data locally, there will be several problems and the top problem would be rejection of the app from apple.
actually its pretty simple, you just have to connect to mail server and send commands
http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol

send mail in background in 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