Problem in HTML email

navuser1
Member Posts: 1,334
Plz reply.
I’m trying to send a mail from Nav4.0 SP3 and that email body should be
HTML formatted text.
But I’m very much surprised to see that receiver got the mail(Body part) but not in HTML formatted text
And the Send Items shows that it is well HTML formatted text.
Mail shoots from MS Outlook 2003.
My code
// Automation Start
//Create application
IF ISCLEAR(objApp) THEN CREATE(objApp);
//Create mail item
objMail := objApp.CreateItem(0);
// set properties
objMail."To"('navuser1@gmail.com');
objMail.Subject('Important');
objMail.BodyFormat:=2;
objMail.HTMLBody :='<a href='+Text101+'>navuser1</a>';
//Uncomment for display email
objMail.Display();
//Send mail
objMail.Send();
// Automation End;
I’m trying to send a mail from Nav4.0 SP3 and that email body should be
HTML formatted text.
But I’m very much surprised to see that receiver got the mail(Body part) but not in HTML formatted text
And the Send Items shows that it is well HTML formatted text.
Mail shoots from MS Outlook 2003.
My code
// Automation Start
//Create application
IF ISCLEAR(objApp) THEN CREATE(objApp);
//Create mail item
objMail := objApp.CreateItem(0);
// set properties
objMail."To"('navuser1@gmail.com');
objMail.Subject('Important');
objMail.BodyFormat:=2;
objMail.HTMLBody :='<a href='+Text101+'>navuser1</a>';
//Uncomment for display email
objMail.Display();
//Send mail
objMail.Send();
// Automation End;
Now or Never
0
Comments
-
It depends on Server settings, you can have setup that for specific mail address the mail is sent as plain text, e.g. for all outside mails it goes as plain text etc. Check the Outlook and Server settings...0
-
Namaste!
At my client place I have NAVISION CRM. There I have used Interaction templates,
which fullfills the clients requirement of sending the emails in HTML BODY with images.
May be this will help you,
1. Go to Interaction templates in Sales module.
2. Enter one template code and other details.
3. Go to Attachment=>create
4. It will open the MS Word document.Use merged fields from Contact table(see on MS Word toolbar)
5. Copy and paste the body of the email in HTML format.
6. Close the document.
7. Now when u send the email with this interaction template, it will send the contains of the word document
as a email body.Darshan Mungekar
Senior Consultan0 -
Plz look this text (link)
[url=navision://client/run?database=d]navision://client/run?database=d[/url]:\base db\basedb4.0sp3in_upto_hf5new.fdb&company=CRONUS India Ltd1.&target=Form Opportunity Card&view=SORTING(No.) WHERE(No.=FILTER(OP000064))&position=No.=CONST()&servertype=NAVISION
I hv converted this into HTML and send the same from My OutLook to Gmail Account.
My OutLook account treat this as a HTML But My Gmail does not consider this text as a URL.
:roll:
Plz help...Now or Never0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions