mailing the invoice

Hi,

do i need to do any setups for mailing the invoices.

As one of our experts said i simply click preview and file send post by email.

It has opened and asked for mail ID i have given the ID but it has not reached what is the mistake i have done.

Hi,

This is the standard way. Have you check you junk mail settings

have you checking the SMTP setup ? Table 409 and Form 409 !

i make this post in other threat, but i didn’t get reponse. i expect to receive here …

i’m using code: Newmessage(To,CC,Subject,Body,Attachfilename,opendialog) …
with cu397, i assigned text into an ‘emltx’ variable - text - 1024.

i do like this:
emltx := ‘Customer :’ + customer"name + ’ ’ ;
emltx += 'Address : '+ customer.“address 1” + ’ ';
emltx += customer.city;

with codes like this, if i output it to a text box (either in form, report or message) - with TextBox - SourceExpr:emltx;
it will give us result like this:
Customer : Some Customer
Address : Any Street
CertainCity

but if i use: emltx := Newmessage(To,CC,Subject, emltx , Attachfilename, opendialog); as a result, an ms outlook new email appear; To., CC, Subject are correct - but - the message body appear like:
Customer : Some Customer\Address :Any Street\CertainCity

obviously this is not the format i want to see in the email body. i need NAV to process’’ sign as a new line command. how to make or force a new line to appear in the email body?

I thank you very much for the feedback you’ve given.

joe,

i don’t know that the following message can help you or not !

you need to create the Global Variable as follow :
Name DataType Subtype Length
MSC Automation ‘Microsoft Script Control 1.0’.ScriptControl
chr10 Text 30
chr13 Text 30

then coding like this :

CREATE(MSC);
MSC.Language:=‘vbscript’;
CHR10:=MSC.Eval(‘chr(10)’);
CHR13:=MSC.Eval(‘chr(13)’);

emltx := CHR13+CHR10+‘Customer :’+customer.“name”+CHR13+CHR10+‘Address :’+customer.“address”+CHR13+CHR10+customer.“city”

i hope it can make you helpful !

Sorry the answer is a bit late.

But the reason why you get this result is that navision output here is HTML. So the ‘’ doesn’t work.

You have to use the html code for a new line ‘
’ , this will do the job.

Good luck !!!