Hi friends i have one doubt about email config please anyone tell about Step by Step process this more helpful for me…
I am create one Contact us Form the user fill the contact form then go to email for admin and also user please help me…
Advance thanks
Tim
3 December 2019 09:59
2
Hi,
Have you been through the guide here: https://docs.silverstripe.org/en/4/developer_guides/email/
All the available methods for the email class can be found here: SilverStripe\Control\Email\Email | SilverStripe API
Including things like ->setCC()
and ->setBCC()
for sending copies of messages to multiple people.
If those links don’t help, post some of your code and let us know what is and isn’t working and someone should be able to provide some more specific pointers.
Email : https://docs.silverstripe.org/en/4/developer_guides/email/
I am Also try this but not working properly, please help me another method or step by step process
Tim
3 December 2019 10:04
4
Can you post your code, tell us what you’ve already tried and what is not working the way you want it to?
How to Solve this error:
templates/email/SubmittedFormEmail
This is mysite.yml code
Name: myproject
SilverStripe\Core\Manifest\ModuleManifest:
project: app
SilverStripe\UserForms\Model\UserDefinedForm:
extensions:
- src\Extensions\UserDefinedExtension
SilverStripe\Core\Injector\Injector:
Swift_Transport: Swift_SendmailTransport
SilverStripe\UserForms\Model\UserDefinedForm:
email_template_directory: app/templates/email/SubmittedFormEmail
This is email.yml:
Name: myemailconfig
After: emailconfig
Only:
environment: ‘live’
SilverStripe\Core\Injector\Injector:
Swift_Transport:
class: Swift_SmtpTransport
properties:
Host: smtp.gmail.com
Port: 587
Encryption: tls
calls:
Username: [ setUsername, [‘example@gmail.com’] ]
Password: [ setPassword, [‘example’] ]
AuthMode: [ setAuthMode, [‘login’] ]
This is my Admic CMS:
This is my Contact form:
This is my SubmittedFormEmail Dir: