如何访问社交网络图像,例如linkedin徽标?

我正在使用MVC Web应用程序,并且已创建此方法来访问指向公司社交网络的URL链接。但是出于某种原因,当通知用户时,徽标不可见显示,我正在本地和项目Content / dist / img / facebook.png中运行徽标。如何使用服务器路径访问它们?

private string ConfirmAccountMailBody(string sCallbackURL)
        {
            string strBody = @"
            <table width='100%' border='1' cellspacing='0' cellpadding='0'>       
                <tr>
                    <td align='center' valign='top' bgcolor='#564319' style='background-color:#564319; font-family:Arial, Helvetica, sans-serif; padding:10px;'>
                        <div style='font-size:36px; color:#ffffff;'>
                            <b>Confirm your account</b>
                        </div>
                        <div style='font-size:13px; color:#a29881;'>
                            <b>" + DateTime.Now.ToString("yyyy-MM-dd hh:mm tt") + @" : eNtsa Registration</b>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td align='left' valign='top' bgcolor='#ffffff' style='background-color:#ffffff;'>
                        <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                            <tr>
                                <td align='center' valign='middle' style='padding:10px; color:#564319; font-size:28px; font-family:Georgia, ' Times New Roman', Times, serif;'>
                                    <small>Congratulations! You are registered.</small>
                                </td>
                            </tr>
                        </table>
                        <table width='95%' border='0' align='center' cellpadding='0' cellspacing='0'>
                            <tr>
                                <td align='left' valign='middle' style='color:#525252; font-family:Arial, Helvetica, sans-serif; padding:0px;'>
                                    <div style='font-size:14px;'>
                                        Dear User,
                                    </div>
                                    <br />
                                    <div style='font-size:12px;'>
                                        Thank you for showing your interest  in  our website.
                                        All you need to do is click the button below (it only takes a few seconds).
                                        You won’t be asked to log in to your account – we're simply verifying ownership of this email address.
                                        <hr>
                                        <center>

                                            <button type='button' title='Confirm Account Registration' style='background: #1b97f1'>
                                                <a href='" + sCallbackURL + @"' style='font-size:22px; padding: 10px; color: #ffffff'>
                                                    Confirm Email Now
                                                </a>
                                            </button>

                                        </center>
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                            <tr>
                                <td height='30' align='left' valign='middle'><hr /></td>                        
                            </tr>
                        </table>
                        <table width='95%' border='0' align='center' cellpadding='0' cellspacing='0'>
                            <tr>
                                <td width='50%' align='left' valign='middle' style='padding:10px;'>
                                    <table width='75%' border='0' cellspacing='0' cellpadding='4'>
                                        <tr>
                                            <td align='left' valign='top' style='font-family:Verdana, Geneva, sans-serif; font-size:14px; color:#000000;'>
                                                <b>Follow Us On</b>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align='left' valign='top' style='font-family:Verdana, Geneva, sans-serif; font-size:12px; color:#000000;'>
                                                <table width='100%' border='0' cellspacing='0' cellpadding='0'>
                                                    <tr>
                                                        <td width='33%' align='left' valign='middle'>
                                                            <a href='https://twitter.com/hashtag/entsa' title='Twitter'>
                                                                <img src='" + Server.MapPath(@"Content/dist/img/twitter.png") + @"' width='48' height='48'>
                                                            </a>
                                                        </td>
                                                        <td width='34%' align='left' valign='middle'>
                                                            <a href='https://www.linkedin.com/company/entsa-engineering/' title='Linkedin'>
                                                                <img src='" + Server.MapPath(@"Content/dist/img/linkedin.png") + @"' width='48' height='48'>
                                                            </a>
                                                        </td>
                                                        <td width='33%' align='left' valign='middle'>
                                                            <a href='https://web.facebook.com/eNtsanmmu/?_rdc=1&_rdr' title='Facebook'>
                                                                <img src='" + Server.MapPath(@"Content/dist/img/facebook.jpg") + @"' width='48' height='48'>
                                                            </a>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td width='50%' align='left' valign='middle' style='color:#564319; font-size:11px; font-family:Arial, Helvetica, sans-serif; padding:10px;'>
                                    <b>Hours:</b> Mon-Fri 08:00-16:30, Sat-Sun Closed <br>
                                    <b>Customer Support:</b> <a href='mailto:gcobanim@mandela.ac.za' style='color:#564319; text-decoration:none;'>entsa.mandela.ac.za</a><br>
                                    <br>
                                    <b>Company Address</b><br>
                                    Company URL: <a href='https://entsa.mandela.ac.za' target='_blank' style='color:#564319; text-decoration:none;'>https://entsa.mandela.ac.za</a>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td align='center' valign='middle' height='40' bgcolor='#564319' style='background-color:#564319; font-family:Arial, Helvetica, sans-serif;'>
                        <div style='font-size:10px; color:#ffffff;'>
                            Copyright © eNtsa, All rights reserved.
                        </div>
                    </td>
                </tr>
            </table>";

            return strBody;

        }
评论