How To Send A Clickable Link Which Works In Outlook And Hotmail

Dec 29, 2010

i need to send a clickable link to many people via mail using vb.net .

Dim smtp As New SmtpClient
email = "emailaddress@xyz.org
Dim mm As New MailMessage("test", email)
mm.Subject = "test"
mm.Body = "http://www.mywebsite.org/mypage.aspx" & "<br><br>" & "greetings"
mm.IsBodyHtml = True
smtp.Send(mm)

This code works perfectly when the mail is read with Outlook. People get a clickable link which brings them to the right page. But the same mail read in Hotmail (or any webmail site) provides a non-clickable link.

I also tried with:

mm.Body = "http://www.mywebsite.org/mypage.aspx" & chr(9) & chr(13) & "greetings"
mm.IsBodyHtml = False

but then, i get no clickable link in Outlook.

How can i send a clickable link which works with Outlook and Hotmail?

View 5 Replies


Similar Messages:

Variable Value As Link / Return The value As A Clickable Link?

Jan 25, 2010

Created a asp page using vbscript to calculate a value (works fine). I'd like to return the value as a clickable link, which would obviously redirect the user somewhere else.

View 9 Replies

Link In HTML E-mail Does Not Work In Hotmail?

Aug 30, 2010

I send automated mails to hotmail users. (thank you for your registration bla bla)Because plain text doesn't look attractive enough, I use HTML with images. The images reside on a public webserver.

As SMTP server I use the SMTP part of IIS 7.5 (windows 2008 R2). I have an SPF record setup in the DNS. I have also read http://tinisles.blogspot.com/2009/09/sending-dkim-email-from-c.html and found out that sending mail with the SMTP service and a DKIM signature cannot be done properly without an external commercial component. So I do not have such thing (yet).

Now that is all about my background and here is the problem:I have this in my HTML:

<a href="http://www.mydomain.com">click here</a>

But when users get am e-mail like that and view it in hotmail. (chrome, IE, safari etc.) and when they hover the link they will see that the url is http://www.mydomain.com but when they click on it. It redirects to:

http://www.mydomain.com/mail/InboxLight.aspx/404.aspx?msg=The%20file%20'/mail/InboxLight.aspx'%20does%20not%20exist

what am I doing wrong? Is it an SMTP/IIS server setting? Did I forget something in my Asp.Net C# code when I have send the mail? Did I forget something in the DNS or HTML markup? The link works perfectly when I receive the mail in my Outlook 2010 where the domain is also added to the safelist.

EDIT If it seems to be all related to the antispam stuff in hotmail. Should I consider to buy: http://www.youtube.com/watch?v=98oc_5bjjkc

View 1 Replies

Forms Data Controls :: Add An asp:label And An Image - Both Works As One Clickable Item ?

Oct 28, 2010

I have a Datalist.In the ItemTemplate I add an asp:label and an image (img). I want both controls to be clickable as one Item so I put both inside a LinkButton.The result was strange I got only the Label clickable and fire the Datalist ItemCommand event ? how to make both works as one clickable Item ?

View 5 Replies

Web Forms :: VS 2005 - MS Outlook Works Locally But Not From Server?

Apr 16, 2010

I have a button on a page that when clicked should bring up the users email system (MS Outlook).When I run my application locally on my test machine, I click the button and my email comes up.However, once I moved the application to the web server, when I click the button, nothing happens.Can you tell me what is wrong? Below is the function I am using:

[Code]....

View 4 Replies

JQuery :: Display Comments And Clickable Link In Datalist?

Jan 21, 2011

I am a new coder trying to experiment with jquery for my first time. I'm trying to setup a simple datalist that might be used to display comments for an item. I want a clickable link (per datalist row) to drop down a panel (per datalist row) that has comment text. so the user looks at row 1, clicks it's link to read comments, and the comments panel drops down. they scroll down and do the same for the next item.

so far i have the below code as a small test page, but it's not working. nothing happens basically. I tried the clientID thing because it seems i need that to deal with the auto-generated ID's .NET will assign panels as it's rendered, but i'm not sure if i'm doing it right.

[Code]....

body

[Code]....

View 4 Replies

DataSource Controls :: Making A LINQ To SQL Gridview Column A Clickable Link?

Feb 24, 2010

I have a database table column consisting of text URLs [URL] In my LINQ-to-SQL-driven gridview, I want to make this a clickable link programmatically, with differing link text (e.g. "Link text"). I'm getting close but am missing some key concept. Here's the core of the .vb codebehind:

Dim dctx As New ResourceMod.ResourceModDALDataContext
Dim eleResObj = From eleRes In dctx.Resources Where eleRes.Type = "url" Select siteurl = eleRes.Website
GridView1.DataSource = eleResObj
GridView1.DataBind()

This displays the raw URL in the gridview (i.e. non-clickable). I've experimented with adding an explicit hyperlink column a la [URL](setting AutoGenerateColumns false etc.), but haven't yet figured out how to assign the asp:hyperlink Text and NavigateUrl fields with the anonymous-type object eleResObj. Using a field construct such as Text='<%# Eval("siteurl") %>' isn't working, presumably a scope issue. Is a LinqDataSource needed in this case, and if so, how would that affect the original LINQ query?

View 2 Replies

Open New Browser Window Using Outlook Link?

Jan 7, 2011

I am sending mail using .net c# code. In that mail i am providing link of customer website. When anyone click on link (in outlook mail) then it will open new window if already not opened any window. Suppose user already working in IE browser [URL] and then user click on link using outlook mail then link open in new tab in already opened IE browser window. So i want that everytime open new browser window when click on link.

View 4 Replies

Web Forms :: Send Gridview To Outlook In C#?

Apr 19, 2010

How to send the gridview contyrol content to microsoft outlook mail body.

View 6 Replies

Controls :: How To Send Email Using Microsoft Outlook

May 7, 2015

i want to send a Email through outlook using vb.net

View 1 Replies

Web Forms :: Send Entries Local Outlook Calendar?

Jul 23, 2010

I use the following code to send entries to the local outlook calendar. Is it possible to do something like this for Google calendars as well?

[Code]....

View 1 Replies

Web Forms :: Read Outlook Application Inbox By Clicking On Link Button

Apr 27, 2016

I want to read my Outlook application Inbox by cliccking on the link button. On clicking the LinkButton , it should open the Outlook Mail application inbox that is configured in the system.

View 1 Replies

How To Send Email From Server To Home Network Clients (via Outlook)

Apr 9, 2010

I'm a newbie in asp.net (and vb.net)..

I have an application which will sent an automatic email from my company mail server to all the client/employee in my company every week. how to make this happen... everytime i applied the codes that i'm searching in google always give me some errors cause it always discuss how to send email to outside the company...

How can i achieve this goal ? what codes should i use ?

Note : i'm using vb.net 2005 and microsoft office outlook

View 5 Replies

Fails To Send Email Through Gmail SMTP, But From Outlook 2007 Succeeds?

Dec 12, 2010

a couple weeks ago, my ASP.NET website stopped sending user comments which I implemented by emailing those comments to my email account through Gmail SMTP server [URL]. I opened the project on my development machine and again it fails to send the email after a couple minutes with the following exception message:

Failure sending mail

Unable to read data from the transport connection: net_io_connectionclosed.

I'm using Gmail's SMTP with port 465, and MailClient.EnableSSL = True.

The weird thing is my Office Outlook 2007 is using the same settings and it doesn't have any problems sending mail using the same Gmail account.

View 3 Replies

Web Forms :: Using System.Net.Mail To Send Email To Gmail Account From Outlook Web Server

Jul 15, 2010

I am trying to send an email from our web server to a gmail account via System.Net.Mail but am failing miserably receiving this error message:

Mailbox name not allowed. The server response was:

that domain isn't in my list of allowed rcpthosts (#5.7.1) Using this code I am able to send emails to other email addresses on our Outlook email server:

[Code]....

So I know I am capable of sending email to Gmail with port 587 and using the proper credentials of my own Gmail account. That is not the problem.


The problem is I want to be able to have the mail sent from my application from whatever the user puts in the FROM (Email address): text box to a Gmail account. When I use the above code, the address that the email is sent from is my own.

So the question is: Is there any way to configure this to be able to send from an Outlook email server to a Gmail account without having to use my Gmail account to actually do it (using my credientials). Therefore showing the email as sent from whatever the user puts in the txtEmail text box, and having it sent from the Outlook server?

I know my SMTP uses the port 25 for outgoing mail and I am pretty sure that the Gmail settings block port 25 for incoming mail, which makes sense, but what doesnt make sense is I can compose a message in Outlook and send it to a gmail account, but I cannot automate this through my programming, which makes me feel certain its my programming.

View 3 Replies

Web Forms :: Code To Hide Download Link Works, But Now Need To Access A File *outside* Physical Path?

Mar 20, 2010

here's the code so far:

[Code]....

[Code]....

mov is a quicktime file, my server has the mimetype: video/quicktime .......... but as I read, this code forces the save as download box which is exactly what i want :) now, here's the catch, i the file I am fetching is NOT on the physical path... it is on a completely different server:Protected Sub LinkButton1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles LinkButton1.Click
Response.Clear()
Response.ContentType = "x-msdownload"
Response.AppendHeader("Content-Disposition", ("attachment; filename=mydownload.mov"))
Response.TransmitFile("http://myOTHERserver.com/files/mydownload.mov")
Response.End()
End Sub

Obviously this doesn't work since TransmitFile requires that the file be on your physical path, so how do i do this? Someone said you must use the stream method. Do you have any sample code I could try? I've tried the HTTPStreamReader object but it's giving me issues, so I would love to find out if there is anyway this might work. Now here's some more important information: this are HUGE video files.. we are creating a downloads page... written in asp.net -- so you create an account using the .net membership class, then you select the file you want, go through a form where you enter your billing info and then after you pay a certain fee (this is already implemented), you go to your "downlaods" area in your account... there you have access to the files......... the reason i'm doing this is because i want to hide the download link, which will be something likehttp://myOTHERserver.com/2340987sdfkjhalsdlkjh23 ... (something really crazy)....... we don't want people seeing this on the status bar (Therefore hiding the download link is ESSENTIAL)........ the files are a good 500MB each approximately; so i would love to hear all of your suggestions as to making the streamreader work for me and how long would it take for the streamreader to READ the file........

View 7 Replies

Create One Button "Send This On Mail" When User Will Click Button Outlook Should Open?

Apr 13, 2010

I have created one a page and i am using data grid and data is coming from SQL.Now i want to create one button "Send this on Mail" when user will click this button outlook should open and in the body part my data grid should come with same formatting which i am using in a web page.

View 1 Replies

Send A Mail To A User With A Link?

Sep 22, 2010

In my project i am sending a mail to the user to create a user account. I want to enable that link for the first time he/she clicks the link. if he clicks the link for more than 2 times,then it should go to custom error page.how to do this?

View 1 Replies

C# - PayPal IPN - Send A Link To Pay An Amount?

Aug 24, 2010

I have a PayPal implementation using IPN and it works fine. However, in some cases, I will need to be able to send out an email to a user with a link to click on and pay an invoice amount. I'm not really sure how to do this - I know I can send them to a particular page on my site with query string variables - but what would the PP code look like to have the user see a button that says - "Pay X amount by clicking here".

View 1 Replies

Web Forms :: Send Email With Link?

Feb 21, 2014

following is my function to send mail

Function send_mail(ByVal mail_id)
Try
Dim smtp_client = "smtp.net4india.com"
Dim password = "omport$10"
' Dim email_id = "mail@relishspices.com"
Dim email_id = "net@omport.com"

[Code] ....

I can send a simple text mail but i am unable to send link through email.whats wrong in the code?

View 1 Replies

How To Send An Email Confirmation Link To The User

Mar 20, 2011

I am developing a website where I need to send confirmation link to the user's e-mail account when he/she signs-up.

When user clicks this link then a field userEnable in database changes from "false" to "true".

How do I send a confirmation e-mail to a user when user clicks on the signup button.

When user clicks on this confirmation link then how would the field UserEnable change from "false" to "true"

I am using asp.net 4.0 with VB.NET as the language and SQL Server 2008 for my database.

View 3 Replies

Web Forms :: How To Send Website Link Through Email

Dec 15, 2010

in my webpage forgot password is there,this forgot password contain some required field values are there

those are Email,username. in email give the information the send ,this mail contain link like

http://localhost:45705/VegaFABSWeb1412/ResetPassword.aspx this link contain the localhost

how to get www.VegaFABSWeb1412/ResetPassword.aspx

View 12 Replies

Web Forms :: How To Send .exe Files On Link Button Click

Oct 1, 2010

i am having one .exe file and after clicking linkbutton it should redirect to that .exe file and it should start downloading.

View 3 Replies

How To Send The Dropdownlist Value To The Controllers Action When Link Is Pressed

Jan 12, 2011

I am using asp.net mvc 3 and I want to trigger the GridView action and pass the dropdownlist selected value in the action parameter.

@Html.ActionLink("View", "GridAction", new { action = $("#DropDownList1").val() });

View 1 Replies

Web Forms :: Send Account Activation Link In Email

Jan 23, 2014

How to send a registration link in email upon new event creation? there has to be some ID associated with it so that when a new user clicks on registration link a page opens up with the specific event details..

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved