web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Send email in Axapta 2009 by X++

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Send email in Axapta 2009 by X++

    All right I'm going to test.

    Thank you

  • Chandra Wijaya Setiawan Profile Picture
    1,145 on at
    RE: Send email in Axapta 2009 by X++

    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:

    • Administration>Periodic>E-mail processing>Batch
  • Community Member Profile Picture
    on at
    RE: Send email in Axapta 2009 by X++

    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);

  • Verified answer
    Chandra Wijaya Setiawan Profile Picture
    1,145 on at
    RE: Send email in Axapta 2009 by X++

    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?

  • Community Member Profile Picture
    on at
    RE: Send email in Axapta 2009 by X++

    Is juste un email with a file thats it.

  • Suggested answer
    Chandra Wijaya Setiawan Profile Picture
    1,145 on at
    RE: Send email in Axapta 2009 by X++

    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]

  • Community Member Profile Picture
    on at
    RE: Send email in Axapta 2009 by X++

    Ok, I'm going to try that.

    Thank you Crispin J.

  • Community Member Profile Picture
    on at
    RE: Send email in Axapta 2009 by X++

    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.

  • Community Member Profile Picture
    on at
    RE: Send email in Axapta 2009 by X++

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans