hi,
I am using Drupal 5.2 with Postcard 5.x-1.1
I am also using the spanish translation.

When I get the email notification, the email link is put over the next word like that:

I have put in bold the link, which includes the "(Si" in the URL too.

Estimad@ John!Martin te mando una tarjeta electrónica.Puedes verla dando un clic en la siguiente liga:http://acropolis.org.mx/index.php?q=postcard/160/2kFnn79dN7w(Si tu email no te permite ver la liga activa, simplemente copiala y pegala en el campo de URL del navegador.)Cualquier queja relativa a esta tarjeta debe reportarse a -----------@--------.org.mx . La tarjeta fue mandada por el sitio Nueva Acrópolis

I haven´t changed the original code which is the following:

function _postcard_letter() {
  $output = t("Dear %recipient!\n\n%sender made an e-postcard for you.\nAt any time you may see your card by clicking this link:\n\n%card_url\n\n(if your email client doesn't allow you to click on the site link,\nthen just copy and paste the URL into your browser)\n\nAny complaints about this e-postcard service please send to %site_mail\n\n-- \nThis postcard was sent through %site");
  return $output;
}

Also, most of the phrases do not have spaces between then. How can I correct that?

Thanks much.

Michael Boudey

Comments

add1sun’s picture

Hm, well the "/n"s in the code put line breaks in the text so that it should print out as:

Estimad@ John!

Martin te mando una tarjeta electrónica.
Puedes verla dando un clic en la siguiente liga:

http://acropolis.org.mx/index.php?q=postcard/160/2kFnn79dN7w

(Si tu email no te permite ver la liga activa, 
simplemente copiala y pegala en el campo de URL del navegador.)

Cualquier queja relativa a esta tarjeta debe reportarse a -----------@--------.org.mx . 

La tarjeta fue mandada por el sitio Nueva Acrópolis

I'm not sure why your email client is not inserting the line breaks but I'll see if research sheds any light.

Anonymous’s picture

Hi add1sun,

Do you mean the "/n" or the "\n" ?

Shall I change the slashes orientation?

Michael

add1sun’s picture

Ah no, sorry that was just a typo on my part, they should be "\n".

add1sun’s picture

Category: bug » support

Well, I've poked around a bit and there is no code cause for that behavior. It works fine for me on several installs and I can't replicate the problem. It may be something funny that your email client is doing. Have you looked in other email clients or have any other users (with a diff client or config) reported the same problem? One thing to note is that the \n will only work as breaks in text-only email, not HTML. The header that is being sent from Drupal is using the text designation (it isn't set up to do HTML email at all) but if something in your setup is messing with that header once it gets sent, that could make it go wonky.

Unfortunately it isn't something I can affect or fix from the module side, it has to be a setting or configuration somewhere downstream. I'm moving this to a support request and leaving active for the time being in case someone else has any useful information but after a week or two I'll close this issue.

Anonymous’s picture

OK I see.
Thanks very much add1sun.
I´ll check with the settings.

Michael

add1sun’s picture

Status: Active » Closed (fixed)

Closing old issues.