Hello,
I have a form that it reads one array to mail for send to every body. Each message is different for every one
For the moment I used php -> mail() and is running OK. BUT
Now I have a new system to send with SMTP.
is ok configured,
From "mail application" en setup is running OK but
I would like change bucle mail() for new bucle smtp into custom php
I have tryed using
$mail = new PHPMailer();
$mail->IsSMTP();
etc..... but submit no send nothing.
Have you a sample to send a mail smpt INTO custom PHP ????
Thomas
I have a form that it reads one array to mail for send to every body. Each message is different for every one
For the moment I used php -> mail() and is running OK. BUT
Now I have a new system to send with SMTP.
is ok configured,
From "mail application" en setup is running OK but
I would like change bucle mail() for new bucle smtp into custom php
I have tryed using
$mail = new PHPMailer();
$mail->IsSMTP();
etc..... but submit no send nothing.
Have you a sample to send a mail smpt INTO custom PHP ????
Thomas
Why don't you just use the Email function from Chronoforms? You really need to send an email on code?
Yes, because.
I send 250 mails to 250 colleges users and in every mail there is differents values and texts
Sample.
Dear, {director_name}
Here you can see the active users for to access to the materials in the web site.
Director
User: {user_director}
Pass: {pass_director}
Dynamizer
User: {user_dynamizer}
Pass: {pass_dynamizer}
Teachers
User: {user_teachers}
Pass: {pass_teachers}
Families
User: {user_families}
Pass: {pass_families}
Signature:
{Coordinator_name}
I send 250 mails to 250 colleges users and in every mail there is differents values and texts
Sample.
Dear, {director_name}
Here you can see the active users for to access to the materials in the web site.
Director
User: {user_director}
Pass: {pass_director}
Dynamizer
User: {user_dynamizer}
Pass: {pass_dynamizer}
Teachers
User: {user_teachers}
Pass: {pass_teachers}
Families
User: {user_families}
Pass: {pass_families}
Signature:
{Coordinator_name}
Hmm, I see. I can't help because I've never used this. But what are the errors? Does it recognize when you do new PHPMailer()?
I am trying with a "simple send" before change all the php programation.
BUT for the moment error 500
THis is in a custom PHP
<?php
require ('/libraries/cegcore/vendors/phpmailer/class.phpmailer.php');
$mail = new PHPMailer;
$mail->isSMTP();
$mail->Host = 'email-smtp.eu-west-1.amazonaws.com';
$mail->SMTPAuth = true;
$mail->Username = 'AKIAJNDV55D37SUWWLDQ';
$mail->Password = 'passservermail';
$mail->SMTPSecure = 'tls';
$mail->Port = 587;
$mail->From = 'programasi@fundacionshe.org';
$mail->FromName = 'My name';
$mail->Subject = 'subject';
$mail->addAddress('ideagrup@yahoo.es', 'name');
$mail->isHTML(true);
$mail->Body = 'Este es el mensaje en HTML <b>en negrita!</b>';
$mail->AltBody = 'Este es el mansaje en texto plano para clientes que no admitan HTML';
$mail->setLanguage('es');
if(!$mail->send()) {
echo 'El mensaje no pudo ser enviado.';
echo 'Mailer Error: ' . $mail->ErrorInfo;
} else {
echo 'Mensaje enviado correctamente';
}
?>
BUT for the moment error 500
THis is in a custom PHP
<?php
require ('/libraries/cegcore/vendors/phpmailer/class.phpmailer.php');
$mail = new PHPMailer;
$mail->isSMTP();
$mail->Host = 'email-smtp.eu-west-1.amazonaws.com';
$mail->SMTPAuth = true;
$mail->Username = 'AKIAJNDV55D37SUWWLDQ';
$mail->Password = 'passservermail';
$mail->SMTPSecure = 'tls';
$mail->Port = 587;
$mail->From = 'programasi@fundacionshe.org';
$mail->FromName = 'My name';
$mail->Subject = 'subject';
$mail->addAddress('ideagrup@yahoo.es', 'name');
$mail->isHTML(true);
$mail->Body = 'Este es el mensaje en HTML <b>en negrita!</b>';
$mail->AltBody = 'Este es el mansaje en texto plano para clientes que no admitan HTML';
$mail->setLanguage('es');
if(!$mail->send()) {
echo 'El mensaje no pudo ser enviado.';
echo 'Mailer Error: ' . $mail->ErrorInfo;
} else {
echo 'Mensaje enviado correctamente';
}
?>
No for the moment.
I've demand to the server the Apache/PHP error_logs
I dont know if they send to me. I hope it
But is interesting.
"module mail" in setup send mail without problems.
In Chronoform settings I have a different configuration than system server joomla
Chronoforms :
smtp
Host: mail.smtp2go.com 25
user: programasi
In system Joomla
smtp
Host: email-smtp.eu-west-1.amazonaws.com
user: AKIAJNDV55D37SUWWLDQ
Tomas
I've demand to the server the Apache/PHP error_logs
I dont know if they send to me. I hope it
But is interesting.
"module mail" in setup send mail without problems.
In Chronoform settings I have a different configuration than system server joomla
Chronoforms :
smtp
Host: mail.smtp2go.com 25
user: programasi
In system Joomla
smtp
Host: email-smtp.eu-west-1.amazonaws.com
user: AKIAJNDV55D37SUWWLDQ
Tomas
Apache Log:
[Wed Aug 30 07:06:23.133461 2017] [:error] [pid 22394] [client 37.15.48.251:64001] PHP Notice: Undefined index: value in /var/www/html/programasi.org/administrator/components/com_chronoforms5/chronoforms/events/event.php on line 20, referer: http://programasi.org/administrator/index.php?option=com_chronoforms5
Only says that
[Wed Aug 30 07:06:23.133461 2017] [:error] [pid 22394] [client 37.15.48.251:64001] PHP Notice: Undefined index: value in /var/www/html/programasi.org/administrator/components/com_chronoforms5/chronoforms/events/event.php on line 20, referer: http://programasi.org/administrator/index.php?option=com_chronoforms5
Only says that
This topic is locked and no more replies can be posted.