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


Post New Web Links

emails not delivered

Posted By:      Posted Date: October 05, 2010    Points: 0   Category :ASP.Net
 


I am hosting with server intellect on a .NET 2.0

I have a simple contact email form to send email on www.JassimRahma.com/contact.aspx

The hosting company send me this code which works fine:

<% @Page Language="C#" %>
<% @Import Namespace="System.Web.Mail" %>
<%
SmtpMail.SmtpServer = "mail.jassimrahma.com";
string strTo = "jrahma@yahoo.com";
string strFrom = "donotreply@jassimrahma.com";
string strSubject = "Test Subject";
SmtpMail.Send(strFrom, strTo, strSubject,"Text Message Body");
Response.Write("Complete.");
%>


but when I try my following code it's not not showing any error message but it's not delivered as well.

I also tried different emails and I am CCing to myself but no luck!

what can I do?

                MailMessage mail_message = new MailMessage();

                MailAddress mail_from = new MailAddress("donotreply@jassimrahma.com", "JassimRahma.com");

                string mail_subject = "[Ref# " + ticket_number.ToString() + "] Thank you.";

                mail_message.From = mai


View Complete Post


More Related Resource Links

How do I get the emails of all the members of a given group in ActiveDirectory - Need help

  

Hi,

  I have a need to send out emails to all the people who are in a given group say "HR Department". I need to be able to get all the emails through a for loop and then as it retrieves I should send emails to them. Can some one please help me with the code

this is what I came up with but not sure how to go about writing a for loop to get all the emails in the given group.

public static string SendEmails(string loginName)
    {
        string Department = "HR Department"
        string userName = ExtractUserName(loginName);
        DirectorySearcher search = new DirectorySearcher();
        search.Filter = String.Format("(SAMAccountName={0})", userName);
        //search.Filter = String.Format("(SAMAccountName={FAY ImprovmentForm})", userName);
        //LdapSearcher.Filter = string.Format("(&(objectClass=user)(department={0}))", Department); 
        //search.Filter = string.Format("(&(objectClass=group)(SAMAccountName=" + Department + "))", userName);
        search.PropertiesToLoad.Add("cn");
        search.PropertiesToLoad.Add("samaccountname");
        search.PropertiesToLoad.Add("givenname");
        search.PropertiesToLoad.Add("sn");
        sea

SPD workflow, emails sent for one user, not for the other

  

Good day,

I have a SPD workflow (WSS/2007) that take a date field from a document list and when that date occurs it sends an email.  If the date is in the past, it will send the email out right away.  It is working fine for one user, not for another.  Both users have the same permissions.  The workflow goes as follows:

ACTION: Set Variable: vTermdate to DocumentsNotificationDate
       then log Documents:Email Date to the workflow history list

CONDITION: if Variable: vTermdate is not Empty
ACTION: Log term not empty to the workflow history list

CONDITION: if Variable: vTermdate is Empty
ACTION: Set Variable: vTermdate to N/A

ACTION: Add 0 minutes to Documents:Email Date (out to

Email enabld list delay on recieving emails

  

So the situation is, i have a list, that receives emails from a particular account all day long, recently it has started recieving emails "late" being it will mass process emails at various times of the day. Before it proccessed them as soon as they were received.

Event log shows

A critical error occurred while processing the incoming e-mail file C:\Inetpub\mailroot\Drop\e472144001cb44a40000001e.eml. The error was: The process cannot access the file 'C:\Inetpub\mailroot\Drop\e472144001cb44a40000001e.eml' because it is being used by another process..

 

Have this error everywhere.

        -Restarted SMTP

        -Restarted IIS

It seems SMTP is having issues but wanted to come here and get some insight.

 

-I havent changed anythign recently except new cable runs to the switch

-There is no mail in the (Drop, Mailbox,Pickup, Queue) folders

-mail setup settings are

              -incoming is set to "Advanced" , no,  server.domain.com

Outgoing is my exange server.

 

 


smtp server 5.1 in xp not sending emails

  

hi iam using asp.net 2.0 with c#.net.

in my application when client completes its shopping email will goes to user this works fine when there is internet connection is working fine,
if  there is some problem  in internet connection if one mail stops then all the mails will be stopped even now internet works fine,

how to resend the emails using smtp server, is there any option to resend the emails automatically when internet works fine.


can you give example which helps me.


.net 3.5 in conjunction with CRM 4.0 email router adding code to subject line of emails causing spam

  
We use CRM 4.0, which is using .net framework 3.5 SP 1.  Emails sent out of CRM go through and email router and the subject line of these emails is getting "=?us-ascii?Q? added to the beginning of the subject line and "?= added to the end of the subject line. This is causing a large amount of our emails getting spammed. I was told by the CRM support that this is an issue with .net 3.5 and won't be fixed until .net 4.0, which CRM won't support for another year.  Is there not a .net 3.5 patch that can address this?

Duplicate emails are being sent

  
Hello I am using SPutility.SendEmail method to send the email to the particular recipient internally using case statement. I mean depending on the dropdown selection I am sending email by making the selected values in case statement. Here the issue is the users are complaining that they are getting multiple emails for the same request. When I checked in my dev server the flow of the code is normal but not the same case with prod. The following is the code. case "mycase":                             {                                 StringDictionary headers = new StringDictionary();                                 headers.Add("from", fromemail);                                 headers.Add("to",   toemail);        

Best Way to Send Multiple Emails

  
I'm building a website that allows users to post comments. When they do, they can check a box that indicates if they want an email notification when someone else posts a comment under the same topic. (Similar to this web site.)This means when a comment is posted, the code has to send an email to all the subscribed users.My concern is about what happens when many users are subscribed to a topic. There is a short delay when sending an email. Sending dozens or potentially even hundreds could really cause a delay.Right now, I just loop through each user and send the emails one by one. Does anyone know if that's the best way?Thanks!

Sending Asynchronous emails from Asp.Net Web pages

  
Hey Guys, Here is my situation and hopefully someone could guide me in the right direction. I have a shared or static class in my website (App_Code folder) which has static methods to send emails asychronoulsy. So whenever there is an exception in any of my pages or classes I call these methods to send an email to support asynchronously. Now when there is an exception in a page, to route that exception asynchronously I need to have Async = "true" for that page. I have more than 50 pages and I don't want to set Async= "true" on every page as I read that it affects performance. So I was wondering if there is any way I could send emails asynchronously without having to set async = "true" on every page. Thanks for your time,   Uday.    

Forum Subscriptions emails are sent with a delay of 2 hours

  
Hello I have a couple of forum subscriptions like the ASP.NET MVC forum and I have noticed that when someone creates a new thread that it takes up to 2 hours before I receive the email notification. Can this setting be changed somewhere because I cannot find it in "Edit Profile". Thanks 

Event cannot be delivered

  
We have developed a workflow application similar to the order workflow sample we get this error "Event \"RequestApproved\" on interface type \"RequestLocalServices.IRequestService\" for instance id \"8ce3ae0f-a8f5-4c15-826d-59dfbadf2515\" cannot be delivered." Can any one plz help

Regarding Recieving Emails from POP3 Server

  
Hi..Iam Trying to develop an email application, which i need and send & Recieve emails from my Hotmail. Iam very new to this application, so please help me out where could i start the application. how can i connect to pop3 server and recieve emails..what are the controls should i use to this application.

How to automatically run code and send emails?

  
Hi all- I would like to have users set some parameters, then have routines run in the middle of the night and if the user parameters are met, have an automated email sent to update the user at various time intervals as set by user , ie daily, weekly, monthly, etc.) Can someone please point me in the right direction on how I go about doing this?    

SMTP SENDMAIL corrupts some emails

  
At each month-end, we have several SQL 2000 jobs that mail that send out attached spreadsheets (local volume on the SQL server) to various recipients.  Recently, some of them started showing up unable to be opened.  The error messages usually allow you to click through, but the data is spread across a couple of worksheets and is not formatted properly. If the job is re-run, the attachment is sometimes delivered in a readable fashion, other times it is not. A separate test script that performs the same function seems to always deliver a usable spreadsheet attachment. We have no reason to believe it is the email or local virusscan (TrendMicro OfficeScan, TrendMicro ScanMail for Exchange), since we have appropriate exceptions in place. A search for relavent articles on "SMTP SENDMAIL CORRUPTION" doesn't turn up any obvious hits, so I don't think this is widespread or common. Anybody with some input? Thanks

Error on sending Outlook emails

  
Hi,I am trying to send an email using Outlook in my application. When I run the application in my local machine , it works fine and sends the email using my outlook address. But when I depolyed it onto our server, which is a  Windows Server 2008, it throws an error:Description:            Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005.Date/ time:            20100908_03:51:48FullErrorOutput:            System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {0006F03A-0000-0000-C000-000000000046} failed due to the following error: 80080005.   at _Default.SendWelcomeEmails(String email)   at _Default.btnGrant_Command(Object sender, CommandEventArgs e)   at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)   at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)   at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)   at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)   a

Configuring outgoing emails to any emailid from MOSS 2007

  
hi, We are trying to configure moss 2007 for outgoing email from our custom webparts and as well as from within sharepoint actions. WE had referred the white paper from combined knowledge, but we are able to send only mails from .com emailids to other .com IDs. We have other emailids with .in. how do we send emails to other emailids as well.   regards Ram  PC

SMTP SENDMAIL corrupts some emails

  
At each month-end, we have several SQL 2000 jobs that mail that send out attached spreadsheets (local volume on the SQL server) to various recipients.  Recently, some of them started showing up unable to be opened.  The error messages usually allow you to click through, but the data is spread across a couple of worksheets and is not formatted properly. If the job is re-run, the attachment is sometimes delivered in a readable fashion, other times it is not. A separate test script that performs the same function seems to always deliver a usable spreadsheet attachment. We have no reason to believe it is the email or local virusscan (TrendMicro OfficeScan, TrendMicro ScanMail for Exchange), since we have appropriate exceptions in place. A search for relavent articles on "SMTP SENDMAIL CORRUPTION" doesn't turn up any obvious hits, so I don't think this is widespread or common. Anybody with some input? Thanks

MOSS 2007 Alerts - Multiple Emails Issue

  
I've been experiencing a strange issue with SharePoint alerts that seem to happen randomly.  I've setup a daily alert on a custom list that sends a summary of all changes at 5pm, but on some days I'll receive more than 1 summary email (150+ this past Tuesday).  Each email contains different information and the total number of emails is random along with the number of records in each email.  Some days the summary comes in one email and others it comes in multiple.  This is happening on our production server and I haven't been able to recreate the issue in development.  Does anyone have any thoughts as to how a daily alert would get split up into several emails?We have 1 MOSS 2007 app server, 1 index server and 1 SQL 2005 database server.
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