Hi,
i'm trying to send an email with a list of invoices.
I need to insert a newline for each invoice number.
I already tried \n and \r , but they don't seem to work. The string actually contains the carriage return,
but the email body has got now carriage return once sent.
Is there a particular way to do so?
Thank you in advance.
*This post is locked for comments
Please create a new thread for your question about how to send e-mails, give it appropriate title and tags and explain your problem there. Please don't change the topic of existing threads. Also notice that this thread has already been answered (years ago).
Hi Martin,
That was a different requirement I explained in other thread which is about showing each error message on a separate line in an XML file. There is another requirement which is similar to this, where I need to send the email to specified email address contains error messages and each error message needs to be shown on separate line.
Can you please let me know which method should I use ? I am using SysEmailSystemTable::sendMail method to send email in AX 2009.
Thanks,
Baber.
I don't think this question was about code, so you likely have a different problem (and what you described in your other thread is about XML, which is something completely different).
If you're really trying to create emails in code, please create a new thread and explain it there, rather than trying to change the topic of this thread.
It depends on which method you are using to send e-mails, since there are many.
Some of them are covered in older posts, see here:
Hi,
I have a same requirement. Can you please let me know how and where to set the format as html in code ?
Thanks,
Baber.
Thank you,
it worked like a charm!
Hi,
try setting email format as html and then instead of \n\r put <br> .
Regards,
Amiya
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,228 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156