Asp mail problem

Discussion in 'ASP Snips' started by mathan, Aug 9, 2008.

  1. mathan

    mathan Guppy

    i wrote a coding to send e-mail with attachmaents but the e-mail cannot work when i wrote coding for attachments if remove the attachments coding then the code will works.

    i wrote the code using asp language
    the coding follows bellow

    Set myMail=CreateObject("CDO.Message")
    myMail.From="[email protected]"
    myMail.HTMLBody="<table border='0' width='500' id='table1' bordercolor='#000000'><tr><td height='10'><img border='0' src='' width='196' height='53'></td></tr><tr><td height='10' bgcolor='#FF9933'></td></tr><tr><td height='20' bgcolor='#F9F9F9'><b><font face='Arial' size='2' color='#DF0000'><a href='' style='text-decoration: none'> <font color='#FF9933'>SEO4RANK</font></a></font><font face='Arial' size='2' color='#FF9933'> - Directory -Submitted</font></b></td></tr><tr><td height='10' bgcolor='#FF9933'></td></tr><tr><td valign='top' bgcolor='#F0F0F0'><table border='0' width='100%' id='table2' bgcolor='#FFFFFF'><tr><td></td></tr><tr><td><font face='Verdana' size='2' color='#808080'>Dear<br><br> <b>"&http_v&"</b></font><p><font face='Arial' size='2' color='#808080'>Your above link is submitted by the crawler and its active now for view. <br>To view the submitted link click the link below or copy and past the URL link to IE.</font></td></tr><tr><td><a href='"&link_x&"'><B>Click to view Your Submitted LINK.</b></a></td></tr><tr><td style='font-family: Verdana; font-size:10pt'>Directory Url :"&http_v&"</td></tr><tr><td>&nbsp;</td></tr><tr><td><font color='#0066FF' face='Arial' size='2'>Kindly note if the link you provided is a FREE LINK then it will be deactivated within 20 days, and the reactivation has to be done before 30 days.</font></td></tr><tr><td>&nbsp;</td></tr></table></td></tr><tr><td bgcolor='#000000' height='20'><p align='center'><font face='Arial' size='2' color='#FFFFFF'>All rights reserved by</font></td></tr><tr><td height='20'><p align='center'>Do you need <a href='' style='text-decoration: none'> <font color='#000000'>Manpower</font></a>?&nbsp; Do you need <a href='' style='text-decoration: none'> <font color='#000000'>Professionals</font></a>? Do you need <a href='' style='text-decoration: none'> <font color='#000000'>jobs</font></a>?<br>Visit <b><a href=''>WWW.Net4Manpower.COM</a></b </td></tr><tr><td bgcolor='#000000' height='20' align='center'><font size='2' color='#FFFFFF'>Advert by </font> <a href='' style='text-decoration: none'> <font size='2' color='#FFFFFF'></font></a></td></tr></table>"
    set myMail=nothing

Share This Page

JodoHost - 26,000 hosting end-users in 100 countries
Plesk Web Hosting
VPS Hosting
H-Sphere Web Hosting
Other Services