Hello,
I am trying to send an email using X++ 2009, but I don't know how to do that.
Any suggestion.
*This post is locked for comments
All right I'm going to test.
Thank you
just create new instance of mapping with no content
Map mappings = new Map(Types::string, types::string);
dont forget to run this after you run your job:
Thank you, yes i did that but I have an error in mappings when I compile, I dont know what I have to put.
SysEmailTable::sendMail(sysEmailTable.EmailId, 'en-us', 'jcsanchez0ca@gmail.com', mappings, '', '' , true, 'admin', true);
Yeah you can follow the steps on my previous reply
Then use below method
SysEmailTable::sendMail(sysEmailTable.EmailId,
'en-us', // Chosen language
'WhoYouSendThisTo@fakemail.com', // Who you're sending the email to
mappings, // Your variable mappings
'd:\\a.pdf' // Location of file attachment (server/client matters) or none
'' , // XML if you're using XSLT
true, // Traceable or not?
'admin', // Sending user
true); // Use retries?
Is juste un email with a file thats it.
What kind of email you want to send?
You can use sysemailtable::sendemail()
You can also refer to below for starting point
I recommend to use standard ax framework instead of dot net
[View:http://www.alexondax.com/2013/09/how-to-properly-send-emails-with-built.html?m=1]
Ok, I'm going to try that.
Thank you Crispin J.
I already use that example but in my Axapta, it sent me an error. System.Net.Mail.MailMessage . it doesn't exist in the table.
All right thanks
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Community Member 2
Martin Dráb 2 Most Valuable Professional
Guy Terry 2 Moderator