![]() |
Admin 3/13/2018 |
Yes, instead of 'php://output'
|
![]() |
lefty author 3/16/2018 |
Yes, instead of 'php://output'
|
![]() |
Admin 3/19/2018 |
You need to add a custom button that would save data to Excel file and email it as an attachment. If you make changes to source file it will affect all tables and all projects. |
![]() |
lefty author 3/25/2018 |
You need to add a custom button that would save data to Excel file and email it as an attachment. If you make changes to source file it will affect all tables and all projects.
|
F
|
firecloud 3/25/2018 |
try add to phpfunctions.php inside function runner_mail_smtp( $params ) $mail->SMTPDebug = 4; |
![]() |
lefty author 3/29/2018 |
try add to phpfunctions.php inside function runner_mail_smtp( $params ) $mail->SMTPDebug = 4;
|
![]() |
lefty author 3/30/2018 |
The code above for PHPexcel writes to file . I have now succesfully sent an email with on server button and writing to the folder directory before email is sent. I seem to be getting close . Although the email shows that the file attached is corrupted and does not open or opens after asking if you want to open corrupted file and there is no data. On server if I download the file it has all the data, so the file has the data , I just can't seem to get it and send without it being corrupted . My code is below . |
![]() |
lefty author 4/4/2018 |
The code above for PHPexcel writes to file . I have now succesfully sent an email with on server button and writing to the folder directory before email is sent. I seem to be getting close . Although the email shows that the file attached is corrupted and does not open or opens after asking if you want to open corrupted file and there is no data. On server if I download the file it has all the data, so the file has the data , I just can't seem to get it and send without it being corrupted . My code is below . $email="noreply@mywebsite.com"; $subject="Allocations Attached"; $msg="See Attached Allocations Request"; $attachments = array(); $excel_1 = 'files/Allocations.xlsx'; $attachments[] = array("path" => $excel_1); $ret=runner_mail(array('to' => $email, 'subject' => $subject, 'body' => $msg, "attachments" => $attachments)); if(!$ret["mailed"]) echo $ret["message"]; I am assuming that that there needs to be headers involved here but have tried that to no avail . I dumped using phpmailer and using built in runner_mail. For anyone else who has tried this in a button do not exit PHPexcel before sending mail as that was my issue . Although the attachment is corrupted. Anyone have any ideas here?
|
![]() |
Admin 4/5/2018 |
What are your SMTP settings in this project? |
![]() |
lefty author 4/5/2018 |
What are your SMTP settings in this project?
|
![]() |
Admin 4/6/2018 |
It should work if you are not using built-in PHP's mail function and if your code is correct. |
![]() |
lefty author 4/6/2018 |
It should work if you are not using built-in PHP's mail function and if your code is correct.
|
![]() |
lefty author 4/8/2018 |
[quote name='John' date='06 April 2018 - 06:37 PM' timestamp='1523054256' post='84750'] |