+ Reply to Thread
Results 1 to 3 of 3

Thread: Emails

  1. #1
    MrReclusive is offline VB.NET Forum Newbie MrReclusive is on a distinguished programming path ahead
    .NET Framework
    .NET 3.5
    Join Date
    Dec 2009
    Age
    26
    Posts
    5
    Reputation
    0

    Default Emails

    I have a web form for vacation requests.
    set it up for my employer.
    it sends an email to our human resource department with all the required info.
    but I want to be able to format the email to look a little better and to add some features like an "approve" button that would send an approval email, update calendars, and input a few records into into a database.

    i tried this before, the page worked as a page but as soon as i put it in the email script all the quotations in the html freaked out the asp code and nothing worked.

    how can I do this without these problems?

  2. #2
    Host Ahead is offline VB.NET Forum Newbie Host Ahead is on a distinguished programming path ahead
    .NET Framework
    .NET 3.5
    Join Date
    Feb 2010
    Posts
    4
    Reputation
    0

    Default

    It's not possible to run asp code in an e-mail message. It should be plain HTML.

    What you could do is put a page on the internet which can handle parameters from a GET method (as in http://somesite.tld/mypage.aspx?para...bla&param2=bla)

    You can then put a link to this page in your e-mail. Whenever the user clicks on the link, the page will be called and you can run your code in the page.

  3. #3
    JuggaloBrotha's Avatar
    JuggaloBrotha is offline VB.NET Forum Moderator JuggaloBrotha VB.NET gold medalist JuggaloBrotha VB.NET gold medalist JuggaloBrotha VB.NET gold medalist JuggaloBrotha VB.NET gold medalist JuggaloBrotha VB.NET gold medalist JuggaloBrotha VB.NET gold medalist JuggaloBrotha VB.NET gold medalist JuggaloBrotha VB.NET gold medalist JuggaloBrotha VB.NET gold medalist JuggaloBrotha VB.NET gold medalist JuggaloBrotha VB.NET gold medalist
    .NET Framework
    .NET 2.0
    Join Date
    Jun 2004
    Location
    Lansing, MI; USA
    Age
    26
    Posts
    3,897
    Reputation
    524

    Default

    Seeing that this is a .Net forum, I'm assuming when you say 'asp' code you're talking about the asp.net code behind file for the app, in which case you can easily format the email message however you want it to because you have direct access to the .Body property which is just a string.

    Perhaps if you posted the code you have thusfar we can help you from there.
    Currently using: VS 2005 & 2008 Pro w/sp1 & VS 2010 Ultimate on Win7 Ultimate x64.


    There are 3 kinds of people in the world: Those who can count and those who can't.
    4 out of 3 people have trouble with fractions.

    Windows has a 64 bit GUI for a set of 32 bit extensions on a 16 bit shell for an 8 bit OS using a 4 bit kernel made by a 2 bit company that can't stand 1 bit of competition.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts