Method: users.settings.sendAs.create
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
একটি কাস্টম তৈরি করে "থেকে" পাঠান-এর নাম হিসেবে। যদি একটি SMTP MSA নির্দিষ্ট করা থাকে, Gmail উপনাম তৈরি করার আগে কনফিগারেশন যাচাই করতে SMTP পরিষেবার সাথে সংযোগ করার চেষ্টা করবে। যদি উপনামের জন্য মালিকানা যাচাইকরণের প্রয়োজন হয়, তাহলে ইমেল ঠিকানায় একটি বার্তা পাঠানো হবে এবং সম্পদের যাচাইকরণ স্থিতি pending
সেট করা হবে; অন্যথায়, accepted
হিসাবে সেট করা যাচাইকরণ স্থিতি সহ সংস্থান তৈরি করা হবে। যদি একটি স্বাক্ষর প্রদান করা হয়, Gmail উপনাম দিয়ে সংরক্ষণ করার আগে এইচটিএমএলকে স্যানিটাইজ করবে।
এই পদ্ধতিটি শুধুমাত্র পরিষেবা অ্যাকাউন্ট ক্লায়েন্টদের জন্য উপলব্ধ যারা ডোমেন-ওয়াইড অথরিটি অর্পণ করা হয়েছে।
HTTP অনুরোধ
POST https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs
URL gRPC ট্রান্সকোডিং সিনট্যাক্স ব্যবহার করে।
পাথ প্যারামিটার
পরামিতি |
---|
userId | string ব্যবহারকারীর ইমেল ঠিকানা। বিশেষ মান "me" প্রমাণীকৃত ব্যবহারকারী নির্দেশ করতে ব্যবহার করা যেতে পারে। |
শরীরের অনুরোধ
অনুরোধের মূল অংশে SendAs
এর একটি উদাহরণ রয়েছে।
প্রতিক্রিয়া শরীর
সফল হলে, প্রতিক্রিয়া বডিতে SendAs
এর একটি সদ্য তৈরি উদাহরণ থাকে।
অনুমোদনের সুযোগ
নিম্নলিখিত OAuth সুযোগ প্রয়োজন:
-
https://www.googleapis.com/auth/gmail.settings.sharing
আরও তথ্যের জন্য, অনুমোদন নির্দেশিকা দেখুন।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Method: users.settings.sendAs.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nCreates a custom \"from\" send-as alias. If an SMTP MSA is specified, Gmail will attempt to connect to the SMTP service to validate the configuration before creating the alias. If ownership verification is required for the alias, a message will be sent to the email address and the resource's verification status will be set to `pending`; otherwise, the resource will be created with verification status set to `accepted`. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias.\n\nThis method is only available to service account clients that have been delegated domain-wide authority.\n\n### HTTP request\n\n`POST https://gmail.googleapis.com/gmail/v1/users/{userId}/settings/sendAs`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-------------------------------------------------------------------------------------------------------|\n| `userId` | `string` User's email address. The special value \"me\" can be used to indicate the authenticated user. |\n\n### Request body\n\nThe request body contains an instance of [SendAs](/workspace/gmail/api/reference/rest/v1/users.settings.sendAs#SendAs).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [SendAs](/workspace/gmail/api/reference/rest/v1/users.settings.sendAs#SendAs).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/gmail.settings.sharing`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent)."]]