Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8885381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:17:53+00:00 2026-06-14T21:17:53+00:00

When you go to Contacts >> More >> vCard format >> Export – this

  • 0

When you go to Contacts >> More >> vCard format >> Export – this will create a contact file.

If you then compose a new message, attach that .vcf file, send to a Gmail address – Gmail will display a nice “Import to contacts” shortcut link to the recipient.
enter image description here

When you re-create the .vcf file in GAS in the same format as the exported file and send it as an attachment with GmailApp, Gmail does not show the “Import to contacts”. It just shows “View”.
enter image description here

However, if you click Download on the file created with GAS then attach and send in a new message composed manually, Gmail will show the Import link.

Is there anything Apps Script can do to ensure the “Import to contacts” link shows up when using GmailApp to send a vCard file as an attachment or is this really more of a Gmail issue?

var layout = 'BEGIN:VCARD' + '\n' +
'VERSION:3.0' + '\n' +
'FN: Forrest Gump' + '\n' +
'N:Gump;Forrest;;;' + '\n' +
'EMAIL;TYPE=INTERNET:forrestgump@example.com' + '\n' +
'END:VCARD' + '\n';

var vCard = [{fileName:"new contacts.vcf", content:layout}];

GmailApp.sendEmail("example@gmail.com", "Subject", "Body...", {attachments: vCard});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:17:54+00:00Added an answer on June 14, 2026 at 9:17 pm

    It’s because you sent it as plain text. If you want Gmail to recognize it as vCard. You need to send it as octet-stream.

    To fix this just put mimeType:"application/octet-stream" to your attach file description

    e.g.

    var vCard = [{fileName:"new contacts.vcf", content:layout, mimeType:"application/octet-stream"}];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I read from Outlook Contacts my Contacts and then I add the Contact to
I have table to collect Contacts information if contact have more than one contact
I have this route profile GET /contacts/:id(.:format) {:controller=>my_devise/contacts, :action=>profile} This is my controllers/application_controller.rb class
I have this code var contacts = dr.mktDoctorContacts .GroupBy(x => x.ContactType) .Select(zb => new
The details of the contacts not displayed properly by using this code. I am
In Apple's Contacts app, if you go to a contact that has two emails
I have seen the Contacts in iPhone Simulator. I want to create an application
I'm saving contacts (email, mobile phone, ICQ, AIM etc.) for people like this: class
I am trying to create a contacts like app for iphone where the name
one more question i need to import the contacts from the i phone simulator

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.