Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE Design Introduction “Air” Styles Mobile Design Principles Styles UX Overview Design Patterns UI Components for Tizen App Design 2.3 TV Design Principles Styles UX Overview Patterns UI Components Wearable Development Tizen Studio Overview Download Tizen Extensions for Visual Studio Family IoT extension SDK Docs Blog Blog Announcing the Tizen Studio 3.7 Release Announcing the Tizen Studio 3.1 Release Community Forums General Support Tizen .NET Web Application Development Native Application Development SDK & IDE
Sending Email using Messaging API
Hello,
I’m having a problem sending an email which has a picture attachment.
Here is my code:
function mailInit() {
var serviceListCB = function (services) {
}
function sendEmail(content, emailAddress) {
var msg = new tizen.Message(“messaging.email”);
msg.attachments = [ new tizen.MessageAttachment(“/opt/usr/media/Images/Default.jpg”, “image/jpeg”)];
msg.body.plainBody = content;
}
//caller
mailInit();
function sendMessage() {
sendEmail(“This is a test message.”, “xxxx@gmail.com”);
}
Problems:
First of all, I got an exception in this line:
msg.attachments = [ new tizen.MessageAttachment(“/opt/usr/media/Images/Default.jpg”, “image/jpeg”)];
Exception is
Secondly, I got an exception in
mailService.sendMessage and falls in the error callback function: error message is
Sorry for not organized posting but hope that helps to trace the issue.
Thanks
Christian.
BY
16 Apr 2025
Tizen Studio
BY
04 Nov 2024
Tizen Studio
BY
02 Apr 2024
Tizen Studio