G
Guest
Hi,
I'm using the bellow code to send emails in a Website that I uploaded in one
of my client's server where it has SMTP installed, BUT some users are
receiving email some others aren't !!?So, what could be the problem? knowing
that all users are using the same code and hitting the same server.
MailMessage objMailMsg = new MailMessage(strFrom,
strTo);objMailMsg.BodyEncoding = Encoding.UTF8;
objMailMsg.Subject = strSubject;
objMailMsg.Body = strMsg;
if (Session["PDF_Path"] != null)
{
AttachmentPath = Session["PDF_Path"].ToString();
Attachment at = new Attachment(Server.MapPath(AttachmentPath));
objMailMsg.Attachments.Add(at);
}
objMailMsg.Priority = MailPriority.High;
objMailMsg.IsBodyHtml = true;
SmtpClient objSMTPClient = new SmtpClient(); objSMTPClient.DeliveryMethod =
SmtpDeliveryMethod.PickupDirectoryFromIis;
objSMTPClient.Send(objMailMsg);
I'm using the bellow code to send emails in a Website that I uploaded in one
of my client's server where it has SMTP installed, BUT some users are
receiving email some others aren't !!?So, what could be the problem? knowing
that all users are using the same code and hitting the same server.
MailMessage objMailMsg = new MailMessage(strFrom,
strTo);objMailMsg.BodyEncoding = Encoding.UTF8;
objMailMsg.Subject = strSubject;
objMailMsg.Body = strMsg;
if (Session["PDF_Path"] != null)
{
AttachmentPath = Session["PDF_Path"].ToString();
Attachment at = new Attachment(Server.MapPath(AttachmentPath));
objMailMsg.Attachments.Add(at);
}
objMailMsg.Priority = MailPriority.High;
objMailMsg.IsBodyHtml = true;
SmtpClient objSMTPClient = new SmtpClient(); objSMTPClient.DeliveryMethod =
SmtpDeliveryMethod.PickupDirectoryFromIis;
objSMTPClient.Send(objMailMsg);