Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#31 2017-12-10 08:46:11
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,331
Re: com_connect - form and contact mailer
phiw13 wrote #308205:
see also this and following post.
my form:
<txp:com_connect to="ma...@gmail.com" label="Send a message" subject="Message from website" thanks="Thank you!" lang="en-gb">
<txp:com_connect_text label="Name:" break="" />
<txp:com_connect_email name="email" type="email" label="Email:" break="" />
<txp:com_connect_text type="tel" label="Phone:" break="" />
<txp:com_connect_textarea rows="5" cols="25" label="Message:" break="" />
<txp:com_connect_submit label="Send" />
</txp:com_connect>
what else i could do?
Offline
#32 2017-12-10 09:22:57
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,331
Re: com_connect - form and contact mailer
in the last few months, i have received many compilations from my clients using ZCR contact mailer (request forms, booking forms, order forms… different kind of forms) – they don’t receive their clients emails. :(
yesterday i created new TXP account to the client. but she didn’t receive activation email. tryed three times. changed its hotmail email address to gmail address – then she finally received.
those email sending problems i have experienced already many years.
how about other CMS-s? do they also have similar “email sending” problems – does anyone know? could you confirm that this is not TXP specific issue?
Offline
Re: com_connect - form and contact mailer
Gallex,
I usually include a from=xx[at]my-domain.tld where my-domain.tld is the domain/site that hosts the form and the email address is a real email address.
<txp:com_connect from="xx@my-domain.tld" to="ma...@gmail.com" …
The same email address is also specified on the Preferences > Admin panel (SMTP envelope sender address and Send login details from this email address ).
Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern
phiw13 on Codeberg
Offline
Re: com_connect - form and contact mailer
Gallex wrote #308202:
This may be a spoofed message
If you were only getting this from com_connect I’d say it was the new headers I implemented. I stripped out some of the headers that caused issues with newer versions of PHP and replaced them with an enhanced body instead. But if it’s happening with ZCR too then try tinkering with your email sending prefs (see phiw13’s post) and also look into what gaekwad suggests.
Email providers are becoming more opinionated about what they perceive as spam (to the detriment of us all, to some degree) but taking some of the steps to sign/secure your email transport can go a long way towards helping servers route your messages correctly.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: com_connect - form and contact mailer
Gallex
You could whitelist by subject in gmail
- Mouse over the Settings menu icon and select Settings.
- Click Filters and then “Create a new filter”.
In the subject line, add the subject of the email sent by the form.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Online
#36 2017-12-10 13:43:44
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,331
Re: com_connect - form and contact mailer
Bloke wrote #308210:
If you were only getting this from com_connect I’d say it was the new headers I implemented. I stripped out some of the headers that caused issues with newer versions of PHP and replaced them with an enhanced body instead. But if it’s happening with ZCR too then try tinkering with your email sending prefs (see phiw13’s post)
i did what phiw13 suggested: included from=”…” to the form and domain-specific email address to preferences. no “spoofing email” warnings anymore, but still no file attached with an email. :(
and also look into what gaekwad suggests.
could anybody tell me, what exactly i need to do to update my domains with DKIM and SPF?
my line: <txp:com_connect_file type="file" accept=".pdf,.xls,.odt,.doc,.docx" label="Lisa fail:" max="8000000" required="0" />
Last edited by Gallex (2017-12-10 14:15:03)
Offline
Re: com_connect - form and contact mailer
Gallex wrote #308212:
could anybody tell me, what exactly i need to do to update my domains with DKIM and SPF?
I think this info could be useful to many of us. I’ve no special knowledge of this either, so input from someone with more detailed knowledge would be useful. Nevertheless, a google search threw up this What is SPF & DKIM? And Why You Want to Have It Set Up? post. Judging by that, you need to check with your webhost on how to add SPF records. If your domain is administered by an external provider that is not the same as your webhost, you will need to check with the service where you enter the DNS details (or possibly both if there’s something special for email-handling). The instructions will likely be particular to your host’s control panel. For example, here are some typical ones
- webfaction’s SPF instructions but webfaction does not support DKIM with it’s own mail server.
- all-inkl’s SPF instructions and all-inkl’s DKIM instructions though their standard mailserver does not support DKIM either.
- cpanel SPF and DKIM instructions care of namecheap
- plesk SPF and DKIM instructions
Check with your own host.
@gaekwad: Is there anything in particular we would need to add for mail sent via php from textpattern, or should the standard entry for the domain suffice? Also, if one uses another service such as Gmail to handle one’s email for a domain, I guess one needs to provide different DNS records…?
TXP Builders – finely-crafted code, design and txp
Offline
Re: com_connect - form and contact mailer
Hi,
would be a good idea to set pap_contact_cleaner for com_connect?
See there: By the way, is there anyway to make pap_contact_cleaner work with com_connect?
Or has com_connect itself the functions as pap_contact_cleaner?
Oh I see in the “Help” of the Plugin com_connect the same solutions for pap_contact_cleaner!
Last edited by lythande (2018-03-09 09:04:02)
Offline
Re: com_connect - form and contact mailer
Looking at the download options, I’m not sure which one I should use reliably (or with the fewest gotchas). 4.6.0 beta?
Offline
Re: com_connect - form and contact mailer
Go with the latest.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
Re: com_connect - form and contact mailer
Hello,
on a website with a contact mail form for customers, they are often entering not the right email address and though the sent mails are coming back. Is there a way to double check <txp:com_connect_email />?
Another point is, that I send these customers every time a copy of their mails. The standard configuration is a little bit confusing for some of them, because nothing is indicating, that this is only the copy for this customer and their “original” mail was delivered. That’s why I changed the Subject for these mails to something like: “Copy: xyz124”.
So one can add a parameter like this: 'copysubject' => 'Copy: ', in com_connect_lAtts(array( and then change the com_connect_deliver to this:
if ($copysender && $com_connect_from) {
com_connect_deliver(com_connect_strip($com_connect_from), $copysubject." ".$subject, $msg, $headers, $fields, array('isCopy' => true));
}
Edited: Textile. — Uli
Last edited by uli (2018-03-29 11:19:39)
Offline
Re: com_connect - form and contact mailer
whocarez wrote #310437:
they are often entering not the right email address… Is there a way to double check
<txp:com_connect_email />?
The plugin performs is_valid_email() which checks its format. And if it fails, it checks the domain. So there’s a possibility that the email looks valid (right format) but the domain or TLD is misspelled. A com_connect module (plugin) could do more detailed checks if necessary.
I’m not sure I quite get the ‘copy’ issue. WIll have to read it again later, unless someone else can figure it out.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#43 2018-03-29 20:49:18
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,316
Re: com_connect - form and contact mailer
Bloke wrote #310442:
I’m not sure I quite get the ‘copy’ issue. WIll have to read it again later, unless someone else can figure it out.
Looks like it’s not an issue but a tip for us.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: com_connect - form and contact mailer
I’m sorry, probably I didn’t explain the situation enough.
When “send a copy to sender” is switched on, some of the clients are wondering themselfs, why do I get my own mail? OK, one can explain it in the form and so on, but not everyone understands it or they forget or oversee it, so one solution for me was to rewrite the subject of this copymail. So in this case the client gets his copy and sees already in the subject, that this is only the copy for him. Maybe that would be also useful for others.
Offline
Re: com_connect - form and contact mailer
Trying for first time (never a ZCR user either). Bear with me.
Various questions…
1) I’m using this:
<txp:com_connect to="username@domain.tld" subject_form="subject_contact_form">
<txp:com_connect_text label="Your Name" /><br />
<txp:com_connect_email /><br />
<txp:com_connect_select label="Reason for contacting" options=",Thing 1,Thing 2,Thing 3" /><br />
<txp:com_connect_textarea label="Message" /><br />
<input class="comSubmit" type="submit" value="Send Email" />
</txp:com_connect>
In source the input and label elements are surrounded with <br> tags. Is that really needed? What about leaving them inline and letting people use display: block; strategically, or whatever? I’ve seen some neat forms before where labels were at left of input fields. The breaks would seem to prevent anyone from doing that who might want to. Not that I do, but I’m just saying.
2) For the life of me I can’t seem to get any style affect on the .comSelect option elements. I’d like those to be larger and more readable than the ancient 11px standard, but damned if anything will take hold.
3) I’m not getting emails on form tests, though it does seem to be functioning otherwise. I’m guessing this is because I’m testing locally and I don’t have any kind of email server setup?
4) If I was on the host’s web server, and I wasn’t seeing the email (yet to be tested), would I/could I eat green eggs… er, use a protonmail address in the SMTP Txp preference? I’m not sure if there’s a particular domain email that has to be there or not.
Offline