I Am Building a flutter web i have to send form Data by email to my Gmail email address How Can i. Please Help Me. I had User "mailer 3.0.4" and flutter_email_sender: ^2.2.2 But They Both are not working... Here Is My Code:
// Perform login or signup
Future<void> _validateAndSubmitForInformationForm() async {
print('1');
final MailOptions mailOptions = MailOptions(
body: 'a long body for the email <br> with a subset of HTML',
subject: 'the Email Subject',
recipients: ['bc160201844@vu.edu.pk'],
isHTML: true,
bccRecipients: ['bc160201844@vu.edu.pk'],
ccRecipients: ['bc160201844@vu.edu.pk'],
// attachments: [
// 'path/to/image.png',
// ],
);
print('3');
await FlutterMailer.send(mailOptions);
print('2');
}