Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Mailing Problem
iw_store
Here what I am doing,
1. I am sending a Mail to Author to edit DCR.
2. The edit href is as follows
[HTML]
Edit
[/HTML]
3. While doing so one blank space is coming in the path of DCR, in above case its between [color=red]
StandardDat
a
"t" and "a", I have 10 such mails to different people, each time that space comes at different places, in one of the mail it's in storename and sometime between data folder and so no.[/color]
As a result when Author clicks on Edit link in the mail body dcr is getting opened. Instead it says "No Such file" a %20 will come at the place of that Space.
4. The mail module which I have used is use Mail::Mailer; and
$mailer{'Content-Type'} = 'text/html; charset="iso-8859-1"'; has been set to mailer object.
Teamsite server is 6.5 on sp3.
5. My code to do above is,
my $tempArea = "
;
$tempArea =~ s#\\#/#g;
my $editLink = "$url/edit?vpath=$tempArea";
my $editURL = "
Edit
";
I am inserting $editURL into my HTML mail body.
Can anyone please suggest me what might be problem to come that space within $tempArea within mail body.
[color=blue]Thanks,
[/color]
Find more posts tagged with
Comments
Bhargav Coca
Instead of using one big path as your href, use a concatinating perl variables, which when concatenated forms your entire path and they will not break as your long a href.
Thanks
Adam Stoller
Using one big href shouldn't be a problem - however, using a big concatenated html string with no newlines has been known to cause problems with Mail::Mailer before.
Try making sure that you insert newlines (which are generally ignored when the HTML is rendered - unless in 'pre' style) within your message body both before and after the href link and see if that resolves the problem.
Also - try adding some debugging output (dump to a file) to verify that the string being used is, in fact, the string you think it is.
iw_store
[QUOTE=ghoti]
Try making sure that you insert newlines (which are generally ignored when the HTML is rendered - unless in 'pre' style) within your message body both before and after the href link and see if that resolves the problem.
QUOTE]
Ghoti,
Thank you very much for help :-))
[HTML] my $editURL = "\n
Edit
\n"; [/HTML]
After keeping newline problem solved :-).