",
attachmentPaths: [],
attachmentNames: [],
attachmentTypes: []
})
.then(success=>{
// this.setState({loading:false});
alert("Message sent successfully. We will respond you within next 2 working days. Thank you for your patience.");
})
.catch(err=>{
// this.setState({loading:false});
alert("Could not send message due to some error. Please contact us through our helpline Number. "+err);
});
}
I have been running into this issue. I'm quite new to react-native so I may be missing something.
I used npm to install and followed the extra steps and installed the podfile.
And of course I am importing at the top of my file
Implementation below, any help would be appreciated!
sendEmail = () => { RNSmtpMailer.sendMail({ mailhost: "smtp.gmail.com", port: "465", ssl: true, username: "circuitlab.the@gmail.com", password: "****", recipients:"kevingrzela@yahoo.com", subject:"test", htmlBody:"
"+"foo"+"
", attachmentPaths: [], attachmentNames: [], attachmentTypes: [] }) .then(success=>{ // this.setState({loading:false}); alert("Message sent successfully. We will respond you within next 2 working days. Thank you for your patience."); }) .catch(err=>{ // this.setState({loading:false}); alert("Could not send message due to some error. Please contact us through our helpline Number. "+err); }); }