.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

Sending an workflow email with image

Posted By:      Posted Date: August 31, 2010    Points: 0   Category :SharePoint
I am trying to include an image in an email that I am sending out from Sharepoint designer. I have followed the below instructions from Microsoft's site and all I get in my email is the text. Anyone have success with this? <img src="http://www.communitywestbank.com/images/cwb_logo.jpg"> or <img src="http://www.communitywestbank.com/images/cwb_logo.jpg"/>       How to from MS site- Include an image It is not possible to embed an image or graphics file in the body of an e-mail message that is sent by your workflow. However, you can include a graphic in your message by using the HTML image tag (<img/>) to link to an image that is stored as a JPEG (.jpg) file and uploaded to a picture library in your site. In the body of your message, in the location where you want the linked image to appear, type the <img src=""/> HTML tag. Position the insertion point between the two double quotation marks (""). Type or paste the URL for the JPEG image file

View Complete Post

More Related Resource Links

Workflow sending old server name in email


I recently migrated from SharePoint 2007 to SharePoint 2010 using the database attach method to a new server. Server has different name than old server. The migrated sharepoint site collection has been working great. I decided to try workflows (we hadn't used any in MOSS 2007). I added a new workflow to an existing library using the "Approval - SharePoint 2010" reusable workflow. When I start the workflow on a document that needs approved, the approver gets an e-mail stating that a document has been changed (he must have alerts configured for that library). However, URL that the e-mail displays is wrong! It showing the old server name instead of the new one. I browse to the library on the OLD server (which is still online for testing purposes) and that document definitely does not exist in the OLD server library.

Can someone point me in the right direction to troubleshoot? I'm green at SharePoint administration. I already checked DNS and ensured that there were no leftover entries for alternate access mapping names.

Sending a status email with a workflow from Sharpoint 2010 once


Ok- this is probably not hard it is just early and I cannot seem to figure it out. I have a form that has a dropdown - if there is a certain option selected in the dropdown I want someone alerted. This is working fine.

What I am trying to figure out is - let's say the status is "completed" and I want them to get an email and the do. But now someone else goes in anc changes some other field but the status field still says "completed" and as you can guess the third paty gets another email. So I need to send a status message for the completed status once - not multiple times.



Sharepoint 2010 workflow not sending email


I have a workflow that is expected to create a task and also send email.

i can get the alert when the task is created. but the workflow does not send email. i get the following error in workflow history.

"The e-mail message cannot be sent. Make sure the outgoing e-mail settings for the server are configured correctly."

please can anybody help me out?

Sending email from Image on click



In my SharePoint Webpart page( available under Pages - Web part page) , I have added a Content editor webpart. I have added an image(Not button) inside the content editor web part.

I want to send e-mail, when users click on the image.

How to achieve this?

Thank you

SharePoint workflow sending email to wrong person

Hi, I have a workflow that sends an email to the person that created the form whenever a change is made.  All has been working fine but one email has been sent to a completely random person rather than the user that created the form.  (e.g. K Pauls created the form and K Pauls name is in the "Created By" field within the form but H Walker got the e-mail).  H Walker is not included anywhere in the form but is listed in the automatically populated "Created By" Column.  Any clues?

Send Email with HTTP file attachment - Workflow is sending garbage in attachment



I'm having an issue with a customized workflow when I send an email with an attachment. I am using the "send email with http file attachment" that I have downloaded from CodePlex. Unfortunately all attachments that come through are full of garbage. This includes .jpg, .pdf, and .txt. From what I can tell with the .txt file is that its contents has been replaced with what appears to be the html of the list page. Both the .jpg and .pdf fail to open complaining about corrupt documents. All documents can be opened fine from within sharepoint. 

Can anyone of you guide me in this regard, as rest of my  workflow logic is working fine but this attachment issue is ruining the end result.


Sharepoint Designer 2010 workflow - sending workflow email hyperlink to item


Good day all

I have a simple request. I have created a InfoPath form which I have published to SharePoint (all is well)

I have created a workflow using SharePoint Desinder and this workflow send off an email to a user , I have pasted the link to the document library in the email but would like the user to open the form from their email and not go to the document library

 Can somebody please advise


Background Image In Workflow Custom Email Body


In my workflow I have custom email body, in my email body i want to have background image, but it seems that this tag (<td style="background-image:url()>)is not working, i can put image in my email body and it works well but background image doesn't work, Any Idea?


Sending a File Using Email Helper in WebPages/Razor


Note: This is particularly with respect to Email Helper in WebPages/Razor. Please don't post links using System.Net.Mail object.

Following this tutorial: http://www.asp.net/webmatrix/tutorials/9-adding-email-to-your-website

Under "Sending a File Using Email" section what exactly is the code trying to do.

1: The SendFile.cshtml does not have any option to select file.

2: ProcessFile.cshtml is running fine. I am getting the email but no attachement.

I tried changing fileAttachment input to type="file" but not file is being sent to my email. I just get the message send in body.

Question: How exactly this file attachment works using Email Helper in WebPages.

getting a email delivert status when sending email using msdb.dbo.sp_send_dbmail


Hi All,

Can some help me regarding following.

I have set a job in sql server 2008 to send reminder emails for product expiration.
Now I want a report which will specify the list of the emails sent with the email status details like queued ,sent,delivered, failed.

I can fetch the emails that are sent by querying the like following

select * from sysmail_mailitems SM inner join sysmail_profile SP on SM.Profile_Id = SP.Profile_Id
and SP.Name ='ReminderProfile'

The problem is only getting a perfect status of email whether it is delived or failed. How I can get those status ?
Please help.


Trying to send email using Sharepoint Designer 2007 workflow and email enabled list


I have a a list that recieves email. I have few fields that shows me the originator: "E-Mail From" and "E-Mail Sender".

I am trying to create a workflow that will generate an auto reply to the originator but the SPD fails to recognize the email address in these two fields. It's either truncating part of it or uses the html ( href=mailto:Demo@DemoSomething.com) in the To field.

Thank you,


I can't send email from workflow.


I’ve got strange problem. I’ve created workflow with Visual studio 2008 which works fine. If workflow create task user gets email with alert and it works  - user gets email.   The problem is that I would like to use Workflow component: “SendEmail” for some cases. And if I enter directly into component email address for field: “TO” the message will be delivered. But if I use simple code with the same email address for field ”TO” it doesn’t work (field TO is empty now).

private void sendEmail_ExecuteCode(object sender, EventArgs e)



how to embed image in mail body while sending mail in c#.net uisng Exchange2007_SP1.



I am uisng ExchangeVersion.Exchange2007_SP1 EWS to send mail through my c#.net application. I want to embed image in mail body so tht user can see body message along with image in its inbox mail .currently I am uisng image tag to show image but in the email body its just showing image url instead of image.

sending an email in asp.net


My problem is  when i am writing the whole code in asp.net using vb which is

Protected Sub btnsend_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnsend.Click
        Dim mailmessage As System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage()
        mailmessage.From = New System.Net.Mail.MailAddress(txtfromaddress.Text.Trim())
        mailmessage.To.Add(New System.Net.Mail.MailAddress(txtToAddress.Text.Trim()))
        mailmessage.Subject = txtSubject.Text.Trim()
        mailmessage.Body = txtbody.Text.Trim()
        Dim smtpClient As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient()

In the last line i m getting smtpException unhandled by user code (Failure sending mail)

In the web.config file i have written the code which is as follows:-

      <smtp from="someaddress@myCTdomain.com">
        <network host

Error While sending Email using Outlook object in asp.net 4.0


Hi ,

            I am trying to send Email using Outlook object but  it gives following error :

Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005 Server execution failed (Exception from HRESULT: 0x80080005 (CO_E_SERVER_EXEC_FAILURE)).

I have added outlook reference "using Microsoft.Office.Interop.Outlook"  version

and i am using below code :

Microsoft.Office.Interop.Outlook.Application oApp = new Microsoft.Office.Interop.Outlook.Application();
            Microsoft.Office.Interop.Outlook._NameSpace oNameSpace = oApp.GetNamespace("MAPI");
            Microsoft.Office.Interop.Outlook.MAPIFolder oOutboxFolder =
            oNameSpace.Logon(null, null, false, false);
            Microsoft.Office.Interop.Outlook._MailItem oMailItem =

smtp is noe sending email instantly,it makes a Queue in my local system

I am using a  smtp to send email from asp.net (C#)code.it sending some email instantly but many of email is making a queue in my Inetpub folder at local system.what could be the issue ? please help me to get rid from it.ThankxArvind

Sending image through tcp

Alright, i got a working code to send an image over a tcp connection, everything seems fine except for the fact that I can only do it once while I would like to send images multiple times. Here's the code: Client: private void button1_Click(object sender, EventArgs e) { int screenWidth = Screen.GetBounds(new Point(0, 0)).Width; int screenHeight = Screen.GetBounds(new Point(0, 0)).Height; Bitmap bmpScreenShot = new Bitmap(screenWidth, screenHeight); Graphics gfx = Graphics.FromImage((Image)bmpScreenShot); gfx.CopyFromScreen(0, 0, 0, 0, new Size(screenWidth, screenHeight)); bmpScreenShot.Save("c:\\mytest.jpg", ImageFormat.Jpeg); byte[] data = new byte[1024]; int sent; IPEndPoint ipep = new IPEndPoint(IPAddress.Parse(""), 9050); Socket server = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); try { server.Connect(ipep); } catch (SocketException ex) { Console.WriteLine("Unable to connect to server."); Console.WriteLine(e.ToString()); Console.ReadLine(); } Bitmap bmp = new Bitmap(@"c:\\mytest.jpg"); MemoryStream ms = new MemoryStream(); // Save to memory using the Jpeg format bmp.Save(ms, System.Drawing.Imaging.ImageFormat.J
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend