Bulk Email Not Getting Delivery Status Report To From All Sender
Apr 24, 2010I am not getting email delivery status report in asp.net. if i am sending 500 email if 200 failed then how to know which 200 email failed?
View 1 RepliesI am not getting email delivery status report in asp.net. if i am sending 500 email if 200 failed then how to know which 200 email failed?
View 1 RepliesHas 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.SpecifiedPickupDirectory
smtpPK.PickupDirectoryLocation = "C: emp"
smtpPK.Send(mail)
' Send Message Directly
Dim smtp As New SmtpClient("mail.domain.com")
smtp.Send(mail)
End Sub
End Class
For an MVC 2 app that relies on many partial views and almost exclusively uses Ajax for POSTs/GETs, what would be the best way to implement the setting, passing, retrieval and display (using a JavaScript modal) of these messages?
My forms all POST (by way of jQuery $.ajax) to actions that return partial views (html) that are used to update a in the "success:" part of the $.ajax function.
I was hoping for some sort of mechanism in the master view that could "listen" for any messages that any of these partial views might be "delivering"--through their ViewData, for instance.
These are sender settingcode in web.config
<configuration>
<appSettings>
<add key="Host" value="smtp.gmail.com"/>
<add key="EnableSsl" value="true"/>
<add key="UserName" value="neda@gmail.com"/>
<add key="Password" value="xxxx"/>
<add key="Port" value="587"/>
</appSettings>
<connectionStrings/>
here is sender email but i want there wasn't any email address.I mean i want when users click on button and send me an email there wasn't any email address in sender details.
Lets say i have a button control on a page and a label control. On clicking this button it performs series of actions say Action 1 , Action 2. Action 20 which will take say approx 1 hour to complete. What i need is, once this long processing is started, My web page should show the status of each action on label. Eg. After clicking a button, Label1 text should be "Action 1 is started" after Action1 is completed and Action 2 is started ,.... Label1 text should be "Action 1 Done...Action 2 started" I need this so that my user can see whats the current state of processing.
View 7 RepliesIs there away to know original email sender IP, I mean the client machine which is used to send the email not the smtp sever. where in the header if any?
View 2 RepliesI have a couple of web applications which all utilize sending emails whether it be by contact form, or some kind of notification updates etc. The problem I have found is that there isn't really any way to track the emails which are being sent from the web applications, so I've come up with a possible solution: It's pretty straight forward really - instead of having each web application sending the emails themselves I would like to unify the process by creating a central Email Sender Service.
In basic terms, each application would just create a row in a 'Outbound Emails' table on the database with To,From,Subject,Content data. The Email Sender Service (Win Service) would then pick the emails from the outbox, send them and then mark as sent.
Even though I would store 'basic email' information (to,from,subject,content) in the database, what I would really like to do is also store the 'MailMessage' object itself so that the Email Sender Service could then de-serialize the original MailMessage as this would allow any application to fully customize the email. Are there any problems with using the MailMessage object in this way? Update: Another objective, is to store a log of emails that have been sent - hence the reason for using a database.
I need to send an email in asp.net but I need sender appears like "MySiteName" without info@[URL] need to send an email in asp.net but I need sender appears like "MySiteName" without info@[URL]
View 4 RepliesI have set a job in sql server 2008 to send reminder emails for product expiration. Now I want a report which will specify the list of the emails sent with the email status details like queued ,sent,delivered, failed.
I can fetch the emails that are sent by querying the like following
select * from sysmail_mailitems SM inner join sysmail_profile SP on SM.Profile_Id = SP.Profile_Id
and SP.Name ='ReminderProfile'
The problem is only getting a perfect status of email whether it is delived or failed. How I can get those status ?
I have a web form which will send bulk email to our site suscribers, they maybe hundreds or even thousands.Is System.Net.Mail optimal for this purpose?
View 18 RepliesI am creating a bulk email sending facility for our website.I have got all the email in one table so i know i can use email sending features with one loop that take all the emails from the table and send it to everybody.I would like to give them a link that will opt out them from the list.If anybody has done it recently or know any link please suggest it.
View 2 RepliesI know I'm missing something. I'm getting this error when trying to use the script below it. The data I need comes up fine but I don't know how to get it into a loop that works for Bcc. Ideas? If a hard code a single address into bcc it works fine. If I append the body with the datatable records to see if the data is actually there, all the data expected is there.Unable to read data from the transport connection: net_io_connectionclosed.Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed.
public void hthSubscriberMail(string subject, string body)
{
string connectionString;
[code]...
I need to send a info email to a lot of emails in a table I have. I managed to find some code on the internet and I made the connection so that everyone got their email correctly.However I want to display the email recievers their names in the body text. Like "Hi Mr Stark!My code only sets the name of the last name in my table.This is my code:
[Code]....
I have users table in database that contain their Email address and I have 2 textbox
1-txtSubject
2-txtBody
and 1 button btnsend in my page...
I want when I click on Send button it send to all users email that contain txtsubject and txtbody ...
how I can do it?
Dear sir all i want to know is that is this that best way to send mail to listof users provided that i need to had my custom html template as well.
[Code]....
And this is how i call this function to send multiple mail
[Code]....
I have a asp.net c# web application with contains reports in remote processing mode. I am using the report-viewer control to render the reports. When I run the application in debug mode, I'm able to view my reports however when I publish the application to a different server I get this error message:The request failed with HTTP status 401: Unauthorized.
My report server is on a different server than the location of my published web application. I have added new role assignment to my report server and also added to my web.config but the error persists. I think I am missing something in my aspx page for reportviewer.
The request failed with HTTP status 401: Unauthorized.accesing the server report in ssrs2008
View 2 RepliesI am attempting to create a user programatically with Email as the username. My code calls one of the CreateUser overloads, passing only Username, Password and Email. It consistently fails with a status of MembershipCreateStatus.InvalidAnswer. How can this be? I'm not even passing it a security question or answer.
[Code]....
I am new to the forums as well as new to asp.net as well as most programming languages. I am needing to develope a page for a website where customers can fill in a form on the page and click submit. I would like the form data to be inserted into a fresh brand new SQL DB. I then want the data from each customer to be turned into some sort of file (ie PDF or just a form) and emailed to a specific user as the user hits the submit button to submit their information. Is there an easy way to do this or is this something that should be handled by a few different methods or software or languages?
View 3 RepliesWhen you click on a button my program have to send a email where a report must be generated from table adapters from dataset. Now this report is not going to be displayed when the button is clicked, so it will be sent automatically by code which I have some part(see below). My questions are:
1. how can you generate or build a report without displaying it.
2.embeed this report or data collection from the table adapters as part of the body of the email
my email code so far is this:
mail.From = New MailAddress("qwerty@[URL]")
mail.To.Add(New MailAddress("qwerty@[URL]"))
mail.Subject = "test"
mail.Priority = MailPriority.Normal
Dim smpt As New SmtpClient
smpt.Host = [URL]
smpt.Port = 25
smpt.Credentials = New System.Net.NetworkCredential("qwerty@[URL]","****")) 'hehe not telling :P smpt.EnableSsl = True................
Can anyone point me in the right direction to how I would handle capturing bounced email info. I'm looking into writing an email campaign manager and would like the ability to report that data.
View 2 RepliesBase on the following article:
How to generate and download PDF Report from database in ASP.Net using iTextSharp C# and VB.Net
I have created a rdlc report in webapplication and i want to send it through email as a pdf or a doc or image format.so what is the procedure for it.
View 1 RepliesI have two web services on two different servers communicating
WS1.asmx
Code:
<%@ WebService Language="VB" Class="WS1" %>
Imports System
Imports System.Web
Imports System.Web.Services
Imports System.Xml.Serialization
Imports System.Net
Imports System.IO
' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
' <System.Web.Script.Services.ScriptService()> _
<WebService(Namespace:="[URL]_
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
Public Class WS1
Inherits System.Web.Services.WebService
Dim IP as String = "192.168.0.174"
<WebMethod()> _
Public Function Function1(ByVal s1 As String) As String
Dim ReturnString As String = ""
Try.........................
Building an MVC 2.0 web site and using Content Delivery Network (CDN) in my Site.Master. I'm using the following CDN:
Yahoo's reset-fonts-grids.css
jQuery 1.4.2
jQuery Validation
All of these CDN are delivered using [URL]
My web site currently supports both SSL and non-SSL pages.
When navigating to SSL enabled pages, I get an error because the CDN are linked to [URL]
Although I'm aware that you can use an SSL version of CDN but my question is more like:
Since I have non-SSL and SSL pages all sharing the same *Site.Master* what should I do?
Should I simply get the SSL enabled version one for both SSL and non-SSL pages?
Or should I do some kinda of "if...else"?