Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Embedded ASP Code
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kolucoms6
Average Member

845 Posts

Posted - 17 April 2007 :  19:54:16  Show Profile
<%
myMail.HTMLBody="Note : If you dont want to recieve further updates, please <a href=www.ABC.com/unsub.asp?Email=EmailArray(K)>UN-SUBSCRIBE</a>"
%>

How to insert "EmailArray(K)" in the URL as even below code gives me an error :

Microsoft VBScript compilation error '800a0401'
Expected end of statement


<%
myMail.HTMLBody="Note : If you dont want to recieve further updates, please <a href="www.ABC.com/unsub.asp?Email=" & EmailArray(K) & ">UN-SUBSCRIBE</a>"
%>

Edited by - kolucoms6 on 17 April 2007 19:56:10

StephenD
Senior Member

Australia
1044 Posts

Posted - 17 April 2007 :  20:23:00  Show Profile  Send StephenD a Yahoo! Message
Should be <a href=www.ABC.com/unsub.asp?Email=" & EmailArray(K) & ">UN-SUBSCRIBE</a>

I think....
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 18 April 2007 :  05:13:50  Show Profile  Send pdrg a Yahoo! Message
looks right to me :)
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 18 April 2007 :  05:59:18  Show Profile
Cool It perfect except one change...

myMail.HTMLBody="Note : If you dont want to recieve further updates, please <a href=www.ABC.com/unsub.asp?Email=" & EmailArray(K) & ">UN-SUBSCRIBE</a>"
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 19 April 2007 :  18:57:23  Show Profile
I want to mail "TextBody" content as a email content.But its giving me an error.

Here it goes :

TextBody="Dear,Thanks a lot for registering with us.We proudly welcome you to the ULC group.Also do JOIN our" & <a href="http://www.abc.com/forum/register.asp"> & "FORUM" & </a> & "to find all our LATEST and HOT Process details (Require a Simple Email Validation) : http://www.abc.com/forum/register.asp."

myMail.TextBody=TextBody

Error :
***********************

Syntax error

/c2.asp, line 324

Edited by - kolucoms6 on 19 April 2007 18:57:52
Go to Top of Page

MaD2ko0l
Senior Member

United Kingdom
1053 Posts

Posted - 20 April 2007 :  14:20:59  Show Profile  Visit MaD2ko0l's Homepage
TextBody="Dear,Thanks a lot for registering with us.We proudly welcome you to the ULC group.Also do JOIN our <a href=""http://www.abc.com/forum/register.asp""> " & FORUM & "</a> to find all our LATEST and HOT Process details (Require a Simple Email Validation) : http://www.abc.com/forum/register.asp."



shoudlnt it be like this? seems like u had to many " and &

© 1999-2010 MaD2ko0l
Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 22 April 2007 :  13:51:55  Show Profile

This is the Output I get in Mail :

<html>Dear,Thanks a lot for registering with us.We proudly welcome you to the ULC group.Also do JOIN our <a href="http://www.abc.com/forum/register.asp">FORUM</a>to find all our LATEST and HOT Process details (Require a Simple Email Validation) : http://www.abc.com/forum/register.asp.</html>

Seems like it not parsing HTML codes.

Go to Top of Page

kolucoms6
Average Member

845 Posts

Posted - 22 April 2007 :  13:57:13  Show Profile
Seems like I have to use myMail.HTMLBody instead of myMail.TextBody

:-)
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 22 April 2007 :  16:06:24  Show Profile  Send pdrg a Yahoo! Message
Well spotted! That would make sense :)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.29 seconds. Powered By: Snitz Forums 2000 Version 3.4.07