Drupal Webform HTML Email fine on Dev box, Text when deployed to server - html-email

Using Drupal 9.2.7 and Webform 6.1.2, I got the webform and html email working well on my dev machine. I am running WSL2 on Windows, and using Mailhog to validate the emails without an SMTP server. All looked good.
I copied the project to my test domain on A2Hosting and the emails come through as plain text.
I then installed Mail System and Mime Mail thinking that might be the problem. Mail hog shows nice emails in either the html or text version, but when sent from A2Hosting I see the text version and raw html in the same email. My email client (eM Client) say the email is in html format.
Unfortunately I do not have another place I can test this. Could Mailhog be hiding a configuration problem on my part or is there a chance A2Hostings mail system is mucking it up?

The solution turned out to be quite simple. I removed Mime Mail and Mail System, installed SMTP module, pointed it at an email account in my domain, and everything worked just as expected.

Related

Email attachments automatically downloading instead of showing in tab

My clients website has just transferred from a aws plesk server to a cpanel litespeed server recently. Since the switch when they get emails that have attachments, they go to click on them and the attachment is prompted to download instead of opening in a new tab like it would do on the plesk server. Can anyone point me in the right direction on how to fix this issue?

How can I enable emails for my Sylius projects? (Symfony)

I installed Sylius using the documentation:
http://docs.sylius.org/en/latest/book/index.html#installation
Everything seems to work fine as you can see there:
http://sylius.krown.ch/app_dev.php/en_US/
Laurence
4567
Except with emails. I just want to enable default emails, as described there. Unfortunately no email is sent my the website after an order confirmation for example.
I have several projects installed in my server, including Symfony projects. Usually emails work just fine
How can I enable emails for my Sylius projects?
check your config_dev.yml if you have disabled mail delivery for dev environment:
swiftmailer:
disable_delivery: true

Mail plugin configuration using Grails 3

I have a problem when I try to use the mail plugin in grails. The ones I've searched in Google are mainly for Grails version 2 mail plugin.
I have tried to setup using
compile 'org.grails.plugins:mail:2.0.0.RC6'
in my buildConfig.groovy
and
sendMail {
to "xxxxxx#gmail.com"
from "........#yahoo.com"
subject "This is a test mail"
text "Hello, This is a test mail, how are you?"
}
in one of my controllers functions
When I try to run it, MailConnectException occurred. Have I missed any mail plugin configurations for grails 3 ? or do i have to add something into application.groovy like grails 2 in this site http://grails.asia/grails-mail-plugin-example?
I figured it out myself in fact I need to put the mail configuration into application.groovy like in grails 2. And the MailConnectionException is due to high security in Email, therefore, what I did was to set it to allow apps to connect to mail. This is available in security options of Mail system.

Push all postfix/exim mails to a shared folder

I am trying to setup a local email relay that a bunch of developers can use to test their applications against to send emails. This mail server should not be able to send emails anywhere, but rather put all emails that it receives into a folder which is shared via samba.
Then the developers can browse to that share and open their email from the share and look at it using outlook.
Have been searching all day on how to accomplish this, but still no where.
it can use postfix, exim or whichever other MTA.
I don't know where to start. any ideas?
I found an solution using this post.
Installing Ubuntu 14.04.2 stock standard, adding apt-get install postfix and apt-get install postfix-pcre (this pcre was the missing part, wihtout it, the script won't work)
Modified the script accordingly to my environment, restarted/reloaded postfix, installed samba and created a shared folder.
tested and all emails are placed in the folder configured in the script.

ColdFusion 10 Can't Verify Exchange 2010 Mail Server

So I've been running CF9 on Linux for a while and using CFMail to send email through a client's Exchange 2010 server for quite a while.
We're attempting to migrate to CF10 on Win2008, IIS7.5. Everything is set and ready to go except I can't get CF10 to verify the mail connection? I've got both mail settings (CF9 and CF10) set the exact same way and can view them open side by side and verify they're identical. However, while the CF9 verifies successfully the CF10 system fails??
I tried sending through CFMail tags while specifying the server credentials and see this in the CF10 log:
"javax.mail.AuthenticationFailedException: No authentication mechansims supported by both server and client"
What does this mean? I know my authentication credentials are correct because I'm able to connect in CF9.
I've turned off all firewalls and still nothing. So, I then tried installing CF10 on my Mac laptop. It, too, will not verify the mail connection!
Is there a known problem with CF10 connecting to an Exchange mail server?
Any ideas?
I "solved" this.
I could find little online and received no comments to this thread. No combination of settings I tried would work and I have no access to the client's mail server. The person who runs that server couldn't run a lemonade stand so no help there.
Then I stumbled across this page. Nothing to do with ColdFusion but seemed like a similar issue.
Recent changes in the JavaMail API has changed certain authentication
defaults and sometimes will create an authentication error with some
Exchange Server environments dependent on the configuration.
I'd never put much thought into CFMail because it was always drop dead simple and simply worked. Focusing on this link's Resolution 2 (ie replace the mail.jar with an older version). I wondered if CF used JavaMail and if I could downgrade CFMail? I cracked open CF's mail.jar file and found that CFMail does, indeed, use the JavaMail API. So, I then checked the ColdFusion docs to see if any new features were added to CFMail between CF9 and CF10. None.
So, I swapped out the mail.jar file from my CF9 install to CF10 and restarted. Boom! Everything worked immediately. As far as I can tell I've had no compatibility issues to report.
Swapping the mail.jar did not work for me. However, adding the following to JVM arguments
-Djava.net.preferIPv4Stack=true
worked for me. Please refer to the following article
Java Mail mystery - SMTP blocked?
posted by another user