|
what setting have to be made to send email from asp.net with c#
any settings in web.config file and any other setting please give simple example
|
|
|
|
|
Below is one example of SMTP email setting defined in web.config file:
(Under <configuration> Section)
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="testuser@domail.com">
<network defaultCredentials="true" host="localhost" port="25" userName="kaushal" password="testPassword"/>
</smtp>
</mailSettings>
</system.net>
|
|
|
|
|
|
Respected,
How we send multiple sms in asp.net with c#.
I have use API for this.
Thanks in Advance;
|
|
|
|
|
|
you can append semicolon ";" with the number...
ex:- 9876543210;9812345665;98798790
Most of gateway providers provides this facility..
|
|
|
|
|
in visual studio 2005 how to mail 3 to 5 address at a time using asp.net with c#. can you give a simple example.
|
|
|
|
|
|
use bcc to send mail to multiple users each mail separated by a comma(,). hi
|
|
|
|
|
hi sir,
i am new in asp.net.sir i want to know that is there any java script with the help of which we can stop page reloading at the time of using ajax control.
sir i know that update panel can do this.but sir i do not want to use update panel.i mean i want to stop my page reload without using update panel while i am using ajax.
|
|
|
|
|
Hi guys need advise
Currently , i need to create a crystal report. However i need to create a very dynamic one as i do not have a fix amount of fields. I was just wondering is that any solution that i can create the field i need using code behind to display out on the rpt file.
Normally we will drag the field from dataset to define those fields to display. Now i am asking if there is a way to do it at code behind level with out dragging from dataset?
KaKaShi HaTaKe
|
|
|
|
|
Hi All
I have a following requirement.At runtime I have to add multiple blocks of images into PlaceHolder/Panel>A block contains two images(LHSImage and RHSImage) with some HTML format as shown below.I know images can be added easily into a panel or Placeholder directly at runtime but donot know how to add with html format.
$div id="parentDiv" style="width:100%;float:left;display:inline"$
$div id="LHSDiv" style="width:50%;margin-bottom:10px"$
$/div$
$div id="RHSDiv" style="width:50%"$
$/div$
$/div$
Note:
1. %Path% is calculated at runtime.
2. < angle brackets of divs are replaced by $
Adding HTML markup is mandatory. I donot want to achieve what I want by setting properties of images such as Top,Height etc.HTNL markup should be added.
Any help will be appreciated.
Thanks
Regards
Sandeep Kalra
|
|
|
|
|
Hi all,
I am trying send mail. I added email settings to web.config
<system.net>
<mailSettings>
<smtp from="donotreply@mydomain.com">
<network host="smtp.gmail.com" password="xxxxxx" port="25" userName="admin@mydomain.com" defaultCredentials="false"/>
</smtp>
</mailSettings>
</system.net>
<b>The problem is when i am sending mail, mail delivers. But with from address admin@mydomain.com [userName] but not 'donotreply@mydomain.com'</b>
any solution. To change the from address [avoiding UserName as From address].
Regards,
sekhar
|
|
|
|
|
sekhar.k wrote: donotreply@mydomain.com
Does this mail address exist ?
|
|
|
|
|
Hi Abijit.
Thanks for ur response.
donotreply@[mydomainhere].com is exist, but in-place of 'mydomain' we have our domain name.
The mail actually delivers to given to address. But there it showing from address as 'admin@mydomain.com' which is username used in web.config mailSettings. But i need from address as 'donotreply@[mydomainhere].com'.
any suggestions.
regards,
kv sekhar
|
|
|
|
|
Ok, you can set the Name for mail address. That will display whatever name you provide with the adderess.
MailAddress from = new MailAddress("admin@mydomain.com", "donotreply@[mydomainhere].com");
|
|
|
|
|
Hi Abijit,
I tried your logic by sending a sample email to my email address[gamil]. But no use.
The display name appears in 'from' but it also shows the 'userName' when we click on 'show deails' link.
When i open my mail from inbox. It displays the from as 'donotreply@[mydomainhere].com'. But when i click on 'show details' link it displays like below.
"donotreply@[mydomainhere].com" <admin@mydomain.com>
I don't want show 'UserName' in Recipient user. Because its a credential.
Any solution?
Regards,
kv sekhar
|
|
|
|
|
I'm trying to use OpenOffice 3.1 for Opening the Office Word template as well as modifying it dynamically with Database fields information at the time of opening the document from my harddisk srored loction.
I'm successfully opening and writing into document in my development machine but after deployed to production server(OS Windows 2003 and II6.0) hanging at uno.util.Bootstrap.bootstrap() line.
Dim objDocument As Object
Dim FileNameSource As String = "C:\SysReports\FaceSheet.doc"
Dim localContext As XComponentContext
localContext = uno.util.Bootstrap.bootstrap() //Hanging at this Line
Dim objServiceManager As unoidl.com.sun.star.lang.XMultiServiceFactory
objServiceManager = CType(localContext.getServiceManager(), XMultiServiceFactory)
Plz help to sove this
|
|
|
|
|
Hi i'm a noob, can anyone tell how to host a web page developed in asp? On googling i found out i have to configure IIS. But what if I have a web space like some gmail or google web host space(in labs)...
|
|
|
|
|
Gmail is not a hosting environment, it's an email platform. You need a hosting provider that supports ASP. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
nonono i 'm talking abt web hosting ... i think i saw in google labs.. will refer and will come back to.. wait..
|
|
|
|
|
Two test pages.
Test 1: Test1.aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test1.aspx.vb" Inherits="Test1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<p>Test 1 - With codebehind.</p>
<p><asp:Literal runat="server" ID="Output" /></p>
</div>
</form>
</body>
</html> Test1.aspx.vb
Partial Class Test1
Inherits MyCompany.Web.BasePage
Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreRender
Output.Text = MyUser.UserName
End Sub
End Class
----------------------
Test 2: Test2.aspx
<%@ Page Language="VB" Inherits="MyCompany.Web.BasePage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As System.EventArgs)
Output.Text = MyUser.UserName
End Sub
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<p>Test 2 - With inline.</p>
<p><asp:Literal runat="server" ID="Output" /></p>
</div>
</form>
</body>
</html>
----------------------
Both pages inherit from a custom class, MyCompany.Web.BasePage , which itself is based on System.Web.UI.Page . The property MyUser is defined in BasePage and contains data about the user accessing the page.
Both pages work just fine when accessed. The difference is when editing the pages: with Test1, MyUser shows up in IntelliSense, I can access the object's properties and everything works exactly as I would expect. With Test2, the use of MyUser is flagged as a "not declared" error, and IntelliSense does not detect any properties on the object.
What is so frustrating is that on my previous development machine, Test2 worked as desired in the IDE. It is only now, after my primary machine had to be replaced (damned hard drive) that this problem has cropped up. Replacing inline code with codebehind is not feasable, as there are hundreds of pages that would have to be rewritten, not to mention overhead from doubling the number of files.
I have no idea why the two different coding styles should suddenly be acting differently. Is there an option checkbox that needs to be marked? Please, help me out!
|
|
|
|
|
IMO you should be using inline script anyway. It is a better design and implementation to separate the presentation from the logic. I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
Hi
I have a class which is derived from WebPartZone class. As follows.
LeanWebPartZone : Microsoft.Web.Preview.UI.Controls.WebParts.WebPartZone
In this class, I want to set the helpVerb for providing unique helpPage URL for that webpart. Now, on one webpage I have multiple webparts and each webpart might have different helpPage URL. So, my problem is that, at any given time in LeanWebPartZone class, how do I know for which WebPart I am setting the HelpVerb?
Please advise. Thanks
PankajFollow your goals, Means will follow you ---Gandhi---
|
|
|
|