B
BrassicaNigra
Greetings,
Our production control application sends notices to various recipients when
certain events occur. An example would be an order confirmation email that
is sent to the customer and our inside sales rep when an order is placed.
Most of the time the customer receives this email but the inside sales rep
never gets these (they did up until about six weeks ago). I have a yahoo.com
email account that is setup to receive these notifications and they all
arrive at that inbox so I know they are being sent.
The application that generates the email is an asp.net website and it uses
the SMTP server that is part of Exchange server on our SBS2003 box which also
hosts the production control app.
We do not (yet) host our email internally so none of the inside users have
email accounts in this instance of Exchange. All we use it for at present is
SMTP. Our email is hosted by a third party hosting service. All of the
inside users are using Outlook 2007.
Following is the code that sends the emails
try
{
CDO.Message oMsg = new CDO.Message();
CDO.IConfiguration iConfg;
iConfg = oMsg.Configuration;
ADODB.Fields oFields;
oFields = iConfg.Fields;
ADODB.Field oField =
oFields["http://schemas.microsoft.com/cdo/configuration/sendusing"];
oField.Value = CDO.CdoSendUsing.cdoSendUsingPort;
oField =
oFields["http://schemas.microsoft.com/cdo/configuration/smtpserver"];
oField.Value = "aaserver";
oFields.Update();
oMsg.From = "(e-mail address removed)";
oMsg.To = "(e-mail address removed); (e-mail address removed)";
oMsg.Subject = "Test";
oMsg.TextBody = "Hello, world!";
oMsg.Send();
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
Any light you can shed on this would be greatly appreciated.
Thank you.
Dale Hoffman
Our production control application sends notices to various recipients when
certain events occur. An example would be an order confirmation email that
is sent to the customer and our inside sales rep when an order is placed.
Most of the time the customer receives this email but the inside sales rep
never gets these (they did up until about six weeks ago). I have a yahoo.com
email account that is setup to receive these notifications and they all
arrive at that inbox so I know they are being sent.
The application that generates the email is an asp.net website and it uses
the SMTP server that is part of Exchange server on our SBS2003 box which also
hosts the production control app.
We do not (yet) host our email internally so none of the inside users have
email accounts in this instance of Exchange. All we use it for at present is
SMTP. Our email is hosted by a third party hosting service. All of the
inside users are using Outlook 2007.
Following is the code that sends the emails
try
{
CDO.Message oMsg = new CDO.Message();
CDO.IConfiguration iConfg;
iConfg = oMsg.Configuration;
ADODB.Fields oFields;
oFields = iConfg.Fields;
ADODB.Field oField =
oFields["http://schemas.microsoft.com/cdo/configuration/sendusing"];
oField.Value = CDO.CdoSendUsing.cdoSendUsingPort;
oField =
oFields["http://schemas.microsoft.com/cdo/configuration/smtpserver"];
oField.Value = "aaserver";
oFields.Update();
oMsg.From = "(e-mail address removed)";
oMsg.To = "(e-mail address removed); (e-mail address removed)";
oMsg.Subject = "Test";
oMsg.TextBody = "Hello, world!";
oMsg.Send();
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
Any light you can shed on this would be greatly appreciated.
Thank you.
Dale Hoffman