解决方案 »
- delphi record pchar类型 乱码问题。。。。。。。
- 把一图片改为画笔,用来画线!!!!!! (有代码)请大家帮忙看看应该怎么改好。
- 如休在DBGRID上建右键菜单
- 分不多了,QUICK!
- 有关case integer of 的理解?
- 为什么不运行CGI
- 用户在文本框中输入算式,如:2*3+4*6,在程序中有什么简单方法计算其结果?
- 如何向数据库(access)追加jpg文件?
- 在DELPHI中如何判断知道键盘按了哪个键(如:DELETE键)。谢谢
- CSDN的服务器是不是有问题?!看一个贴子好费时!元旦前可不是这样子!
- 请教一个VC转DELPHI的问题。
- 请教variant转string乱码问题
with IdMsgSend do
begin
Body.Clear;
Body.Add('测试内容!');
From.Text := g_EMailAddress;
Recipients.EMailAddresses := g_ReceiveEMail; // To: header 客户经理EMail
Subject := g_EMailSubjectInfo; // Subject: header 邮件主题
Priority := TIdMessagePriority(g_SendPriority); // Message Priority 邮件发送等级
CCList.EMailAddresses := g_EMailAddress; // CC 抄送
BccList.EMailAddresses := ''; // BBC 密送
if g_ReturnReciept=1 then
begin //We set the recipient to the From E-Mail address
ReceiptRecipient.Text := From.Text;
end
else
begin //indicate that there is no receipt recipiant
ReceiptRecipient.Text := '';
end;
end;
case g_SMTPLoginType of
0: SMTP.AuthenticationType := atNone;
1: SMTP.AuthenticationType := atLogin; //Simple Login
end;
SMTP.Username := g_SMTPUserName;
SMTP.Password := g_SMTPUserPWD; {General setup}
SMTP.Host := g_SMTPServer;
SMTP.Port := g_SMTPPort; {now we send the message}
try
SMTP.Connect;
except
Result := False;
end;
try
try
SMTP.Send(IdMsgSend);
except
Result := False;
end;
finally
SMTP.Disconnect;
end;