Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Sending an image file via email

Sending an image file via email

Scheduled Pinned Locked Moved C#
csharpwpfquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Etienne_123
    wrote on last edited by
    #1

    Hi I was wondering whether anyone could give me some hints on incorporating email functionality in my application. I'm using WPF to create 3D models, I then have an option where the user can save an image file of the model. Now I want to include functionality where the user can email this specific picture. Is there a way to just open the default email client, but not just open it, create a new message and attach this image file automatically? Thanks in advance

    J F 2 Replies Last reply
    0
    • E Etienne_123

      Hi I was wondering whether anyone could give me some hints on incorporating email functionality in my application. I'm using WPF to create 3D models, I then have an option where the user can save an image file of the model. Now I want to include functionality where the user can email this specific picture. Is there a way to just open the default email client, but not just open it, create a new message and attach this image file automatically? Thanks in advance

      J Offline
      J Offline
      Jayapal Chandran
      wrote on last edited by
      #2

      You can use IMAP feature to send email from .net to an email server. specially if you use IMAP it can handle https(google, yahoo, msn . ..)... or you can use smtp library to send email... for both you must have a valid email account either in google yahoo msn or of your own domain(which will have email option)... in your imap or smtp conf you will provide your authentication details and the target email id... then you have to follow certain steps to attach an image... that could be very simple in .net cause i did it in php...

      Today's Beautiful Moments are Tomorrow's Beautiful Memories

      1 Reply Last reply
      0
      • E Etienne_123

        Hi I was wondering whether anyone could give me some hints on incorporating email functionality in my application. I'm using WPF to create 3D models, I then have an option where the user can save an image file of the model. Now I want to include functionality where the user can email this specific picture. Is there a way to just open the default email client, but not just open it, create a new message and attach this image file automatically? Thanks in advance

        F Offline
        F Offline
        Fired Fish Gmail
        wrote on last edited by
        #3

        using the smtp protocal to send the picture as the attached file. you can see the smtp spec file in the Wikipedia.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups