Poiz, OK now, I got a.

Onstead: But make a separate account on top if it and any account you care about isn’t even in the mix

Harger: Still better to use an account made specifically for the purpose.

Horseman: Opsec ah yeah, but yeah:

Marola: Jstransky, OK I received the test email from wp-mail-smtp but not receiving from contact form

Horseman: Which contact form plugin is this again

Stoskopf: What form plugin, contact form 97?

Horseman: Ok im just gonna take a look at it

Horseman: You did check your spam folder?

Horseman: Just to get that out of the way

Marola: Poiz, there is no received

Marola: And I was able to receive the email by selecting PHP mail as mailer WP SMTP mailer not working.

Horseman: Marola well thats confusing

Horseman: If i understand you it means that wordpress can send emails but not via contact form?

Horseman: So theres some weirdness there i dont know

Horseman: Thats different from if wp couldnt send at all

Marola: If I select send all wordpress emails via SMTP then I get error that emails are not sent.

Onstead: Are you configuring an actual valid email address in the smtp settings?

Marola: Opsec, but thats not working,.

Onstead: The php mail function will use whatever is configured as the default MTA on the server itself

Marola: Opsec, besides mail is sending the test email successfully

Blenman: Opsec: Postman SMTP Mailer/Email Log – https://----escape_autolink_uri:a03ded6cd97ffffa8f7b4e1454f3eecc----.org/plugins/postman-smtp/

Onstead: Try that if you’re set on using smtp

Horseman: Marola did you try another contact plugin

Marola: Opsec, using SMTP, I am unable to receive emails.

Horseman: Using regular wp_mail

Marola: Poiz, haven’t tried yet.

Onstead: Marola: i’m suggesting a plugin for it if you want to send via a valid smtp account

Marola: Poiz, using the regular wp_mail also I receive emails as I received the mails that are sent while creating new account

Onstead: If you don’t want to use it, that’s up to you

Horseman: Https://----escape_autolink_uri:a03ded6cd97ffffa8f7b4e1454f3eecc----.org/plugins/contact-form-email/

Horseman: That is just as a test

Horseman: But deactivate the smtp plugin first

Marola: So we can confirm that its the issue with contact form 😀

Horseman: Try some editing in the cf7 one

Horseman: Return wp_mail $recipient, $subject, $body, $headers, $attachments ;

Horseman: Find this line in includes/mail.php

Horseman: And change to just ‘mail’

Horseman: Now im going in the dark here cuz

Horseman: I havent looked at it

Horseman: Cf7 has more features and looks better

Marola: Poiz, OK I changed it but now its more bad. cannot send the email.

Marola: Failed to send your message. Please try later or contact the administrator by another method.

Horseman: Ok so its a little more complicated

Marola: Poiz, I am trying out ninja form once.

Horseman: I dont know enough about wp_mail to say what is wrong with it in your setup but at least the regular mail works so it should be possible to find one or configure one with it

Horseman: Maybe remove the $attachments var in cf7 and test

Horseman: But maybe there are other formatting or things being put in that is being rejected too

Horseman: And also its not really the right way to do it cause every update can potentially reset the file

Horseman: So youd need another thing around that

Horseman: Its hard to troubleshoot server stuff from a distance also

Marola: Poiz, OK now, I got a conclusion, Ninja form working great