Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Formatted llEmail()

Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
03-25-2008 00:42
once in a while there's some odd stuff happening...

I try to send out an eMail to a (pre-defined) User.

I formatted the eMail with some «\n» and «\t» in it, to make it more readable. However, the eMail will not be delivered.
I tried whether the eMail-function works at all, using a simple llEmail("test@test.com", "test", "test";); which worked fine (with a HUGE delay, though).

But if I use the formatted version, the eMail never reaches me.

some pseudo-code:

CODE


string msg = "first line\n";
msg += "\tsecond line\n";

llEmail("test@test.com", "test subject", msg);



Am I missing something?

Also - if the message is longer than the 4096 characters, will the message just be truncated or does the eMail fail at all (this might be an explanation why it's not delivered)...

Thanks for your help, pholks :)
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
03-26-2008 14:46
From: Haruki Watanabe
once in a while there's some odd stuff happening...

I try to send out an eMail to a (pre-defined) User.

I formatted the eMail with some «\n» and «\t» in it, to make it more readable. However, the eMail will not be delivered.
I tried whether the eMail-function works at all, using a simple llEmail("test@test.com", "test", "test";); which worked fine (with a HUGE delay, though).

But if I use the formatted version, the eMail never reaches me.

some pseudo-code:

CODE


string msg = "first line\n";
msg += "\tsecond line\n";

llEmail("test@test.com", "test subject", msg);



Am I missing something?

Also - if the message is longer than the 4096 characters, will the message just be truncated or does the eMail fail at all (this might be an explanation why it's not delivered)...

Thanks for your help, pholks :)


Nope, I format emails like that all the time and it works just fine. Perhaps it has something to do with the email server software... ??
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
03-26-2008 16:07
eMail-Server Software? you mean - on the receiving-server?

I do some pretty hard formatting with php all the time and didn't have any problems so far.

The eMails didn't end up in the spam-filter as well...

Well - I guess, I just keep on trying :)

Thanks anyway!
Johan Laurasia
Fully Rezzed
Join date: 31 Oct 2006
Posts: 1,394
03-26-2008 16:27
From: Haruki Watanabe
eMail-Server Software? you mean - on the receiving-server?

I do some pretty hard formatting with php all the time and didn't have any problems so far.

The eMails didn't end up in the spam-filter as well...

Well - I guess, I just keep on trying :)

Thanks anyway!


yeah, exactly... you said you've sent test emails and they're going through fine, so maybe the "\n" s are giving it trouble and it's just trashing the email... not 100 percent sure, but that's what my guess is. Like I said, I've sent emails like that many times, my POS system, and my visitor counter that I wrote both do that, and just today, I'm making a kiosk that emails data and I use "\n" to do the carriage return/Linefeeds, and it's working just fine...

try sending some test emails with the new line character, and see what happens with that.
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
03-27-2008 04:16
Thanks for the hints, John... I'm gonna try that :)
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
03-27-2008 10:10
I'd worry about the tab character more than the newline. Newlines are used all over the place. Tab characters are often handled very different from place to place; whether they are allowed in some formats, or are replaced by some readers/editors by spaces, or whatever. Consider replacing the tab with a fixed number of spaces and see how it goes.
Haruki Watanabe
llSLCrash(void);
Join date: 28 Mar 2007
Posts: 434
03-27-2008 12:49
Thanks Hewee - I was thinking about the tab as well... I generate eMails with php containing tabs 'n newlines all the time and didn't have any problems so far... but maybe the LL-Mailserver, which is sending out the mails, doesn't like them...

I'll try step by step... :)