|
Hi,
I have a website that I want to send lots of email to my member like codeproject but I don't want to send it as spam how can I do to send this in inbox mail NOT spam?
Thanks.
|
|
|
|
|
You can't. The spam detection is done at the client end, using rules the client has set up. For example, my spam filter is set to detect anything which contains "$$$" or the word "Rolex". If a Codeproject email arrived with those in, it would be treated as spam.
The best you can do it send actually useful information, and hope that the client adds you to the non-spam list himself. If you "send lots of email" to people though, there is an increasing chance that you will go straight onto the spam list - you would with me.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Manfred R. Bihy: "Looks as if OP is learning resistant."
|
|
|
|
|
defenitly my information is useful for my user but when you send lots of email more than 10000 the gmail or yahoo or ... engine think these are spam so what should I do to avoid that?
Thanks.
|
|
|
|
|
Use a mail server that does not have these restrictions.
0100000101101110011001000111001011101001
|
|
|
|
|
Which mailserver?explain more. my sait have a mailserver too but yahoo And gmail think they are spam
|
|
|
|
|
Buy access to a reputable and trusted mail server.
or
Find out why Gmail and Yahoo have blacklisted your own mail server and try having it removed from the blacklist. If you known why you have been blacklisted you can avoid the cause the next time.
0100000101101110011001000111001011101001
|
|
|
|
|
As Andre says - don't send emails that fast from gmail or yahoo. Even some web hosts will assume you are a spambot if you start sending too fast and will block your account.
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Manfred R. Bihy: "Looks as if OP is learning resistant."
|
|
|
|
|
As you said I khow that don't send emails fast and at this moment in my site I send some email and afterward send again but I want to sent lots of them at once I'm sure it has another solution so do you have any solution?
|
|
|
|
|
I have a web page that invokes a web service methods to get records displayed on the web page. What happens if two website users vistit the web page at the same time. Two simultaneous requests will be sent to the web service. Should a mechanism be used to enforce exclusive invokation of the web service ?
Currently no such mechanism is used in the web page and some times timeout error generated when invoking the web service. I doubt such error is caused by lack of mutal exclusion support when invoking web service.
What is the best practice when implementing the web page in question ?
modified 9-Oct-11 9:56am.
|
|
|
|
|
Hi,
when two separate webpages perform a request to the server either by calling a webservice or some other request medium, you have no control over what happens once a request is sent to the server. It is two different REQUESTS transmitted in TWO different REQUEST CHANNELS, IIS on your server will manage all of this for you.
Your server will respond to these two requests separately and simultaneously. Remember that both your clients are important so you don't want to serve one client and deny the other, the only way to resolve this is to make your server a much faster machine.
I can imagine that one day your site will be "live" and 1000+ people will make requests to the webservice at the same time! implementing a mechanism to control which request is served first is really something done by IIS(internet Information Service) and you shouldn't bother, you will kill yourself.
Happy coding,
Morgs
|
|
|
|
|
Thanks for reply.
Maybe I couldn't explain well. The web page in the website invokes a remote web sevice. When two users visit the same web page it means two simultaneous requests are made to the web service both of which are originated from the same Ip address. The matter is they are from the same Ip address. I doubt wether the web service can handle that or a machanism must be used in web page. Or maybe the server can be cofigured to allow such simultanous requests or not ?
|
|
|
|
|
Hai all,
I want to send bulk mail in asp.net using C#...Front End:Asp.Net with C# and Back End:Sql Server.
Following code is used to sending from gmail only...how i send from yahoo,hotmail,rediffmail,etc...
MailMessage mm = new MailMessage();
mm.From =new MailAddress(FromTextBox.Text);
mm.To.Add(ToTextBox.Text);
if (FileUpload1.HasFile)
{
Attachment at = new Attachment(FileUpload1.PostedFile.FileName);
mm.Attachments.Add(at);
}
mm.Subject = SubjectTextBox.Text;
mm.Body = MessageTextBox.Text;
SmtpClient sc = new SmtpClient();
sc.Host ="smtp.gmail.com";
sc.Port = 587;
sc.EnableSsl = true;
sc.Credentials =new System.Net.NetworkCredential(FromTextBox.Text,PasswordTextBox.Text);
sc.Send(mm);
Response.Write("Mail Sended");
how to send bulkmail from gmail,yahoo,rediffmail,hotmail etc..
how to attached single and multiple files and images...
how to store sended mail with and without single and multiple attachments...
how to do these all...please any body send code...
thanks in advance...
|
|
|
|
|
I have not checked but I assume Gmail, Yahoo, Hotmail, etc. all will have limits in place to prevent the sending of bulk mail.
For Gmail see: Sending limits[^].
0100000101101110011001000111001011101001
|
|
|
|
|
Hi, my problem is to find Multiview inside Details view.
I try this method:
MultiView m = (MultiView)DetailsView1.FindControl("MultiView1");
But on debug m result= null.
MultiView ovviusly is in itemtemplate.
Can how find this control?
modified 8-Oct-11 7:34am.
|
|
|
|
|
Let me see the markups.
Help people,so poeple can help you.
|
|
|
|
|
I am referring following article on Codeproject:
AutoMapper[^]
I would like to compare following code with GUID. can guide me to write function for checking GUID if the key (GUID) dose not exists in destination table then it will return false else true.
public class VIPResolver : ValueResolver<bool, string>
{
protected override string ResolveCore(bool source)
{
return source ? "Y" : "N";
}
}
Any answer would be appreciated!
Thanks,
Imdadhusen
sunaSaRa Imdadhusen
+91 99095 44184
|
|
|
|
|
When working with C# asp.net 2010 web controls, I am wondering if there is a method for handling errors? Basically is there any special way of handling errros that can occur? If not, when a web control is being accessed, should I put the code within a try-catch block?
|
|
|
|
|
Try/Catch is the basic way. Just handle your exceptions and perhaps display a friendly message to the use while logging the details for administrators.
No comment
|
|
|
|
|
Hi,
In gridview i am trying to show a form view,where i need to show a gridview along with some label and textbox fields.
how to perform this.
here is my code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Text;
namespace Bbt.Slg.MWL.SupplyChainFinance.UI.Pages
{
public partial class CRH : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
gvConfRec.DataSource = DefaultValue();
gvConfRec.DataBind();
}
}
public DataTable DefaultValue()
{
DataTable Dt = new DataTable();
Dt.Columns.Add("AVname", typeof(string));
Dt.Columns.Add("AVcust", typeof(string));
Dt.Columns.Add("AVinv35", typeof(string));
Dt.Columns.Add("Avyes", typeof(string));
Dt.Columns.Add("AVamnt", typeof(string));
Dt.Columns.Add("AVindt", typeof(string));
Dt.Columns.Add("AVdudt", typeof(string));
Dt.Columns.Add("AVfndy", typeof(string));
Dt.Columns.Add("AVnolib", typeof(string));
Dt.Columns.Add("avkey46", typeof(string));
for (int i = 0; i < 20; i++)
{
DataRow dr = Dt.NewRow();
dr["AVname"] = "Suyan ent" + i.ToString();
dr["AVcust"] = "SUYAN ENTERPRISE" + i.ToString();
dr["AVinv35"] = "46454454" + i.ToString();
dr["Avyes"] = "YES" + i.ToString();
dr["AVamnt"] = "$24,232" + i.ToString();
dr["AVindt"] = "4-SEP-2011 " + i.ToString();
dr["AVdudt"] = "11-OCT-2008" + i.ToString();
dr["AVfndy"] = "180" + i.ToString();
dr["AVnolib"] = "0.865" + i.ToString();
dr["avkey46"] = "4,344" + i.ToString();
Dt.Rows.Add(dr);
}
return Dt;
}
public DataTable ConfirmReceivable()
{
DataTable Dt = new DataTable();
Dt.Columns.Add("STR", typeof(string));
Dt.Columns.Add("INVC#", typeof(string));
Dt.Columns.Add("PO#", typeof(string));
Dt.Columns.Add("INVDATE", typeof(string));
Dt.Columns.Add("DUEDATE", typeof(string));
Dt.Columns.Add("GROSSAMOUNT", typeof(string));
Dt.Columns.Add("NETAMOUNT", typeof(string));
for (int i = 0; i < 5; i++)
{
DataRow dr = Dt.NewRow();
dr["STR"] = " " + i.ToString();
dr["INVC#"] = "10199813" + i.ToString();
dr["PO#"] = " " + i.ToString();
dr["INVDATE"] = "5-SEP-2011 " + i.ToString();
dr["DUEDATE"] = " 13-OCT-2012" + i.ToString();
dr["GROSSAMOUNT"] = " " + i.ToString();
dr["NETAMOUNT"] = "$5,200 " + i.ToString();
Dt.Rows.Add(dr);
}
return Dt;
}
protected void gvConfRec_RowCommand(object sender, GridViewCommandEventArgs e)
{
}
protected void gvConfRec_RowDataBound(object sender, GridViewRowEventArgs e)
{
}
}
}
<pre lang="HTML">
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CRH.aspx.cs" Inherits="Bbt.Slg.MWL.SupplyChainFinance.UI.Pages.CRH" MasterPageFile="~/MasterPages/BBTSLG_SupplyChainFinanceMaster.master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div style="padding-top:3px"></div>
<div style="padding: 0px 0px 0 px 5px;">
<div class="heading">
Funding Request</div>
</div>
<asp:Panel ID="PanelDetails" runat="server" BorderWidth="1" Width="100%" Height="100px"
BorderColor="#848284">
<table border="0">
<tr>
<td class="style5"><asp:Label ID="Label1" runat="server" Text="Supplier:" CssClass="heading"></asp:Label></td>
<td><asp:Label ID="lbl_Supplier" runat="server" ForeColor="#CC0000" >AMS DISTRIBUTING INC-0255</asp:Label></td>
</tr>
<tr>
<td class="style5">
</td>
<td>
<asp:Label ID="Label3" runat="server"
Text="* Note: Funding Requests can be submitted daily after 11:00 AM ET. If check boxes do not appear under 'Fund', transaction rates have not yet posted."
style="color: #FF0000"></asp:Label>
</td>
</tr>
<tr>
<td class="style5"> </td>
<td>
<asp:GridView ID="gvConfRec" runat="server" AutoGenerateColumns="False" CellPadding="2"
ForeColor="Black" GridLines="Vertical"
CssClass="labelClass" Width="900px" BackColor="White" BorderColor="#DEDFDE"
BorderStyle="None" BorderWidth="1px" PageSize="10"
AllowPaging="true" onrowcommand="gvConfRec_RowCommand"
onrowdatabound="gvConfRec_RowDataBound" >
<RowStyle BackColor="#E3EAEB" />
<Columns>
<asp:TemplateField HeaderText="Fund *">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
<asp:CheckBox ID="chkFund" Runat="server" Width="20px" Height="20px"></asp:CheckBox>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="AVname" HeaderText="Buyer" >
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
<ItemStyle HorizontalAlign="Left" Wrap="false"></ItemStyle>
</asp:BoundField>
<asp:BoundField Visible="False" DataField="AVcust" HeaderText="Buyer#" DataFormatString="{0:#}"></asp:BoundField>
<asp:BoundField DataField="AVinv35" HeaderText="CR Number">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" Wrap="false"></ItemStyle>
</asp:BoundField>
<asp:HyperLinkField DataNavigateUrlFields="avkey46" DataNavigateUrlFormatString="CRdetail.aspx?jwkey46={0}"
DataTextField="Avyes" HeaderText="Detail"></asp:HyperLinkField>
<asp:CommandField ShowSelectButton="True" HeaderText="Detail" />
<asp:BoundField DataField="AVamnt" HeaderText="CR Amount" DataFormatString="{0:$###,###,###.00;($###,###,###.00-;'';}">
<HeaderStyle HorizontalAlign="Right"></HeaderStyle>
<ItemStyle HorizontalAlign="Right" Wrap="false"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="AVindt" HeaderText="CR Date" DataFormatString="{0:##/##/##;'';}">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" Wrap="false"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="AVdudt" HeaderText="Due Date" DataFormatString="{0:##/##/##;'';}">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" Wrap="false"></ItemStyle>
</asp:BoundField>
<asp:BoundField DataField="AVfndy" HeaderText="Est Fund Days" DataFormatString="{0:#}">
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" Wrap="false"></ItemStyle>
</asp:BoundField>
<asp:BoundField Visible="False" DataField="AVnolib" HeaderText="NoLib"></asp:BoundField>
</Columns>
<FooterStyle BackColor="#CCCC99" />
<PagerStyle BackColor="#848684" ForeColor="Black" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#848684" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
<RowStyle BackColor="#efefef" />
</asp:GridView>
<br />
<div>
<asp:FormView ID="FormView1" runat="server" >
<ItemTemplate>
<asp:Panel ID="panel1" runat="server" BorderWidth="1" BorderColor="#848284">
<div style="padding: 10px 0px 0 px 50px;">
<div class="heading">
Detail View of Confirmed Receivable-
<asp:Label runat="server" ID="Label1" CssClass="heading1" ></asp:Label>
</div>
<table cellpadding="2" cellspacing="2" align="center" class="labelClass" width="100%">
<tr>
<td class="style2">
Supplier:
</td>
<td style="width:180px">
<asp:Label runat="server" ID="lblSupplier" CssClass="heading1" Text="ALL TRADE TOOL INC"></asp:Label>
</td>
<td class="style1">
Buyer:
</td>
<td class="style3">
<asp:Label runat="server" ID="lblBuyer" CssClass="heading1" Text="ADVANCE STORE INC-2333"></asp:Label>
</td>
<td class="style4">
E-mail Listing To:</td>
<td style="style4">
<asp:TextBox runat="server" ID="txt_Email"></asp:TextBox>
<asp:Button ID="btnSubmit" runat="server" Text="Submit" /></td>
</tr>
</table>
</div>
</asp:Panel>
<asp:Panel ID="pnlDetails" runat="server" BorderWidth="0" Width="100%" Height="50px">
<table cellpadding="2" cellspacing="2" align="center" class="labelClass" width="100%">
<tr>
<td class="style2">
Gross Amount:
</td>
<td style="width:180px">
<asp:Label runat="server" ID="lbl_GrossAmount" CssClass="heading1" Text="" ></asp:Label>
</td>
<td class="style1">
Receive Date:
</td>
<td class="style3">
<asp:Label runat="server" ID="lbl_ReceiveDate" CssClass="heading1" Text="6-JAN-2010" ></asp:Label>
</td>
<td class="style2">
Total Adjustments:
</td>
<td style="width:180px">
<asp:Label runat="server" ID="lbl_TotalAdjustment" CssClass="heading1" Text="" ></asp:Label>
</td>
<td class="style1">
Net amount:
</td>
<td class="style3">
<asp:Label runat="server" ID="lbl_NetAmount" CssClass="heading1" Text="$4,50,000" ></asp:Label>
</td>
</tr>
</table>
</asp:Panel>
<asp:Panel ID="PanelDetails" runat="server" BorderWidth="1" Width="100%" Height="295px"
BorderColor="#848284">
<div style="padding: 10px 0px 0 px 50px;">
<table cellpadding="2" cellspacing="2" align="left">
<tr>
<td>
</td>
<td style="width: 30px" valign="top">
<img src="../Images/print3.jpg" alt="" />
<asp:GridView ID="gvConfirmReceivable" runat="server" AllowPaging="true"
AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE"
BorderStyle="None" BorderWidth="1px" CellPadding="4" CssClass="labelClass"
ForeColor="Black" GridLines="Vertical" PageSize="10" ShowFooter="true"
Width="1024px" >
<Columns>
<asp:BoundField DataField="STR" HeaderText="STR" />
<asp:BoundField DataField="INVC#" HeaderText="INVC#" />
<asp:BoundField DataField="PO#" HeaderText="PO#" />
<asp:BoundField DataField="INVDATE" HeaderText="INV DATE" />
<asp:BoundField DataField="DUEDATE" HeaderText="DUE DATE" />
<asp:BoundField DataField="GROSSAMOUNT" HeaderText="GROSS AMOUNT" />
<asp:BoundField DataField="NETAMOUNT" HeaderText="NET AMOUNT" />
</Columns>
<FooterStyle BackColor="#CCCC99" />
<PagerStyle BackColor="#848684" ForeColor="Black" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#848684" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" />
<RowStyle BackColor="#efefef" />
</asp:GridView>
</td>
</tr>
</table>
</div>
</asp:Panel>
</ItemTemplate>
</asp:FormView>
</div>
</td>
</tr>
<tr valign="middle" >
<td class="style5">
</td>
<caption>
<tr>
<td valign="middle" class="style5">
<asp:Button ID="btn_ReqFunding" runat="server" Text="Request Funding" />
<%----%></td>
</tr>
</caption>
</tr>
</table>
</asp:Panel>
</asp:Content>
<asp:Content ID="Content2" runat="server"
contentplaceholderid="ContentPlaceHolderHead">
<link href="../Styles/StyleSheet.css" rel="Stylesheet" type="text/css" />
<style type="text/css">
.style1
{
width: 381px;
}
.style2
{
width: 244px;
}
.style3
{
width: 218px;
}
.style4
{
width: 185px;
}
.style5
{
width: 120px;
}
</style>
</asp:Content>
|
|
|
|
|
Hi,
I have created a report with Report Viewer control using Visual Studio 2008 under 3.5 frame work in the local mode. However, I am trying to publish this website for public to use on Windows 2003 server. I have installed published the website with Web.Config from my machine and then executed ReportViewer.exe on this server by double clicking on it. This Report Viewer.exe was downloaded from Microsoft Report Viewer Redistributable 2005. However, so I read an article in this that I need to copy exe file from C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ReportViewer\ReportViewer.exe to the server. I did the same, but I do not see same directory path on the server. It does not have no subdirecties from BootStrapper\Packages\ReportViewer\ReportViewer.exe in the server. When I try to access the website, it still says "Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies". Although I executed ReportViewer.exe from c:\ on the server, I am not sure what else needed to do. It says that all the required files in C:Windows directory. But I am not positive on copying files and placing them anywhere.
I am wondering if my actions are not coherent enough to publish the website or not. Any help is greatly appreciated.
|
|
|
|
|
Hi
I faced the same problem many times but with visual studio 2005. I got it fixed everytime by formatting and installing everything.... Then everything worked well again.
Naina
Naina
|
|
|
|
|
Thank you for your answer. However, in my situation, I can't do that because it is a server used by many people! Appreciate your time, though!
|
|
|
|
|
I have copied all dlls from windows folders to my website bin folder, and it worked.
|
|
|
|
|
Nice that it had worked copying the dll's, but this solution of moving the dll's didnt work for me
Naina
|
|
|
|
|
Salam guys;
I am trying to write a tool that is supposed to romanize arabic text. Do you now where i can get an algorithm or any thing useful.
Help people,so poeple can help you.
|
|
|
|