Page Index Toggle Pages: 1
Topic Tools
Normal Topic Email line spacing (Read 3,191 times)
Corey Chapman
YaBB Administrator
*****
Offline



Posts: 10,026
Location: Rock Hill, South Carolina

None
Email line spacing
Jul 15th, 2009 at 1:37am
Post Tools
If you send an email to users from the Admin Center, the email has extra line breaks in it. For example, I sent 3 paragraphs, each with a blank line in between.  The resulting email sent had 3 blank lines between them.
  

Back to top
IP Logged
 
deti
Legacy Dev Team
Development Team
****
Offline



Posts: 2,650
Location: Prien am Chiemsee, Germany
Re: Email line spacing
Reply #1 - Jul 17th, 2009 at 1:26pm
Post Tools
Matt,

please replace this in SVN/.../Admin/MailMembers.pl, then move this thread to "Y3 Fixed". Thanks!

Code
Select All
sub Mailing2 {
	if ($iamguest) { &fatal_error('no_access'); }
	if (!$FORM{'mailsend'} && !$FORM{'convert'}) { &fatal_error('no_access'); }
	@convlist = ();
	if ($FORM{'mailsend'} && $FORM{'emailtext'} ne '') {
		$FORM{'emailsubject'} =~ s~\|~|~g;
		$FORM{'emailtext'} =~ s~\|~|~g;
		$FORM{'emailtext'} =~ s~\r~~g;
		$mailline = qq~$date|$FORM{'emailsubject'}|$FORM{'emailtext'}|$username~;
		&MailList($mailline);
	}
	(@mailgroups) = split(/\, /, $FORM{'field1'});
	&ManageMemberinfo("load");
	$i = 0;
	my ($emailsubject,$emailtext);
	foreach my $user (keys %memberinf) {
		(undef, $memrealname, $mememail, $memposition, $memposts, $memaddgrp, undef) = split(/\|/, $memberinf{$user}, 7);
		&FromHTML($memrealname);

		if ($FORM{'mailsend'} && $FORM{'emailtext'} ne '') {
			$emailsubject = $FORM{'emailsubject'};
			$emailsubject =~ s~\[name\]~$memrealname~ig;
			$emailsubject =~ s~\[username\]~$user~ig;
			$emailtext = $FORM{'emailtext'};
			$emailtext =~ s~\[name\]~$memrealname~ig;
			$emailtext =~ s~\[username\]~$user~ig;
		} 

  

Was immer Du tun kannst
oder erträumst tun zu können,
beginne es.
Kühnheit besitzt Genie,
Macht und magische Kraft.
Beginne es jetzt.
Whatever you can do
or dream you can,
begin it.
Boldness has genius,
power and magic in it.
Begin it now.
J. W. Goethe
Back to top
WWW  
IP Logged
 
Corey Chapman
YaBB Administrator
*****
Offline



Posts: 10,026
Location: Rock Hill, South Carolina

None
Re: Email line spacing
Reply #2 - Jul 17th, 2009 at 3:17pm
Post Tools
Is it fixed in CVS too?
  

Back to top
IP Logged
 
Jet Li
Legacy Dev Team
Development Team
****
Offline



Posts: 6,588
Location: Hong Kong
Re: Email line spacing
Reply #3 - Jul 18th, 2009 at 6:51pm
Post Tools
Done.

New
Admin/MailMembers.pl
in SVN.
  

PM me for YaBB Installation Service
Back to top
WWWGTalkFacebook  
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top