YiiMailer | Yii extension for sending emails | Email library
kandi X-RAY | YiiMailer Summary
kandi X-RAY | YiiMailer Summary
Yii (v1.1.x) extension for sending emails with layouts using PHPMailer.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Send contact email
- Saves the sent message
- Run cron job
- send the message
- Login action .
- Renders the message .
- Set an array of addresses
- Returns the actions
- Error action .
- Show help
YiiMailer Key Features
YiiMailer Examples and Code Snippets
Community Discussions
Trending Discussions on YiiMailer
QUESTION
$mail = new YiiMailer();
$mail->setView('contact');
$mail->setData(array('register' => $model,'user' =>$user));
//$mail->clearLayout();//if layout is already set in config
$mail->setFrom('xxxx@gmail.com', 'amatra');
$mail->setTo($model->client_email);
$mail->setSubject('Amatra Registration');
$mail->setBody('Thank u for registering, to get server licence activation key ');
$mail->setSmtp('smtp.gmail.com', 465, 'ssl', true, 'xxxx@gmail.com', 'aconxontheroad');
var_dump($mail->send());
if($mail->send()) {
return true;
} else {
return false;
}
...ANSWER
Answered 2018-Oct-08 at 05:12$mail->SMTPDebug = 1; //optional
QUESTION
I have the following code in my email template:
...ANSWER
Answered 2017-Mar-07 at 06:13You can't get JavaScript maps working in email, and Gmail won't let you embed an iframe to an email. (iFrames and JavaScript added to an email in this way would be considered a security risk.)
What you can do, however, is embed a static map image on your email.
Go to http://staticmapmaker.com/google/ and enter location wanted.
Copy the generated static map image and paste it the email.
Copy the href from the "Map with link to Google Maps" section.
Select the image you copied/pasted into your email and do command/ctrl+k to add a link to that image.
Paste the url from step #3 into Web Address field.
QUESTION
I have following code in my contoller called MessageController:
...ANSWER
Answered 2017-Mar-06 at 07:58First of all I think you may need to set third parameter of renderPartial()
to "true" $this->renderPartial('temp', null, true);
so the rendering result will be returned not displayed.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install YiiMailer
Add 'vendor.vernes.yiimailer.YiiMailer' line to your imports in main and/or console yii config
Copy mail.php config file to protected/config or add configuration array in 'params' under the key 'YiiMailer'
Create email layout file mail.php in protected/views/layouts/ (default path, can be changed in config)
Create all the views you want to use in protected/views/mail/ (default path, can be changed in config)
Put all images you want to embed in emails in images/mail/ (default path, can be changed in config)
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page