creating email addresses dynamically c#

Posted on 2012-08-26
Last Modified: 2012-09-02
I have a requirement by where I need to be able to give a user a dynamically created email address that they can send a picture to so we can then pick the image up at that address and link it to the user.

What is the normal way of doing this?

We can't tell them to name the image something specific or anything like that so ideally would need them to be able to send to a specific address created on the fly by us.

Any ideas?
Question by:scm0sml
    LVL 23

    Assisted Solution

    by:Roopesh Reddy

    I think you are looking for something like Disposable Mail adrress -

    It's a service available! You can google for "Disposable Mail address"!

    Hope it helps u...
    LVL 26

    Expert Comment

    by:Alan Warren
    What is the normal way of doing this?

    The usual thing would be to get an email address from the user during the sign up process.

    You would then fire off a confirmation email to email address provided by the user, with something like "Please click here to confirm your email address" in the body.

    If the user responds, confirming their email, you fire off another email, welcoming the new user to the community, in which you would provide some "getting started" info and possibly a copy of their login credentials.

    In either case the email address the user sends mail to is the 'ReplyTo" address contained in the headers of the email messages you send. So you could simply say, please reply to this email, attaching a portrait photo of yourself...

    Sending Email in ASP.NET 2.0: Reply-To, Priority, and Read Receipts

    You don't need to provide users with an email address, they would be thinking "oh no, not another email account to manage!". All you need to do is monitor the ReplyTo email account on your mail server.

    Alan ";0)
    LVL 18

    Assisted Solution

    by:Gary Davis
    Well you could have a single email address for receiving the images and then the user would have to provide some way of tying it to the account. Using a dynamically generated email would mean they would not have to provide the account since you would already know who they are.

    So the email address (user id) should be based in their account identifier, either their account ID or user ID so you would know where the image belongs. That seems like the easiest way. Just make sure the email user id is a valid and non-conflicting id.

    A better way would be to let them upload the image from a web page on the site.

    Gary Davis

    Author Comment

    Alan - I think you are getting my requirements conused.

    Gary - I don't really want to be putting the responsibility of tying the image to the user onto the user.

    Hence not wanting to tell them to name the image something particular etc

    Roopeshreddy - I would need to integrate the email into my c# code, is that the kind of thing that is possible with your idea?
    LVL 23

    Expert Comment

    by:Roopesh Reddy

    That the tricky part! I didn't find any API's available for that!

    You may have to develop your own stuff like that!


    Accepted Solution

    Right just to let you know we decided to use this:

    Basically we are going to get the user to put a given code into the subject of the email.

    We can then link things that way without having to go through the hassle of trying to create these emails on the fly.

    Author Closing Comment

    Had some decent input but went down a different route in the end.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
    Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
    In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
    The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now