.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Easy Web
Imran Ghani
Post New Web Links

Best Way to Store Users Mail Address

Posted By:      Posted Date: September 08, 2010    Points: 0   Category :ASP.Net
 
I have some webforms and the main page grabs the users email address when they login and a UserID.  It's not uncommon for the user to keep the web page open all day.  Is it good practice to store the email address and ID as a session variable and up the timeout to say 10 hours?  Or is there a better way?  My concern is A) Session variables timing out before the user login timesout B) Doing this incorrectly. Thanks!


View Complete Post


More Related Resource Links

How to send mail to individual users.

  

Hi,

  I need to send the same mail to multiple users separately. I dont want to use comma delimeted "To Address" . Because other users can able to see the recipients.

   Each recipient should not know about the other recipients. 

   How will I achieve this one without for loop ?

Thanks.



E-Mail Alerts for users on Task List

  

Is there any way to send e-mail alerts to a specific user wihtout assigning them the task or having them subscribe to the list.

It's a Task List on WSS 3 on Win2k3 Enterprise'

Thanks


How to grab ip address of remote connection to store in table

  

Hey guys move if in wrong area

 

I am trying to create a bit of a VPN program using sql server.

I have figured out how to have a form grab the users ip address and port from a tcp connection and store it into a table.

Now I want to integrate this directly into the sql server.

I know you can filter connections by IP using login triggers but is there a way to do the same when a command is issued to the database.


System.Net.Mail ignores Sender address when delivery method is SpecifiedPickupDirectory

  

Has anybody else had an issue with the sender address not being used as the return-path/bounce address when using system.net.mail to send email with a different address for the return-path/sender and the from address and using the SpecifiedPickupDirectory delivery method? This issue is particularly important when you need to send mail from a "user" address, but want bounce backs to come to a different address so they can be processed.

Using the code below, I think you can reproduce the issue.


Imports System.Net.Mail
Partial Class emailtest
    Inherits System.Web.UI.Page

  Protected Sub test_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles test.Click

    ' Build Message
    Dim mail As New MailMessage
    mail.To.Add("user@gmail.com")
    mail.From = New MailAddress("from@domain.com")
    mail.Sender = New MailAddress("sender@domain.com")
    mail.Subject = "Test Subject"
    mail.Body = "Test Body"

    ' Drop in Pickup Directory
    Dim smtpPK As New SmtpClient
    smtpPK.DeliveryMethod = SmtpDeliveryMethod.Sp

how to make login control allow users to login by either username or email address

  

how to make login control allow users to login by either username or email address 


How to store domain users in SSAS

  

Hi Experts,

I have a requirement where I need to implement security on some dimensions and measures such that it is visible to a set of users and not accessible to another set of users. Now, I want to store the set of users who is accessing the dimensions and measures which are accessible by both the set of users in separate table.

Pls help me.

 


SPD Email only works when I type actual e-mail, but does not send to users or groups

  

I've viewed other e-mail related posts on this forum and have not seen this specific question, so I'll ask.

I've got an approval workflow that I created in SPD.  It works, but when I try to attach e-mail to it, the e-mails do not send to the e-mails associated with the user or groups profiles in SSP (User profile properties). 

For testing purposes, I tried creating a simple workflow that only sends one email to one person.  This doesn't work.  I try sending it to 2 different specific e-mail addresses instead of trying to do a "This specific user" or "Current item:Created by" or something else chosen by SPD: 1 of which is a personal e-mail, another is an e-mail that is assigned to a user's profile in SSP.  Both were received.

So basically the situation is what title says: SharePoint Designer workflow sends an e-mail when the e-mail targets specific e-mail addresses, but not SharePoint users or groups.  So basically DOMAIN\username does not work, but user@domain.com does work.  Any suggestions would be appreciated.

I'm using Moss 2007, SP1.


The specified string is not in the form required for an e-mail address

  
I have searched and searched and searched for an answer to this problem...

I have been using the System.Net.Mail namespace for quite a while to send emails from my websites. A problem occurs though on certain (VALID) email addresses. For example, when the name field of the email address has a dot (.) in it (example: my.name@email.com), an exception is raised when this address is added to the TO property of the MailAdddress object. It seems the dot between my and name causes the exception.

Please note that these are valid email addresses, but the MailAddress object considers them to be invalid.

Any suggestions/workarounds?

Error Message: The specified string is not in the form required for an e-mail address.
Stack Trace: at System.Net.Mime.MailBnfHelper.ReadMailAddress(String data, Int32& offset, String& displayName)
at System.Net.Mail.MailAddress.ParseValue(String address)
at System.Net.Mail.MailAddress..ctor(String address, String displayName, Encoding displayNameEncoding)
at System.Net.Mail.MailAddress..ctor(String address, String displayName)

Failure sending mail: Exception 0xc0000005 was generated at address 0x000007FEE3D4122B Mail will not

  

I'm running SSRS 2008R2.  I'm getting the above error a a couple of email subscriptions.  Some email subscriptions work, a few I'm getting this error message.  I've seen the posts about resetting IIS, SSRS and Agent Service.  I've done this, and it does seem to temporary fix the issue, but then it comes back. 

The one post where it says the "From" field containing more than 255 characters.  This is not my situation.

I need to find a more permanent fix for this issue.  Does anybody have any further insight.  Some postings seem to be related to older versions of SSRS.  I'm on the latest.

http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/5819e507-e398-4960-b5d4-c455d1140bbb

http://social.msdn.microsoft.com/Forums/en/sqlreportingservices/thread/28fea020-f2ef-4f6d-8c39-13dc00af87a1

Any help or suggestions would be appreciated.


Memeber of Group's name displaying as e-mail address

  

Hello,

We are having an issue with one site where when i add a specific user to a group under "People and Groups" his name displays as his e-mail address. This is not correct it should display his name the same as everyone else. We do not have this problem with any other employee and if i add this person to any other group in SharePoint his name displays correctly.


Another note that may be related is the fact that Included in the view of this sites groups, the fields that are displayed for memebers in the group are Name, title, and department. These fields are not updating like other groups in sharepoint.

I am wondering if there is something wrong with how this site is set up?

 

Any insight is greatly appreciated.


Unable to assign this e-mail address to the list, because the address is in use.

  

I have a simple one, I am getting the 'Unable to assign this e-mail address to the list, because the address is in use.' error in WSS 3.0. The question is why?

I have an email address that is ei@mycompany.com, and I am trying to mail enable a sharepoint list with an email of ei@intranet.mycompany.com.

Any reasons why that wouldn't work? I search my entire domain for the email address to make sure some random contact didn't have it-

 

> get-qadobject -type contact -includedproperties mail -sizelimit 0 | where {$_.mail -like "*intranet.mycompany.com"} | select name, mail | export-csv c:\data\intranet.mycompany.com_emailaddresses.csv

TIA!

-jon


You do not have an e-mail address

  

Hello,

I have set up users in the Active Directory for a SharePoint 2010 Server w/ Enterprise Features site.  I entered the users' email addresses in the field labeled as such.  However, when I try to set an alert, I receive this error:

You do not have an e-mail address.
Alert has been created successfully but you will not receive notifications until valid e-mail or mobile address has been provided in your profile

Is this a configuration problem, perhaps something in Central Admin?  I can't seem to find it.  Thanks!


MS SQL Server: Disconnect Users From Database - Kill User Session

  
If you ever wanted to restore your database from a SQL backup file (.bak), but there are still users connected to your database, the backup operation will fail causing the error: Exclusive access could not be obtained because the database is in use.

Enabling Users to Maintain SharePoint Content

  
When SharePoint is installed as a corporate intranet, there is a considerable amount of effort involved in maintaining the content to keep the site relevant. As we discussed in the first few parts of this series, SharePoint has many built-in features to reduce the burden on the site administrator.

Some areas of the site usually contain less-dynamic information. Internal memos and corporate policies are common examples of this information. One option for this information is to post these documents in a document library. Documents in a library are often stored in a few different formats: Word, Acrobat (PDF), or HTML. Each of these formats has its drawbacks.

IP Address Blocking or Restriction in SQL Server

  
"is it possible to block connections to SQL Server based on IP address". As far as now there is no official way in SQL Server to block the connections in SQL Server based on IP address. However this can be done from the OS end, we have the following three options available, refer HERE for more.


.Firewall
.IPSec
.RRAS IP Filter

Enabling Users to Maintain SharePoint Content

  
When SharePoint is installed as a corporate intranet, there is a considerable amount of effort involved in maintaining the content to keep the site relevant. As we discussed in the first few parts of this series, SharePoint has many built-in features to reduce the burden on the site administrator.

my ip address

  
IP Tejji answers question like what is my ip address? find my ip addresss? detect my ip address? Best part is it also determines your local ip address as well as mac address. Further if you keen on browser specification and details regarding browser capabilities can also be found. It also help you see your geographic location. Other details that are available are Latitude, Longitude, timezone, country, region & city. In short it is one-stop-shop for very rich details about your IP and related information.
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend