Тёмный

Google Sheets for sending automatic Birthday Wishes | Malayalam Tutorial 

Подписаться
Просмотров 3,2 тыс.
% 89

സുഹൃത്തുക്കൾക്കും, ബന്ധുക്കൾക്കും ഓട്ടോമാറ്റിക് ആയി ജന്മദിനാശംസകൾ അയക്കുന്ന ഗൂഗിൾ ഷീറ്റ്‌സ് ടെംപ്ലേറ്റ് എങ്ങിനെ നിർമ്മിക്കാമെന്ന് വിശദീകരിക്കുന്ന വീഡിയോ
Google Sheets Template for sending Birthday Wishes to friends and relatives. The same template with nominal changes can be used to send Warranty/AMC expiring Alerts to customers.
മൈക്രോസോഫ്റ്റ് എക്സൽ കോഴ്സിൽ എൻറോൾ ചെയ്യുന്നതിന് വേണ്ടിയുള്ള ലിങ്ക് ചുവടെ...
www.udemy.com/course/microsoft-excel-beginner-to-professional-malayalam/?referralCode=592DD7352D466992D4CB
Subscribe to the channel @AjayAnandXLnCAD for more.
ru-vid.com
Microsoft Word Beginner to Professional കോഴ്സിൽ എൻറോൾ ചെയ്യുന്നതിന് വേണ്ടിയുള്ള ലിങ്ക് ചുവടെ...
www.udemy.com/course/learn-microsoft-word-in-malayalam/?referralCode=7C4B9E5DA75070465BD0
Download the Apps Script code for sending Birthday Wishes
drive.google.com/drive/folders/1wZYeNXkNl-vUdR88szxhOmFxlImZ1mzC?usp=sharing
#malayalamtutorial #sendbirthdaywishes #appscript

Опубликовано:

 

17 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@XLnCADMalayalam
@XLnCADMalayalam 21 день назад
Apps Script Code for sending Birthday Wishes function sendBirthdayWishes() { var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); var dataRange = sheet.getDataRange(); var data = dataRange.getValues(); var today = new Date(); var todayDayMonth = today.getDate() + "-" + (today.getMonth() + 1); for (var i = 1; i < data.length; i++) { if (data[i][0] === '') { continue; // Skip empty rows } var name = data[i][1]; // Adjust column index based on your sheet var dobCell = data[i][2]; // Date of Birth column var dob; if (typeof dobCell === 'object' && dobCell instanceof Date) { dob = dobCell.getDate() + "-" + (dobCell.getMonth() + 1); // Format DD-MM } else if (typeof dobCell === 'string' && dobCell !== '') { var dobParts = dobCell.split("/"); dob = dobParts[0] + "-" + dobParts[1]; // Format DD-MM } else { continue; // Skip rows with invalid or empty Date of Birth } if (dob === todayDayMonth) { var email = data[i][3]; // Email column var subject = "Happy Birthday " + name + "!"; var message = "Dear " + name + ", Wishing you a very Happy Birthday! Have a fantastic day! Best Regards, Ajay Anand"; MailApp.sendEmail(email, subject, message); } } }
@techknowtip5835
@techknowtip5835 9 дней назад
Can use this for weekly reminder and the message condent on custom column , take thhat and snd it
@murlydas
@murlydas 19 дней назад
Thanks it works now, pls let me know how can I color the script wish message and put a little 💙 or emoji's
@XLnCADMalayalam
@XLnCADMalayalam 17 дней назад
Check my video on ChatGPT. You can paste the same code in ChatGPT and ask to modify the code for your requirements. It may take some iterations, but you will get the desired result.
@manojmamachan7607
@manojmamachan7607 19 дней назад
made classes for how to use COPILOT in Microsoft.
@XLnCADMalayalam
@XLnCADMalayalam 19 дней назад
😀👍
@splendid1963
@splendid1963 21 день назад
👍superb. Thank you
@XLnCADMalayalam
@XLnCADMalayalam 19 дней назад
Welcome 😊
@rukrocks9513
@rukrocks9513 20 дней назад
Nice
@XLnCADMalayalam
@XLnCADMalayalam 19 дней назад
😀👍
@navanitkrishnan2280
@navanitkrishnan2280 19 дней назад
Microsoft 365 purchase tutorial please..
@XLnCADMalayalam
@XLnCADMalayalam 19 дней назад
😀👍
@Insafashraf
@Insafashraf 9 дней назад
Excel sheetil ഇത് aply ചെയ്യാൻ പറ്റുമോ
@habeebrahmankoramkulam9911
@habeebrahmankoramkulam9911 21 день назад
nice
@XLnCADMalayalam
@XLnCADMalayalam 21 день назад
Thank you
@murlydas
@murlydas 20 дней назад
Good Idea, Tried with your copied script, google sheet showing mail sent, but nothing received at other end respective mail ids. No error showing, pls respond. Thanks
@XLnCADMalayalam
@XLnCADMalayalam 19 дней назад
You said that 'Mails were sent'. If there is an issue in receiving mails, the recipient should contact the email service provider. Before that make sure to check the Spam folder.
@murlydas
@murlydas 19 дней назад
In the sheet it is showing executed, but in the respective sending mail it is not showing as sent. The receiving side was also not received, chkd in spam also
@murlydas
@murlydas 19 дней назад
Thanks for prompt❤
@ManuMohan-us8px
@ManuMohan-us8px 21 день назад
ഇതിൽ happy birthday യുടെ ഒരു പോസ്റ്ററിം കൂടി എങ്ങനെ ഉൾപെടുത്തി mail ചെയ്യാം
@XLnCADMalayalam
@XLnCADMalayalam 21 день назад
I haven't tested the following code. But I believe it will take care of your requirement. Replace "YOUR_IMAGE_URL" with the URL of your image. function sendBirthdayWishes() { var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); var dataRange = sheet.getDataRange(); var data = dataRange.getValues(); var today = new Date(); var todayDayMonth = today.getDate() + "-" + (today.getMonth() + 1); var imageUrl = "YOUR_IMAGE_URL"; // Replace with the URL of your image for (var i = 1; i < data.length; i++) { if (data[i][0] === '') { continue; // Skip empty rows } var name = data[i][1]; // Adjust column index based on your sheet var dobCell = data[i][2]; // Date of Birth column var dob; if (typeof dobCell === 'object' && dobCell instanceof Date) { dob = dobCell.getDate() + "-" + (dobCell.getMonth() + 1); // Format DD-MM } else if (typeof dobCell === 'string' && dobCell !== '') { var dobParts = dobCell.split("/"); dob = dobParts[0] + "-" + dobParts[1]; // Format DD-MM } else { continue; // Skip rows with invalid or empty Date of Birth } if (dob === todayDayMonth || (dob === "29-2" && (todayDayMonth === "28-2" && !isLeapYear(today.getFullYear())))) { var email = data[i][3]; // Email column var subject = "Happy Birthday " + name + "!"; var message = ` Dear ${name}, Wishing you a very Happy Birthday! Have a fantastic day! Best Regards,[Your Name] `; MailApp.sendEmail({ to: email, subject: subject, htmlBody: message }); } } } function isLeapYear(year) { return ((year % 4 === 0) && (year % 100 !== 0)) || (year % 400 === 0); }
@ManuMohan-us8px
@ManuMohan-us8px 21 день назад
@@XLnCADMalayalam sir, thanku for your reply
@XLnCADMalayalam
@XLnCADMalayalam 21 день назад
My pleasure :)
@joypoulose9080
@joypoulose9080 21 день назад
Feb 29 DOB എങ്ങിനെ സെറ്റ് ചെയ്യണം.
@habeebrahmankoramkulam9911
@habeebrahmankoramkulam9911 21 день назад
@xlncad
@vahidcrl4376
@vahidcrl4376 21 день назад
4 വർഷം ആകുമ്പോഴല്ലേ നിങ്ങൾക്ക് ഒരു വയസ്സ് കൂടുന്നത്. അതുകൊണ്ട് പ്രശ്നമില്ല, അതുപോലെ തന്നെ കൊടുത്താൽ മതിയാകും ☺️
@XLnCADMalayalam
@XLnCADMalayalam 21 день назад
Interesting question! Following code will take care of the people born on February 29. function sendBirthdayWishes() { var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); var dataRange = sheet.getDataRange(); var data = dataRange.getValues(); var today = new Date(); var todayDayMonth = today.getDate() + "-" + (today.getMonth() + 1); for (var i = 1; i < data.length; i++) { if (data[i][0] === '') { continue; // Skip empty rows } var name = data[i][1]; // Adjust column index based on your sheet var dobCell = data[i][2]; // Date of Birth column var dob; if (typeof dobCell === 'object' && dobCell instanceof Date) { dob = dobCell.getDate() + "-" + (dobCell.getMonth() + 1); // Format DD-MM } else if (typeof dobCell === 'string' && dobCell !== '') { var dobParts = dobCell.split("/"); dob = dobParts[0] + "-" + dobParts[1]; // Format DD-MM } else { continue; // Skip rows with invalid or empty Date of Birth } if (dob === todayDayMonth || (dob === "29-2" && (todayDayMonth === "28-2" && !isLeapYear(today.getFullYear())))) { var email = data[i][3]; // Email column var subject = "Happy Birthday " + name + "!"; var message = "Dear " + name + ", Wishing you a very Happy Birthday! Have a fantastic day! Best Regards, [Your Name]"; MailApp.sendEmail(email, subject, message); } } } function isLeapYear(year) { return ((year % 4 === 0) && (year % 100 !== 0)) || (year % 400 === 0); }
@murlydas
@murlydas 19 дней назад
tried on two mails not working
@XLnCADMalayalam
@XLnCADMalayalam 19 дней назад
Use the following code and see whether it's working or not. You will get detailed logging statements which helps in troubleshooting. You can also take the help of ChatGPT or Gemini for debugging. function sendBirthdayWishes() { var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); var dataRange = sheet.getDataRange(); var data = dataRange.getValues(); var today = new Date(); var todayDayMonth = today.getDate() + "-" + (today.getMonth() + 1); Logger.log("Today's date: " + todayDayMonth); for (var i = 1; i < data.length; i++) { if (data[i][0] === '') { continue; // Skip empty rows } var name = data[i][1]; // Adjust column index based on your sheet var dobCell = data[i][2]; // Date of Birth column var dob; if (typeof dobCell === 'object' && dobCell instanceof Date) { dob = dobCell.getDate() + "-" + (dobCell.getMonth() + 1); // Format DD-MM } else if (typeof dobCell === 'string' && dobCell !== '') { var dobParts = dobCell.split("/"); dob = dobParts[0] + "-" + dobParts[1]; // Format DD-MM } else { Logger.log("Invalid date format or empty Date of Birth for: " + name); continue; // Skip rows with invalid or empty Date of Birth } Logger.log("Checking " + name + " with DOB: " + dob); if (dob === todayDayMonth) { var email = data[i][3]; // Email column Logger.log("Sending email to: " + email); var subject = "Happy Birthday " + name + "!"; var message = "Dear " + name + ", Wishing you a very Happy Birthday! Have a fantastic day! Best Regards, [Your Name]"; MailApp.sendEmail(email, subject, message); Logger.log("Email sent to: " + email); } } }
@murlydas
@murlydas 19 дней назад
@@XLnCADMalayalam 💚