Thanks for your reply Brassica,
I've just performed some research on my local windows 2003 server box. It
seems the email sent via the CDO sys(or the .NET System.net.Mail
componenhts) can display the local time on client machine(the SMTP client),
for me I use outlook. Also, event I change the culture info or timezone at
server, it won't affect the client-side displaying result.
Here is my test code(the CDO code you provided as well as system.net.Mail
code I used):
==============================
private void btnCDO_Click(object sender, EventArgs e)
{
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 = "smtphost";
oField =
oFields["
http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"];
oField.Value = CDO.CdoProtocolsAuthentication.cdoNTLM;
oFields.Update();
oMsg.From = "(e-mail address removed)";
oMsg.To = "(e-mail address removed)";
oMsg.Subject = "New turnkey order: New Email";
oMsg.TextBody = "Hi, this is a test!";
oMsg.Send();
}
private void btnNetSmtp_Click(object sender, EventArgs e)
{
Thread.CurrentThread.CurrentCulture = new
System.Globalization.CultureInfo("de-DE");
MailMessage msg = new MailMessage(
"(e-mail address removed)",
"(e-mail address removed)",
"test email for issue",
"this is a test email!");
SmtpClient client = new SmtpClient("smtphost");
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.UseDefaultCredentials = true;
client.Send(msg);
}
==================================
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#noti f
ications.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------