Gossamer Forum
Home : General : Internet Technologies :

Problems with the mail system

Quote Reply
Problems with the mail system
I have a strange problem. I have a small program which send a sign up notification mail to all user when the user sign up with the system. The user eventually gets a mail, which has url to authenticate the user. Everything is OK, the only problem is in a particular line there is an '! ' appearing. I have frantically checked for the occurrence of that '! ', but could not find any. I have copied the section of the mail and made a small program and executed the same, no '! ' appeared, that actually inspired me to think, that there might be some hidden non-printable character somewhere within the program, and I have written the program afresh (I practically typed line by line of the program to another document), named the document as the original one and executed, the same '! ' appeared again. I renamed the program to some other name and executed the same, the same '! ' re-appeared. I have tried all possible means to get rid of the same, but without any result. My mail is using amazon mail service to send mails. if someone can help with some clues, it will be utmost useful. It is more because, a user has noticed it, and posted it as a bug.
Quote Reply
Re: [pbasubaul] Problems with the mail system In reply to
Is it a '!' inside a diamond or just a '!' character? If it's inside a diamond, it may be a character set issue. Are you using any non US-ASCII characters in your e-mail?

Adrian
Quote Reply
Re: [brewt] Problems with the mail system In reply to
Adrian,

No .. not at all .. the line contains simple english words .. for your convenience I am pasting the entire mail out here and pointing where this '! ' is coming. The below is the mail body,

my $message = '';
$message .= $fName . ", thanks for signing up for the 123Greetings Studio!" . "<br><br>";
$message .= "123Greetings Studio is a unique 'platform' for anyone with a creative flair, to participate and ";
$message .= "expose their creativity to millions of people worldwide.<br><br>";
$message .= "As a new member of the 123Greetings Studio, you'll have access to a host of features that will give your ";
$message .= "work the best exposure online. Here are just some of the facilities you can make use of:<br><br>";
$message .= "<ul>";
$message .= "<li>" . " Create your own profile and get friends and fans.</li>";
$message .= "<li>" . " Upload and share your work as ecards.</li>";
$message .= "<li>" . " Make comments and get feedback.</li>";
$message .= "</ul><br><br>";
$message .= "Click here to activate your account or paste the URL in your browser:<br>";
$message .= "<a href='" . $server_path . "/cgi-bin/studio/inviteMember.pl?email=" . $userMail . "&accode=" . $activation_code . "'>" . $server_path . "/cgi-bin/studio/inviteMember.pl?email=" . $userMail . "&accode=" . $activation_code . "</a><br><br>";
$message .= "We appreciate your interest in the 123greetings Studio. If you have any questions or need any clarification, please contact us by email at ";
$message .= "<a href=mailto:" . $sender . ">studio@123greetings-inc.com.</a><br><br>";
$message .= "Enjoy your stay with us!" . "<br><br>";
$message .= "123Greetings Studio Team<br>";
$message .= "<a href=" . $server_path . ">" . $server_path . "</a><br><br>";


and the '! ' is coming here beneath, in this line

message .= "We appreciate your interest in the 123greetings Studio. If you have any questions or need any clarification, please contact us by email at ";

it is appearing somewhere after and on 'clarification' , and it is changing position.
Quote Reply
Re: [pbasubaul] Problems with the mail system In reply to
Hi,

You don't need to code it like that :P Use qq||, qq~~ or something like that. For example;

Code:
my $message = qq|
$fName, thanks for signing up for the 123Greetings Studio!<br><br>
123Greetings Studio is a unique 'platform' for anyone with a creative flair, to participate and
expose their creativity to millions of people worldwide.<br><br>
As a new member of the 123Greetings Studio, you'll have access to a host of features that will give your
work the best exposure online. Here are just some of the facilities you can make use of:<br><br>
<ul>
<li>Create your own profile and get friends and fans.</li>
<li>Upload and share your work as ecards.</li>
<li>Make comments and get feedback.</li>
</ul><br><br>
Click here to activate your account or paste the URL in your browser:<br>
<a href="$server_path"/cgi-bin/studio/inviteMember.pl?email=$userMail&accode=$activation_code">$server_path"/cgi-bin/studio/inviteMember.pl?email=$userMail&accode=$activation_code</a><br><br>
We appreciate your interest in the 123greetings Studio. If you have any questions or need any clarification, please contact us by email at
<a href=mailto:$sender">$sender</a><br><br>
Enjoy your stay with us! <br><br>
123Greetings Studio Team<br>
<a href=" $server_path">$server_path</a><br><br>
|;

Regarding the error - could you "view" the source of the email, and paste the section where that charachter is showing up?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Problems with the mail system In reply to
 
Adrian,

The most peculiar part is .. I have print that message on the body and then exited the program, there the '! ' was no where appearing. It is for that reason I mentioned that I am using amazon mail service. for then I am assigning the message to amazon just in order to deliver.

regards,
partha