Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > Create eMail Problem
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 11th August 16:53
southstand (ºØlµ©ÝžÙp¢¹]r‰§¢Êz
External User
 
Posts: 1
Default Create eMail Problem



I am creating an email using CRMEmail.Send to send an email from a Post URL
process.

I want to insert a link to a CRM record within the body of the email.

However, I'm having troubles using HTML in the email body.

I get the following error:
Error Message: Message: SOAP Server Application Faulted
Stack Trace: at
System.Web.Services.Protocols.SoapHttpClientProtoc ol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String
methodName, Object[] parameters)
at Microsoft.Crm.Platform.Proxy.CRMEmail.Send(CUserAu th Caller, String
EmailXml, String RecipientsXml)
at OpportunityStatus.OpportunityStatus.SendEmail(Stri ng strCRMURL) in
z:\inetpub\wwwroot\crm\custom\opportunitystatus\op portunitystatus.aspx.cs:line 208
Detail: <detail><error><code>80041a04</code><description>A parse error was
encountered in the XML</description><details>A tag was encountered where data
was expected at line 1, column
126</details><file>D:\crm\Build\3297\src\platform\inclu de\OMCommon\CrmPropertyBagUtil.inl</file><line>506</line></error></detail>

I believe this is because I'm using tags when constructing my string in the
C# function.

How can I get it working? Is CDATA the answer?

I've searched the newsgroups for CDATA but can't quite get the syntax
correct in my C# function.

I want to insert a link to an opportunity in the body.
ie.
Please review the opportunity:
<a
href="http://crm/SFA/opps/edit.aspx?id={7BB36925-4E4E-4791-91FA-DAA2EB1AE858}">Click here</a>

Please help!
  Reply With Quote


  sponsored links


2 11th August 16:53
southstand (ºØlµ©ÝžÙp¢¹]r‰§¢Êz
External User
 
Posts: 1
Default Create eMail Problem



OH NO!

I've got CDATA working now but have a new problem...

The email body will not allow the <a> anchor to be clicked...it's displaying
the HTML ok but I cannot click it!

Any ideas?

The HTML content of my email body is now: (I did a view source in the control)

<base target="_new"><a
href='http://crm/SFA/opps/edit.aspx?id={7BB36925-4E4E-4791-91FA-DAA2EB1AE858}'>Please review the Opportunity - Click here</a>
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666