Search the Community
Showing results for tags 'wiremailsmtp'.
-
What's wrong with my code? It just won't send emails. It worked before when not using wiremailSMTP but now it stops. This is used in a contact form. It has to be the code because when I run a test in the module, it works fine and the email reaches me. Even the Promailer-Newsletters using WireMail SMTP work fine now. Even when I put some debug code on the template to be send to me via email with every email, that email reaches me. But somehow the email in question, send with contact form does not. BTW if-condition works fine cause redirection works as well. Here's my code: if (isset($_POST['sendform']) && $captcha->verifyResponse() === true) : $givenname = $input->post->text('givenname'); $familyname = $input->post->text('familyname'); $fullname = $givenname.' '.$familyname; $fullname = ucwords($fullname); $email = $input->post->email('emailaddress'); $subject = $input->post->text('subject'); $message = $input->post->text('message'); $m = wireMail(); $m->to('myemail@mydomain.com', 'my Name'); $m->from($email, $fullname); $m->subject($subject); $m->body($message); $m->send(); $session->redirect($pages->get("/kontakt/danke/")->url); endif; I recently installed a SSL certificate on the webserver, but that should be irrelevant, right? Further settings: port: 587 Allow Connection without Authentication: no SMTP User and SMTP Password provided Use Start-TLS: no TLS Crypto method: 1.2 Use SSL: no Allow self signed certificated: no Thanks for help!
- 11 replies
-
- wiremailsmtp
- wiremailswiftmailer
-
(and 1 more)
Tagged with:
-
Hi there, My form is not getting submitted, it is showing: Unable to verify successful email delivery of this form submission. Attaching for your reference as well: In the Backend, it is showing Connection timed out with smtp.gmail.com Pl guide me how to resolve that
- 10 replies
-
- 1
-
- wiremail
- wiremailsmtp
-
(and 5 more)
Tagged with:
-
hello processwire community, i am using LoginRegister module for front-end user registration. i am facing an issue verification email not receiving while WireMailSmtp is working perfectly and user receives message "Thank you, a confirmation code has been emailed to you. When you receive the email, click the link it contains, or paste the confirmation code below." received this message in front-end but does not receive any email relevant it. please help me in this case how i can solve it. Please check screen shots for SMTP test and message which receives user. Thanks AbdulQayyum, First screenshot SMTP test message, second when user receives message after clicking register button.
- 3 replies
-
- wiremailsmtp
- loginregister
-
(and 4 more)
Tagged with:
-
I'm working on a newsletter solution with WireMailSMTP and this Newsletter Tutorial. I only changed the lines 73 to 83 in newsletter.php, but there's a strange issue with the $subscribers array: $testMode = isset($_POST['test_email']) ? true : false; if ($testMode) { $subscribers = wire('input')->post('test_email'); if (strpos($subscribers, ',') !== false) { $subscribers = explode(',', $subscribers); } } else { $subscribers = $pages->find('template=subscriber'); $subscribers = $subscribers->explode('email'); } if (is_array($subscribers)) { $subscribers = array_map('trim', $subscribers); } $mail = wireMail(); $mail->sendSingle(true)->to('test@domain.de')->bcc($subscribers); $mail->from('xxx@domain.de'); $mail->subject($newsletter->title); $mail->bodyHTML($html); $numSent = $mail->send(); echo json_encode(count($subscribers)); $this->halt(); The email is sent to test@domain.de but not to bcc $subscribers. Errorlog: PHP Notice: Unknown: Invalid mailbox list: <> (errflg=3) in Unknown on line 0 I'm grateful for any advice. Greetings Florian
- 1 reply
-
- wiremailsmtp
- newsletter
-
(and 1 more)
Tagged with:
-
Hello, I am building one form to send email with WireMailSmtp every thing is working fine, only thing attachments are sending with email without any extension. what i want to do is 1. first check the attached file and only allow image/ pdf and word file to be attached 2. send email with attachment. here is my code if (isset($input->post->submit)) { $form = array( 'name' => $input->post->name, 'email' => $input->post->email, 'message' => $input->post->message, 'email2' => $input->post->email2 ); $photo=$filetemp = $_FILES["photo"]; /// how to check that file is only image $resume=$filetemp = $_FILES["resume"]; /// how to check the file is only PDF or word file /// email12 is for spam boot if($form[email2] =="") { $toName='my website'; $toEmail=$page->email; $subject="CV EMail"; $textBody= "Full name: $form[name]\n" . "Email: $form[email]\n" . "Message: $form[message]"; $mail = wireMail(); $mail->to($toEmail, $toName); $mail->from = $toEmail; $mail->subject($subject); $mail->attachment($photo); $mail->attachment($resume); $mail->body($textBody); $numSent = $mail->send(); if($numSent) { $output="Message Send"; }else{ $output="Message Not Send"; } } }