Want to send a email with images and text in the body of email in iOS

In iOS, we have written a code to send an email,  with embedded images and text in the body of the email ( not attachment) using mail composer. It works well with iOS devices like iPhone and iPad, but does not work in window based OS. Can anybody help. The code is

Thanks James !, do you have an idea how to  find the window resource which I belive will be included in our appllication pack.
In above  I have missed to copy the code,below is the code. This might help you to help me.
NSMutableString *imgContent = [[[NSMutableString alloc] initWithString:@"<html><body>"] retain];
UIImage *imageData = [UIImage imageNamed:@"Midhun.png"];
NSData *imageDataInBase64 = [NSData dataWithData:UIImagePNGRepresentation(imageData)];
NSString *base64String = [imageDataInBase64 base64EncodedString];
[imgContent appendString:[NSString stringWithFormat:@"<p><b><img src='data:image/png;base64,%@'></b></p>",base64String]];
[imgContent appendString:@"</body></html>"];
MFMailComposeViewController *emailWin = [[MFMailComposeViewController alloc] init];
[emailWin setMessageBody:imgContent isHTML:YES];

Similar Messages

  • Pdf (with graphics and text) in the email body

    When I place an pdf (with graphics and text) in the body of my email using Mac Mail my recipient sees them as attachments only. I am trying to find a way of presenting a formatted email with graphics that will appear the same way to all recipients, but a pdf frequently ends up being an attachment instead of staying in the body. The pdf  file doesn’t seem to always show up in the body as created. Is there a better way to accomplish this?

    You have no control over how your email maybe rendered by other email servers and client side software.
    Attachment Tamer may give you a few more options but it does not guaranty the end result.

  • How to share image and text in the share contract

    Hi,
    I want to share a movie( title and link of the movie ) from my app to another apps ( whatsapp,facebook etc ) for that i have used following code. but How can i add image to that share if i have web url of the image ( https://i.ytimg.com/vi/J-wiPP76FqQ/mqdefault.jpg
    ). Please help me
    private void RegisterForShare()
    DataTransferManager dataTransferManager = DataTransferManager.GetForCurrentView();
    dataTransferManager.DataRequested += new TypedEventHandler<DataTransferManager,
    DataRequestedEventArgs>(this.ShareTextHandler);
    private void ShareTextHandler(DataTransferManager sender, DataRequestedEventArgs e)
    DataRequest request = e.Request;
    request.Data.Properties.Title = shareContent;
    request.Data.SetWebLink(videoId);
    public async Task share(string content, string videoId)
    RegisterForShare();
    this.shareContent = "Watch " + content + " on ";
    this.videoId = new Uri("http://www.youtube.com/watch?v=" + videoId);
    DataTransferManager.ShowShareUI();
    Thank you

    Hi Ashia Hassan,
    Based on your description, I know that you want to share image and text in the share contract in the Windows Phone Runtime app, then please try to refer to the following article:
    https://msdn.microsoft.com/en-us/library/windows/apps/xaml/Hh871370.aspx .
    Besides, this similar thread may help you, please try to check it:
    https://social.msdn.microsoft.com/Forums/windowsapps/en-US/9bc7f8fd-0b0c-406e-875d-432d6f196419/need-to-share-image-text-using-share-contract?forum=winappswithcsharp
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Problem with images and text displaying correctly

    I don't really know how to explain this problem and I had two screenshots ready to upload to show the before and after but we apparently can't upload photos now...SOOOO I will try my best.
    The issue began when I got a new computer at work (Windows 7 instead the Windows XP everyone else has) and was/is present for me in InDesign CS2 and since we were planning on updating to CS5, I figured that having an updated version would fix whatever issue it was. That was a wrong assumption unfortunately.
    When I open any document, all images and text are displayed properly until I scroll up/down or side-to-side and NOT using the scroll wheel for up/down. This is probably so confusing and I'm sorry I can't describe it better...the mouse I use has two programmable buttons that I set to coast up and down and to go side-to-side I can push the scroll wheel to one side or the other and it coasts that direction. When I do either of those things, the text looks like it is permanently greeked and the images look....weird lol like they are in 16 bit or something like that. To fix the problem in CS2, I have to click and hold on a text block until I am able to adjust text so that I can see it adjust in real-time. In CS5, I have to do the same basic thing except I don't have to click and hold as it does that by default (awesome feature btw!!)
    I have already updated my graphics card driver (Nvidia 9400 GT 1GB) and my processor driver (Intel Core2Duo 3.0ghz) and I have 4GB of RAM. I tried updating both CS2 and CS5 but both are updated already. I've also tried doing the whole inx. export and cleaning the preferences file or whatever that is called. Nada. If someone thinks they can help me, I can send them the two images I was going to upload here. Email me at justgeig (at) gmail (dot) com Thanks in advance!

    maybe greeked isn't the right word...i don't know how to explain it
    here is the correct view. It is much more noticable when the whole document shows this.

  • Instruction on how to work with images and videos in the storage azure using php

    Dear Sirs
    I followed below instruction to make video and image storage on Azure using PHP:
    http://azure.microsoft.com/en-us/documentation/articles/storage-php-how-to-use-blobs/
    Whenever I record an image on Azure storage and download stored image there is no format
    in the stored image. and end up becoming like any other regular file. Othe problem is that I cannot see the concerned image in the browser. I already have checked recipient access and it is defined as public reading. 
    Could you also please provide me with an article instructing how to make upload,  download,
    show up on the browser and remove video and images from the azure storage area?
    Thanks & Regards,
    Pedro

    Hi Pedro,
    Thanks for your posting!
    I am not familiar with PHP. But from your description, I think your need pay attention to those points in your code:
    1.When you store file or download file, please write the file name and
    suffix, for example, you need store image as blob name "image.png".
    2.When you download file from Azure blob, you need set the content type.
    if your file is image, you could set the content type as image type.
    3.You could get the blob URI, and set your image URL as blob URI. Do this, you can show the picture.
    Please see this similar issue thread:
    http://phpazure.codeplex.com/discussions/472840
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I have a poster sent to me created in illustrator and I have photoshop cs2.  I used the same dimensions from the original to create the poster in cs2.  After creating the poster in cs2 using images and texts from the original poster, I printed it off and

    So there is a lot of white space at the top and bottom of the page when I print off poster.  When I see the poster on the canvas on cs2 it looks how I want it to!  I am confused!  Help pls.  Also I am new to photoshop.
    When I sent the finished poster to the person I needed to send it to, it wasn't printing out how we wanted on A4.

    What system? What printer? What print settings? Most of that has nothing to do with teh Adobe apps, but your printer's capabilities and nobody can advise without that info.
    Mylenium

  • How can i stop the Pop Up asking me to upgrade to 30,i don't want 30 i'm happy with 28 and i wish the pop up by the clock would stop poping up

    I would just like the Pop Up by thr clock asking me to upgrade to 30 to go away.
    I don't like 30 and i,m happy with 28.
    Thanks
    Harold

    You should update to Firefox 30, 28 is no longer supported nor secure.
    Is there a reason you don't want to update?

  • How to send files like audio,video,images and text via RMI..

    Hi everyone,
    As I am working under a project, my own, of creating a chat machine, I've thought to make it capable of doing everything that MSN or yahoo MSN can do. Till now I've just been able to send messages and some small icons as expressions. So, my next step will be making my progam able to send even other files like audio, video, images and text to the person on the other machine to whom I'm chatting. But as I don't have any idea on how to start doing it, I want anyone who think he/she can help me to give me the basic logic that is used to do so. I would very much appreciate it. I've used vectors to store the text messages which is visible to all the users using the chat program enabling them to see various messages in it.
    thank you...
    Jay

    Hi,
    Now, I got stuck because the code doesn't seem to work well. For large files with around 40 mb or more size couldn't be sent. I have constructed the code, just rough sketch, as follows:
    ** In the Server Implementation class I've used FileInputStream to read the contents of a file that is sent as an argument to the method.
    ** Similarly, in the client side I've used RandomAccessFile to save the received array of bytes.
    public void sendFile(File f)
       ChatServer cs=(ChatServer)Naming.lookup("rmi://localhost/ChatServer");
       cs.readsAndStoreTheFileInTheServer(f); // In the Server Implementation the contents of the file is read and saved in an array of byte. later method is invoked by the client to get the array of the saved byte.
       cs.message("-Accept-"); // When a client receives this word then a JComponent with accept and cancel button will be constructed from where other clients can save/cancel the sent file.
    }For small size files this code works well but for files more than 40 mb of size it is useless. I wonder if there's any other alternative.
    regards,
    Jay

  • We want to send a mail with attachment pdf file.

    Hi!!!
    We want to send a mail with attachment pdf file.
    The PDF file this is in the server sap.

    Hi,
    Pls check web logs like
    /people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface
    Eddy
    PS.
    Put yourself on the SDN world map (http://sdn.idizaai.be/sdn_world/sdn_world.html) and earn 25 points.
    Spread the wor(l)d!

  • How do i send an html file exported from muse as email blast with images and live links?

    My question it:
    How do i send an html file exported from muse as email blast with images and live links?
    I have designed a "website" in adobe muse and exported it as an html file. I am not sure how to send my .html file in an email!
    Best,
    Nicole

    Unfortunately, the answer is, you don't. The requirements for HTML displayed in an e-mail reader are very different than those for HTML displayed in a browser. The output of Muse won't work as an HTML e-mail. You could upload the Muse site as a website and provide a link to it in an e-mail, but the HTML generated by Muse is not suitable for direct display by an e-mail program.

  • I can't send mail after updating to mavericks (10.9.2) . i have to quit and restart mail each time i want to send an email - i can't believe apple have done this so amateurishly - please can someone help ???

    i cant use mail to send an email. it goes to my out box and then eventually comes up with this dialogue :
    "An error occurred while sending this message using the SMTP server “(null)”
    Select a different outgoing mail server from the list below or click Try Later to leave the message in your Outbox until it can be sent."
    I have to click Try Later and then quit mail , then restart Mail and then if I am lucky the email will be sent. the next time I have to send an email the same thing happens . I have to click Try Later and then quit mail , then restart Mail and then if I am lucky the email will be sent. I have to go through this everytime i want to send an email. its a really time consuming vicious circle which is extremely annoying,
    can someone help please ???????

    From the Mail menu bar, select
    Window ▹ Connection Doctor
    Click the Show Detail button. A drawer opens. Try to send a message and post the text that appears. Anonymize any personal information before posting.

  • Why can I not attach a document to an email? Every time I want to send an email with a document attached to it, an error notice pops out. It tell me that the file is being used even when  it is not. How can I fix this issue?

    Why can I not attach a document to an email? Every time I want to send an email with a document attached to it, an error notice pops out. It tells me that the file is being used even when  iall other programs are closed. How can I fix this issue?

    Thanks Jeff, I was not aware that a template could be multi-page.  (All the existing templates were 1 page)
    But it worked, saving me some steps.  When I was finished I renamed the document, and locked it.
    Then tried to save it but  could not because it was locked.  I closed it, went to my Spread Sheet Folder ,
    to find it, it was not there.  The Finder could not find it either.
    So I start over again.
    I opened up Numbers and it showed my personal Numbers template folder, it contained both my new 
    original 4 page template and the vanished saved document!
    I tried to delete the template containing these document data and could not - I had to go to the Library/Application Support/Numbers to physically remove it from this folder. Then I started over again.  I Finally found out how to make it work: I can now "save as", and then lock, and it will go to place where I want it to be saved and locked.
    The secret is: Click on the document title in the menu bar, and it opens up  "Save as...", which works the same as in OS 10.4.11, and you can pick the place you want for saving.  Once done that, you can then lock the document in the same pull down menu, and then close it.
    I also found later that I can delete a template from its folder, by letting Numbers open the templates,
    clicking on the one I want to remove, then go to the "Numbers Menu/File/Move to...", select "Desktop"
    and from there the selected template can then be thrown into the Trash from there.
    It appears now that the real fault of the Numbers software is that the "Save as" command is not available in the "Edit" or "File" pull-down menus, but hidden behind the title of the document.

  • I want to send an email of a "document" with Hyperlinks.. Like Target Does

    I have created a document in Pages. It's graphical with images and hyperlinks. How do I convert that into the body of an email so that it can be "active". So that readers of the email can link to the sites and stuff that are Hot spot hyperlinks. I know how to put little hyperlink lines of text into the email... but I wish to send out emails like Target or Best Buy or where ever that have "click here for more details" like buttons that get you to their web site.
    I hope this question makes sense. I've had no luck at all finding a way to import or export such a document. Thanks in advance!

    WiFi will work, cellular will work but they may not be able to access LTE, they will have to send it back to you for the warranty work.

  • Help!  I recently upgraded to OS 10.9.4 from 10.6.8, and now when I want to send an email to a group in my contacts I am no longer able to select the group as a whole.  I have to select each address individually.  This can't be right.

    Help!  I recently upgraded to OS 10.9.4 from 10.6.8, and now when I want to send an email to a group in my contacts I am no longer able to select the group as a whole.  I have to select each address individually.  This can't be right.  With 10.6.8 I used to be able to double click on the name of the group and they would all be selected.  I've also noticed that my address book is now called "contacts."  Thanks in advance for your help.

    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the
         computer and after the chime press and hold down the OPTION key until the boot manager
         screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
         Reinstall the 10.9.4 update: OS X Mavericks 10.9.4 Update (Combo).
    4. Reinstall Lion/Mountain Lion, Mavericks: Reboot from the Recovery HD. Select Reinstall Lion/Mountain Lion, Mavericks from the Utilities menu, and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
         Reinstall the 10.9.4 update: OS X Mavericks 10.9.4 Update (Combo).

  • When new pix is taken and want to send via email it is received upside down, why?

    has anyone have this problem, when you take a picture and want to send via email the picture is received upside down? does anyone know how to fix this?

    Better yet, check out the two day gathering of professional photographers who are passionate enough about the iPhone 4S to put together a seminar on iPhoneography.
    http://www.creativelive.com/courses/iphoneography-jack-hollingsworth
    All the Links!
    KateHaileyJanuary 3, 2012 - 1:55pm 
    Hi everyone,
    I just wanted to take a moment to share numerous links that may be referenced over the 2-Day iPhoneography workshop with Jack Hollingsworth.
    Please feel free to add to it as you think of other things that might be of great reference to all the iPhoneographer's out there!
    Apps:
    Adobe Photoshop Express: http://itunes.apple.com/us/app/adobe-photoshop-express/id331975235?mt=8
    Best Camera: http://itunes.apple.com/us/app/best-camera/id329800600?mt=8
    Camera+: http://itunes.apple.com/us/app//id329670577?mt=8
    Filterstorm: http://itunes.apple.com/us/app/filterstorm/id363449020?mt=8
    Instagram: http://itunes.apple.com/us/app/instagram/id389801252?mt=8
    Luminance: http://itunes.apple.com/us/app/luminance/id443465287?mt=8
    Minimal Folio (iPhone): http://itunes.apple.com/us/app/minimal-folio-for-iphone-design/id4124111...
    Minimal Folio (iPad): http://itunes.apple.com/us/app/minimal-folio-design-photo/id385429744?mt=8
    Photoforge2: http://itunes.apple.com/us/app/photoforge2/id435789422?mt=8
    Picfx: http://itunes.apple.com/us/app/picfx/id417563413?mt=8
    Pocket Portfolio: http://itunes.apple.com/us/app/pocket-portfolio/id419455189?mt=8
    Snapseed: http://itunes.apple.com/us/app/snapseed/id439438619?mt=8
    Accessories:
    Diff (case): http://www.diffcase.com/DiffCase.html
    Glif (tripod access): http://www.studioneat.com/products/glif-for-iphone-4
    Gymbl (iPhone Tripod): http://www.youbiq.com/
    iPik (case): http://www.ipikcase.com/
    iPro Lens: http://iprolens.com/
    the joy factory (Rain Ballet): http://www.thejoyfactory.com/rainballet-iphone-4-waterproof-case-with-in...
    kogeto (dot lens): http://kogeto.com/dot.php
    mCam: http://www.almlive.com/store/
    Modahaus (Steady Stand): http://www.modahaus.com/store/steady-stand-200/
    Mophie Juice Pack Plus (iPhone4/4s): http://www.mophie.com/mophie-juice-pack-plus-iPhone-4-battery-case-p/116...
    Mosy Mount (tripod): http://www.mosymount.com/
    olloclip (tripod access): http://www.olloclip.com/
    Photojojo: http://photojojo.com/store/
    pixeet (app/lens): http://www.pixeet.com/
    snapmount: http://snapmountforiphone.com/
    sites, blogs and reference material:
    1197.is: http://1197.is/
    the App Tutor: http://theapptutor.com/
    Chase Jarvis: The Best Camera – Book: http://www.amazon.com/Best-Camera-One-Thats-You/dp/0321684788/ref=sr_1_1...
    EyeEm: http://www.eyeem.com
    eyephoneography: http://eyephoneography.com/
    FiLMiC Pro: http://www.filmicpro.com/
    Flickr – iPhoneography: http://www.flickr.com/groups/iPhonephotography
    Instagram: http://instagr.am
    Instatips: http://instatips.tumblr.com
    iPhoneArt: http://iphoneart.com
    iPhone Camera Essentials: http://iphonecameraessentials.com/
    iPhone Obsessed (Book/App): http://marcolinaslate.com/iphoneobsessed/
    iPhoneogenic: http://iPhoneogenic.tumblr.com
    iPhoneography (Glyn Evans): http://iphoneography.com
    iPhoneorgaphyCentral: http://iphoneographycentral.com/
    iShowcase Vol.1 (App): http://itunes.apple.com/us/app/ishowcase-vol.01/id409042603?mt=8
    iShowcase Vol.2 (App): http://itunes.apple.com/us/app/ishowcase-vol.02-w/id455932142?mt=8
    Just What I See: http://www.justwhatisee.com/
    Life in LoFi (Marty Yawnick): http://lifeinlofi.com
    LoFi MODE: http://lofimode.com/
    MobiTog: http://mobitog.com
    Mobile Photo Group: http://www.mobilephotogroup.com
    Mobile photography awards: http://www.mobilephotoawards.com
    p1xels: http://pixelsatanexhibition.com
    Tiny Tutorials:http://www.danburkholder.com/Pages/main_pages/tutorials_main_page.htm
    What I See Now: http://www.whatiseenow.com
    Your Camera Loves You (eBook): http://www.peachpit.com/store/product.aspx?isbn=0132776308

Maybe you are looking for

  • Opening an FDF that references a PDF in Firefox and Safari

    Our ASP.NET application serves up fdf and the associated pdf files from an underlying database. We use Fdfacx to generate the FDF with a reference (set using FDFSetFile) to a PDF. Both FDF and PDF URLs have parameters. When we use IE7, all works fine

  • Auto generated code in makefile

    For our product we have a TCL script that reads a series of text files and generates C++ classes for easy access to database records. Our code has been in use for make years and works very well. We have always used a solaris command prompt dmake to c

  • Wifi login via browser

    Hi, I'm using a wifi where I have to login with my personal account. So I always have to wait for the login screen to come up. If I accidentally click away the login screen or for whatever else reason (which happens often), I have to want until the s

  • How to create users group under jazn realm

    Dear Experts, I am in need to create two groups of users under jazn.com realm. From my knowledge I have checked Enterprise Manager console. There is no option to create users group. What I have to do to create new users group. Please suggest that. Al

  • (Illustrator CS6) Spacebar stops working seemingly randomly

    This is an infrequent issue I've had, but it has happened more than once in the last few weeks that I've been using CS6 on a regular basis: On occasion, my spacebar will just stop working in Illustrator CS6, so I can't use the hand tool or zoom or- y