|
|
|
เรื่อง ส่ง Email asp.net C# แบบทั้ง From ส่งแบบทั้งหน้า aspx เลย ยังไงครับ |
|
|
|
|
|
|
|
ทำเป็น HTML Format ครับ
Code (C#)
//*** HTML Tag ***//
strMsg = "";
strMsg = strMsg +"<h1>My Message</h1><br>";
strMsg = strMsg +"<table width='285' border='1'>";
strMsg = strMsg +" <tr>";
strMsg = strMsg +" <td><div align='center'><strong>My Message </strong></div></td>";
strMsg = strMsg +" <td><div align='center'><font color='red'>My Message</font></div></td>";
strMsg = strMsg +" <td><div align='center'><font size='2'>My Message</font></div></td>";
strMsg = strMsg +" </tr>";
strMsg = strMsg +" <tr>";
strMsg = strMsg +" <td><div align='center'>My Message</div></td>";
strMsg = strMsg +" <td><div align='center'>My Message</div></td>";
strMsg = strMsg +" <td><div align='center'>My Message</div></td>";
strMsg = strMsg +" </tr>";
strMsg = strMsg +" <tr>";
strMsg = strMsg +" <td><div align='center'>"+ DateTime.Now.ToString() +"</div></td>";
strMsg = strMsg +" <td><div align='center'>"+ DateTime.Now.ToString() +"</div></td>";
strMsg = strMsg +" <td><div align='center'>"+ DateTime.Now.ToString() +"</div></td>";
strMsg = strMsg +" </tr>";
strMsg = strMsg +"</table>";
Go to : (C#) ASP.NET Send Email HTML Format
|
|
|
|
|
Date :
2012-12-20 12:11:34 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ขอบคุณครับ
|
|
|
|
|
Date :
2012-12-20 13:07:20 |
By :
Apichart |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (C#)
myMail.BodyFormat = MailFormat.Html;
|
|
|
|
|
Date :
2012-12-20 14:27:50 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ขอบคุณอย่างยิ่งครับ
|
|
|
|
|
Date :
2012-12-20 16:55:16 |
By :
Apichart |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ถ้าคุณดูตามก่อนหน้านี้ก็มีให้ดูครับ
|
|
|
|
|
Date :
2012-12-21 09:04:14 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 02
|