SharePoint Images not rendered in custom email -
i sending out html e-mail event receiver hooked pages library. publishingpagecontent
field filled html values doesn't render images when email sent outlook.
this code below
mailmessage message = new mailmessage(); message.to.add(new mailaddress("xxx@sharepoint.local", "recipient")); message.from = new mailaddress("xxx@sharepoint.local", "sharepoint test emailer"); message.isbodyhtml = true; message.subject = properties.listitem.title; message.body = properties.listitem["publishingpagecontent"].tostring(); smtpclient client = new smtpclient("192.168.10.0"); client.send(message);
the code looks fine there's 2 areas check here:
- is there potentially rule on exchange server that's removing these? maybe client based settings blocking images?
- have checked value of
listitem["publishingpagecontent"].tostring()
make sure it's working expected @ runtime?
Comments
Post a Comment