Search

Coming Home

Bad or Good, Who Knows

Month

February 2016

Auto Send Email from GForm

I just creating google form and wishing an Confirmation Email is sent after user input their email address.

Thanks to www.labnol.org, I have modifed the script. So this is complete Step

  1. After Creating Google Form, Linked it to Google Sheet
  2. From Google Sheet, select Tolols Script Editor
  3. Copy Paste This Script

You Can Change CC, BCC, and message column

Note : This Script Read Email From Column Name : Email Aktif, you can modify column name here

This script has logic if number of response reached more than 150 it responded with different email

/* Send Confirmation Email with Google Forms */

function Initialize() {

var triggers = ScriptApp.getProjectTriggers();

for (var i in triggers) {
ScriptApp.deleteTrigger(triggers[i]);
}

ScriptApp.newTrigger(“SendConfirmationMail”)
.forSpreadsheet(SpreadsheetApp.getActiveSpreadsheet())
.onFormSubmit()
.create();

}

function SendConfirmationMail(e) {

try {

var ss, cc,bcc, sendername, subject, columns,nama;
var message, value, textbody, sender,message2;
var sheet,lastRow;

// This is your email address and you will be in the CC
cc = “i@gmail.com”;
bcc=”K@gmail.com”
nama=e.namedValues[“Nama Lengkap”].toString();

// This will show up as the sender’s name
sendername = “ai”;

// Optional but change the following variable
// to have a custom subject for Google Docs emails

ss = SpreadsheetApp.getActiveSheet();
columns = ss.getRange(1, 1, 1, ss.getLastColumn()).getValues()[0];

lastRow=ss.getLastRow();
lastRow=lastRow-1;

// This is the body of the auto-reply
message = ” YOUR MESSAGE”;

message2= ” YOUR MESSAGE2″

// This is the submitter’s email address
// Make sure you havea field called Email Address in the Google Form
sender = e.namedValues[“Email Aktif “].toString();

// Only include form values that are not blank
for (var keys in columns) {
var key = columns[keys];
var val = e.namedValues[key] ? e.namedValues[key].toString() : “”;
if (val !== “”) {
message += key + ‘ :: ‘ + val + “<br />”;
}
}

if (lastRow < 152) {

textbody = message.replace(“<br>”, “\n”);

subject = “Subject1”;
GmailApp.sendEmail(sender, subject, textbody, {
cc: cc,
bcc: bcc,
name: sendername,
htmlBody: message
});

}
else
{
textbody = message2.replace(“<br>”, “\n”);

subject = “Sorry, more than 150”;
GmailApp.sendEmail(sender, subject, textbody, {
cc: cc,
bcc: bcc,
name: sendername,
htmlBody: message2
});

}

} catch (e) {
Logger.log(e.toString());
}

}

Journey Begin

 

Too much story play around in my head. When i start contemplating, a lot of good thing has happened past year, My dream finally come true. More important things are as i get my scholarship, i also got my opportunity to join another volunteering activity ,menyapa indonesia.

This is year of change, unforgettable and should be turning point of my life. Get LPDP scholarship won’t so easy, but finaly i accompalished it.

Interview process is though, the post interview process surely tougher. PK (Persiapan Keberangkatan) as one week preparation before i start studying, meet another hundred people from various background, religion, race made me more enlightened as diversity and niche in my environment of life. I am happy to meet all of them.

At this PK, first time i experienced sleep 2 hour or less a day for one week continuosly. The most important point is i learned that work to give as best as you can, try not to always think what reward you can get. If you have capacity to give until the limit, give it.

Closing ceremony party is great. More that thousands people comes, which make me can refine mistakes that i did in 2011. As a head of publication, working with people that even hold much better quality make the party very success, and more important i feel stronger bond after this to my new family.

 

S__6840322

My journey is just started and i still have more story to go, hope everything goes well, but like old folks said ” Bad of Good Who Knows
DSCF0544

 

Business is About Helping Others

A large number of insight surely resides in my mind now  after series of incredible inspirative talk from people.

 

This event also gave me new idea to develop new page here, telling about story of those things

 

Overall, 4 speaker inspired me  a lot, each of them share their unique experience about how they struggle to built their business and chasing passion

 

However, all of them share similar value to running their business, “doing business by passion in order to make other people happier”

 

First, I CEO of Tokopedia, William Tanuwijaya. His life experience and biography can be explored easily, but his true spirit of helping small business is pure, and I believe this is how tokopedia can grow this big.

 

MY favorite quotes from him was this “I always told my nakama (emplyee. Red), try your best to kill tokopedia by finding new innovative product, otherwise other people will do it”

 

Secondly, suprisingly at the next following day I attend speech by Ahmad Zacky, bukalapak.com CEO. His shaing was similar, struggling at first to build their passion, and Feel of happiness by helping small business grow also become his motivation to stay build the company.

 

Next is dr Gamal, who promote social enterpreneurship through garbage insurance and bank. The idea is asking people who can’t afford to pay hospital, collecting their garbage every month to compensate with health insurance. This business can be clearly seen on purpose to help and give better life to poor people

 

Last, Justin Kahn, founder of twich and investor in a lot people. What I learnt here mostly about finding innovative way to solving a problem. He told story of gmail creator, which once got a feedback to create preview message like ms outlook. The creator realized to preview message is not what really user want, instead he work to make gmail load faster until new we can load message in less than 10 s. After that, no more people complaning about those preview message feature. Translating user feedback is most important way in developing our product.

 

Business in the past, at least what I thought, is only about generating profit from innovative and creative idea. I learn additional value about it, business is about creating better life to people around society. When you valued this as much as your passion to making profit, you are one step ahed when facing investor to help business grow

 

 

 

 

Blog at WordPress.com.

Up ↑