Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Variables in subjest line of mass mail?

Quote Reply
Variables in subjest line of mass mail?
Is it possible? If so, have any ideas on what to change? I want to be able to use something like:

Your listing: <%URL%>

Thanks,
Brian
Quote Reply
Re: Variables in subjest line of mass mail? In reply to
Look in the nph-email.cgi file. Check the codes near the Subject line. Try adding the following codes:

Code:
Subject: Your Listing: <%URL%>

BTW: Use the FIND option in your Text Editor (WordPad, EditPlus, or Notepad) to FIND the Subject codes.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------



Quote Reply
Re: Variables in subjest line of mass mail? In reply to
That did nothing.
Quote Reply
Re: Variables in subjest line of mass mail? In reply to
Opps....

Wrong file!

Sorry.

Change the following codes:

Code:
my $subject = "What's new for " . &get_date;

in the sub html_mail_update routine in the admin.cgi script to the FOLLOWING CODES:

Code:
my $subject = "Your Listing: $rec{'URL'}" . &get_date;

Also, you may need to add the following codes at the top of this sub-routine:

Code:
my (%rec) = &get_record

Hope this works and helps.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------





[This message has been edited by Eliot (edited January 07, 2000).]
Quote Reply
Re: Variables in subjest line of mass mail? In reply to
Let me be a little more clear of what I need.

I want to Mass Mail all link owners not subscribers.

I would like to use variables in the subjest box of Mass Mail feature.

When you use the Mass Mail feature you are allowed to use variables in the message area just not in the subject field. I do not want to have to edit the cgi files every time I send out mail. There should be a way to edit the script so that the subject can use variables like in the message. It looks as though the subject would have to be sent through the Template.pm somehow, this is where I am lost.

Thanks,
Quote Reply
Re: Variables in subjest line of mass mail? In reply to
And let me be clear! The sub-routine I gave codes for is the UPDATE routine that SENDS email messages to LINK OWNERS NOT MAIL SUBSCRIBERS!

Uh...What do you think sub html_mail_update means? Uh...send to subscribers...I don't think so. How about UPDATES TO LINK OWNERS.

Wink

Why not try the codes and see if they work rather than arguing with me.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------



Quote Reply
Re: Variables in subjest line of mass mail? In reply to
#1 if you notice "sub html_mail_update" is not even in the admin.cgi.

#2 notice the "What's new for" in the line you say to edit. This means new listings! Why would it say this if you are sending to link owners?

#3 "html_mail_form" and "html_mail_target" is for mass mailing link owners.

"Why not try the codes and see if they work rather than arguing with me."

Because I know it will not work!

Thank You for your efforts.

If someone else has any ideas please post.

Thanks,

[This message has been edited by bclark (edited January 07, 2000).]
Quote Reply
Re: Variables in subjest line of mass mail? In reply to
Oops again...I meant to say admin_html.pl file! Look in it yourself!

Quote:
Thank You for your efforts but obviously you do not understand how the script works.

OH REALLY! You must be the &*^%$# expert. Why don't you take a few minutes and look at the scripts yourself rather than asking others to do the work for you???!!???!?!?

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------



Quote Reply
Re: Variables in subjest line of mass mail? In reply to
"Why don't you take a few minutes and look
at the scripts yourself rather than asking others to do the work for you?"

I have been looking at the script. I have made several modifications and this was the only one I could not get to work.

I think I got a little out of hand above, sorry, I edited my message.

Again thanks for your help.


[This message has been edited by bclark (edited January 07, 2000).]