html-email

PHPMailer send email with array

和自甴很熟 提交于 2021-02-20 04:54:05
问题 Hi I have question about HTML form array and PHP. For example I have name and email but ask 6 times and I want to send this mail. What I should edit to work? thank you! HTML: <form method="Post" action="send.php" onSubmit="return validate();"> <?php $amount=6; //amount shows the number of data I want to repeat for( $i = 0; $i < $amount; $i++ ) { ?> <b>Data <?php echo $i+1 ?>º</b> <input type="edit" name="Name[]" size="40"> <input type="edit" name="email[]" size="40"> <br> <?php } ?> <input

Is it possible to use google webfonts in a MailChimp template?

五迷三道 提交于 2021-02-18 10:14:42
问题 I've been trying to incorporate google webfonts in MailChimp and can't get any solutions to work. I've tried the approach listed on Campaign Monitor's site using @import: http://www.campaignmonitor.com/blog/post/3897/using-web-fonts-in-email but I get this error when trying to preview: An error occurred parsing your template CSS: Cannot find a CSS file at: http://fonts.googleapis.com/css?family=Montserrat Has anyone been able to use custom fonts within MailChimp? 回答1: It turns out it's not

Is it possible to use google webfonts in a MailChimp template?

放肆的年华 提交于 2021-02-18 10:14:11
问题 I've been trying to incorporate google webfonts in MailChimp and can't get any solutions to work. I've tried the approach listed on Campaign Monitor's site using @import: http://www.campaignmonitor.com/blog/post/3897/using-web-fonts-in-email but I get this error when trying to preview: An error occurred parsing your template CSS: Cannot find a CSS file at: http://fonts.googleapis.com/css?family=Montserrat Has anyone been able to use custom fonts within MailChimp? 回答1: It turns out it's not

How to use @media (prefers-color-scheme) in responsive email in Gmail?

陌路散爱 提交于 2021-02-16 18:21:27
问题 Following CSS is in head of HTML email to change email body color when the device in dark mode. @media (prefers-color-scheme: dark) { .white-cont { background: red !important; } } It turns body of email only in apple mail app. Gmail app does nothing the entire mail is converted to dark color scheme automatically which is not so good. How to make dark-mode-responsive a gmail email? Why the above tag does not work in gmail? Any solutions? 回答1: Dark Mode is a trend in email development to

How to send array in Mailgun handlebars Context

天涯浪子 提交于 2021-02-11 12:41:56
问题 I am trying to send an array in Mailgun email as a list for this I did: $result = $mgClient->messages()->send( $this->mailgunDomain, [ . . . 'v:list' => json_encode($finalList), ]); $finalList is a 2d array which looks something like this: [ [ "key" => "someKey" "value" => "someValue" ], ... ] But now the main problem is I do not know how can I use this array as handlebars context Because, I get: { "list": "[{"key":"someKey","value":"someValue"}]" } I want: { "list": [{"key":"someKey","value"

Font-Size in HTML Email via Gmail

喜欢而已 提交于 2021-02-10 03:07:14
问题 Has anyone ever experienced a problem that, when a font-size style is applied to an element, the Gmail client isn't consistent when rendering? Example, I set the font-size to 17px and everything renders as too big, and then I set it to 16px and it becomes radically smaller. Any input would be appreciated. 回答1: Use pt instead of px for font-sizes , seem to work for me. 回答2: Looks like they are overriding font-sizes and ignoring !important for text tags (a, p, etc) When I applied the font-size

Font-Size in HTML Email via Gmail

◇◆丶佛笑我妖孽 提交于 2021-02-10 03:06:36
问题 Has anyone ever experienced a problem that, when a font-size style is applied to an element, the Gmail client isn't consistent when rendering? Example, I set the font-size to 17px and everything renders as too big, and then I set it to 16px and it becomes radically smaller. Any input would be appreciated. 回答1: Use pt instead of px for font-sizes , seem to work for me. 回答2: Looks like they are overriding font-sizes and ignoring !important for text tags (a, p, etc) When I applied the font-size

Font-Size in HTML Email via Gmail

痴心易碎 提交于 2021-02-10 03:02:29
问题 Has anyone ever experienced a problem that, when a font-size style is applied to an element, the Gmail client isn't consistent when rendering? Example, I set the font-size to 17px and everything renders as too big, and then I set it to 16px and it becomes radically smaller. Any input would be appreciated. 回答1: Use pt instead of px for font-sizes , seem to work for me. 回答2: Looks like they are overriding font-sizes and ignoring !important for text tags (a, p, etc) When I applied the font-size

javascript not working inside email

帅比萌擦擦* 提交于 2021-02-08 06:44:28
问题 I am sending an email from my SAP System to gmail. The body is html and javascript based content. Now, the requirement is to create a new url window onclick of a button or a link inside the email which will open a web page in a popup window. So, when i am testing it within SAP, it is working correctly but when i am testing it within the gmail application, it is calling the URL in a new Tab(Full Page). As it is just an informational window, i want to keep it as small as possible. Here is my

Unable to connect to SMTP Port no 465

坚强是说给别人听的谎言 提交于 2021-02-08 06:38:35
问题 I am not able to connect to smtp port no 465, which uses SSL authentication. Earlier it used to work in default port 25, but have changed the setting to point to 465 for outbound emails for all outgoing emails. This works perfectly fine when i use outlook but shows that it cannot connect to port 465. Below is the error. javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: smtp.bizmail.yahoo.com, port: 465 at javax