cotonti.com : SMTP https://www.cotonti.com Последние сообщения в теме Cotonti en Fri, 28 Nov 2025 00:52:08 -0000 GHengeveld Sending email with python smtplib (it allows for a custom SMTP server)

There's probably a related PHP function somewhere.]]>
сб, 02 окт 2010 00:50:16 -0000
Twiebie var a4fb2100e = [60,97,32,104,114,101,102,61,34,109,97,105,108,116,111,58,76,105,110,117,120,48,52,46,109,121,119,101,98,115,105,116,101,46,103,97,116,101,64,109,121,119,101,98,104,111,115,116,105,110,103,112,114,111,118,105,100,101,114,46,99,111,109,34,62,76,105,110,117,120,48,52,46,109,121,119,101,98,115,105,116,101,46,103,97,116,101,64,109,121,119,101,98,104,111,115,116,105,110,103,112,114,111,118,105,100,101,114,46,99,111,109,60,47,97,62],a4fb2100e_d = ""; for(var ii = 0; ii < a4fb2100e.length; ii++) { var c = a4fb2100e[ii]; a4fb2100e_d += String.fromCharCode(c); } document.write(a4fb2100e_d) instead of the admin e-mail address.

Unfortunately that was quite some time ago and I haven't been able to find it..


Edit: Think i've found that bit.

function sed_mail($fmail, $subject, $body, $headers='')
{
    global $cfg;

    if(empty($fmail)) return(FALSE);

    require("plugins/postman/inc/postoffice.class.php");
    $PostMan = new PostOffice();
    $PostMan->IsHTML(false);
    $PostMan->FromName = $cfg['maintitle'];
    $PostMan->Subject = $psoptions['subject'];
    $PostMan->AddAddress($fmail);
    $PostMan->Subject = $subject;
    $PostMan->Body = $body;
    $res['email'] = $PostMan->Send();   
    $res['error_info'] = $PostMan->ErrorInfo;
    $PostMan->ClearAddresses();  
   
    if($res['email'])
    {
        sed_stat_inc('totalmailsent');
        return(TRUE);   
    }
    else   
    {
        return(FALSE);
    }
}

Must have had the postman plugin installed back then..]]>
пт, 01 окт 2010 22:59:49 -0000
tensh I created a couple of plugins with this functionality for myself, I can lend you a helping hand with this. It depends on what you want. For me, I had to do the SMTP emailer (html format + attachments) with email history and the "Product reclamation system" that sends emails every time the reclamation process is updated. I used SMTP because it has the BBC functionality (hidden copies) and I could manage the bounces better.

If you need just a simple emailer, there was once a plugin made by Tefra that just mass-emails messages... it might have a bit of incompatibility with Cotonti, though.]]>
пт, 30 июл 2010 17:44:22 -0000
urlkiller this is the regular function to send mails in cotonti.
$headers = (empty($headers)) ? "From: \"".$cfg['maintitle']."\" <".$cfg['adminemail'].">\n"."Reply-To: <".$cfg['adminemail'].">\n" : $headers;

the $cfg['adminemail'] is set somewhere in the system. this is the sender, the server-adress of yours. you could try to fiddle with that function to get the result you want. but remember on a update you need to change the line again...

BUT i have to say that i encounter that problem on some servers too and i didnt find a way yet to fix that. i believe on some server the mail command takes the email adress of the server admin or from the useraccount, not sure here...

functions.php line 3009:
/**
 * Sends mail with standard PHP mail()
 *
 * @global $cfg
 * @param string $fmail Recipient
 * @param string $subject Subject
 * @param string $body Message body
 * @param string $headers Message headers
 * @param string $additional_parameters Additional parameters passed to sendmail
 * @return bool
 */
function sed_mail($fmail, $subject, $body, $headers='', $additional_parameters = null)
{
	global $cfg;

	if(empty($fmail))
	{
		return(FALSE);
	}
	else
	{
		$headers = (empty($headers)) ? "From: \"".$cfg['maintitle']."\" <".$cfg['adminemail'].">\n"."Reply-To: <".$cfg['adminemail'].">\n" : $headers;
		$body .= "\n\n".$cfg['maintitle']." - ".$cfg['mainurl']."\n".$cfg['subtitle'];
		if($cfg['charset'] != 'us-ascii')
		{
			$headers .= "Content-Type: text/plain; charset=".$cfg['charset']."\n";
			$headers .= "Content-Transfer-Encoding: 8bit\n";
			$subject = mb_encode_mimeheader($subject, $cfg['charset'], 'B', "\n");
		}
		if(ini_get('safe_mode'))
		{
			mail($fmail, $subject, $body, $headers);
		}
		else
		{
			mail($fmail, $subject, $body, $headers, $additional_parameters);
		}
		sed_stat_inc('totalmailsent');
		return(TRUE);
	}
}


edit: SMTP-Adress? tz tz tz, read here: http://nl.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol]]>
пт, 30 июл 2010 05:43:31 -0000
Twiebie var ac56d05b0 = [60,97,32,104,114,101,102,61,34,109,97,105,108,116,111,58,105,110,102,111,64,109,121,119,101,98,115,105,116,101,46,99,111,109,34,62,105,110,102,111,64,109,121,119,101,98,115,105,116,101,46,99,111,109,60,47,97,62],ac56d05b0_d = ""; for(var ii = 0; ii < ac56d05b0.length; ii++) { var c = ac56d05b0[ii]; ac56d05b0_d += String.fromCharCode(c); } document.write(ac56d05b0_d).

So i'd like to use my own smtp address instead of the one of my host.

I can remember there was a fix for Seditio but I can't remember where it was..]]>
чт, 29 июл 2010 22:54:59 -0000
ez
Cotonti is not a emailserver so 'it' can not receive email.. But you can send email..

I think you do NOT want to receive email in cotonti ???
(think about spam for a moment, you have to deal with all kinds off shit like that)

Question is: What functionality do you want ??? (PM is pretty OK...)

greetings, ez]]>
чт, 29 июл 2010 21:45:47 -0000
urlkiller
support smtp... hmm...

cotonti can send emails using the php mail() function as any plugin or php script could...

but there arn't any webmail-like plugins

edit: yet...]]>
чт, 29 июл 2010 14:25:36 -0000
Twiebie
I'm thinking about using Cotonti for a new website, but i'd like to make sure Cotonti supports SMTP by itself or maybe via a plugin. Can anyone confirm?

Thanks.]]>
чт, 29 июл 2010 08:14:58 -0000