Flutter email sender doesn't send, only create email - flutter

I want to send email in background.
Im using example from https://pub.dev/packages/flutter_email_sender
final Email email = Email(
body: 'Email body',
subject: 'Email subject',
recipients: ['smth#gmail.com'],
isHTML: false,
);
await FlutterEmailSender.send(email);
But letter does'n sends. It only creates on screen. What should i do to send it without user's actions.

You can't send email without user agreement because it is not safety (if you can do it anybody can send spam messages to other users by email). This plugin just opens default email app on device.

Related

SAP BW SMTP unique sender

I've configured SMTP on BW4HANA.
Everything works correctly only if the user that send the email have a certain email setted in SU01 (Example: testemail#test.com), if an user, with a personal email setted in SU01, try to send an email receive an error like "...not authorized to send as...".
What i want is that every user have their own personal email setted in SU01 but when they send an email this will be send using testemail#test.com. Basically i want that every email will be send with testemail#test.com address even if the user that send the email have another email setted in SU01. it's possible ? how ? can the parameter SMTP_TECH_SENDER help in this ?

Change email username in email sent by Sendgrid

I created a sendgrid plugin inside strapi enviorment.
I need to change the defaukt email sending user name into another one
eg: defaultEmail : test123#gmail.com
Once the sendgrid send the email to user it should receive the username as
Team Test
But it receiving test123.
I changes the username from gmail setting also but it did not change
To set the from name of an email sent from SendGrid you need to pass the name and email address to the API as an object.
For example:
const sg = require("#sendgrid/mail");
const message = {
from: {
email: "test123#gmail.com",
name: "Team Test"
},
...otherEmailOptions
};
sg.setApiKey(process.env.SENDGRID_API_KEY);
sg.send(message);
Note that your Gmail settings will not affect any emails you send using SendGrid. When you send an email through SendGrid, it is sent independently of any other service or servers on which you can send email with that address.

Detecting bounced email in a gmail integration

We want to provide a Gmail integration to help users find out all bounced emails. What will be the best way to do it? A user sent an email to xxxx#thiswillbounce.com and then got back a bounced email from the email server. From the gmail API, we can see bunch of headers from the bounced email. Can we use these headers to detect this is a bounced email programmatically?
Bounced email's headers:
{
"name": "Subject",
"value": "Undeliverable: Test Mail"
},
{
"name": "From",
"value": "Microsoft Outlook <MicrosoftExchange329e71ec88ae4615bbc36ab6ce41109e#outlook.com>"
}
...
You can use Gmail Search to detected bounced emails and they mostly have mailer-daemon as the sender.
from:(mailer-daemon#google.com OR mailer-daemon#googlemail.com)
You can then parse the plain text part of the raw message to detect the original recipient where the message was sent to.
I also wrote a tutorial on detecting bounced emails in Gmail with Google Scripts.

E-Mail: Send copy to sender - Swift

I am using MFMailComposeViewController to send an email to someone's email address which was entered by the app's user munally.
Can I send a copy of that email to the sender of the email (the user)?
Note:
I know, I cannot get the user's email address for privacy reasons.
I'm looking for a way that spares the user entering his own email address

Is there a way to send emails with google scripts (sheets) not from gmail

With google scripts you can send emails from your drive spreadsheets, which works pretty neat.
MailApp.sendEmail(emailAddress, subject, message);
But I want to send email from my own emailadres using my own smtp .
Is there a way to send email from google scripts, what don't come from your gmail address?
You can add your email address as an alias in your Gmail account. You can then specify the alias in the sendEmail function as shown in this snippet:
MailApp.sendEmail(to, subject, body, {
from: "alias#example.com",
name: "Sender's Name"
});