use resend_rs::{ types::{UpdateInboxDraftOptions}, Resend, Result,};#[tokio::main]async fn main() -> Result<()> { let resend = Resend::new("re_xxxxxxxxx"); let opts = UpdateInboxDraftOptions::new().with_subject("Refund issued for order 1041"); let _draft = resend .inboxes .update_draft( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1", "c3a1e8b4-2d5f-4a7c-9e10-6b8d7f5a4c32", opts, ) .await?; Ok(())}
import com.resend.Resend;import com.resend.core.exception.ResendException;import com.resend.services.inboxes.model.UpdateInboxDraftOptions;import com.resend.services.inboxes.model.UpdateInboxDraftResponseSuccess;public class Main { public static void main(String[] args) throws ResendException { Resend resend = new Resend("re_xxxxxxxxx"); UpdateInboxDraftOptions params = UpdateInboxDraftOptions.builder() .subject("Refund issued for order 1041") .build(); UpdateInboxDraftResponseSuccess data = resend.inboxes().drafts().update( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1", "c3a1e8b4-2d5f-4a7c-9e10-6b8d7f5a4c32", params); }}
using Resend;IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DIvar resp = await resend.InboxDraftUpdateAsync( new Guid( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1" ), new Guid( "c3a1e8b4-2d5f-4a7c-9e10-6b8d7f5a4c32" ), new InboxDraftUpdateData() { Subject = "Refund issued for order 1041", });Console.WriteLine( "Draft Id={0}", resp.Content );
use resend_rs::{ types::{UpdateInboxDraftOptions}, Resend, Result,};#[tokio::main]async fn main() -> Result<()> { let resend = Resend::new("re_xxxxxxxxx"); let opts = UpdateInboxDraftOptions::new().with_subject("Refund issued for order 1041"); let _draft = resend .inboxes .update_draft( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1", "c3a1e8b4-2d5f-4a7c-9e10-6b8d7f5a4c32", opts, ) .await?; Ok(())}
import com.resend.Resend;import com.resend.core.exception.ResendException;import com.resend.services.inboxes.model.UpdateInboxDraftOptions;import com.resend.services.inboxes.model.UpdateInboxDraftResponseSuccess;public class Main { public static void main(String[] args) throws ResendException { Resend resend = new Resend("re_xxxxxxxxx"); UpdateInboxDraftOptions params = UpdateInboxDraftOptions.builder() .subject("Refund issued for order 1041") .build(); UpdateInboxDraftResponseSuccess data = resend.inboxes().drafts().update( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1", "c3a1e8b4-2d5f-4a7c-9e10-6b8d7f5a4c32", params); }}
using Resend;IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DIvar resp = await resend.InboxDraftUpdateAsync( new Guid( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1" ), new Guid( "c3a1e8b4-2d5f-4a7c-9e10-6b8d7f5a4c32" ), new InboxDraftUpdateData() { Subject = "Refund issued for order 1041", });Console.WriteLine( "Draft Id={0}", resp.Content );
Send at least one field. Omitted fields keep their current value. A request
with html or text replaces both, and the one you leave out is saved as
null. After the update, the draft must still have at least one non-empty
field, and to, cc, and bcc combined cannot exceed 50 recipients.
Files to store on the draft, up to 25 MB in total, downloaded files
included. All path downloads must finish within 20 seconds together.
Sending the field replaces every attachment on the draft. Send null or []
to remove them all. Drafts do not accept content_id.
Path where the attachment file is hosted. Resend downloads it when the
draft is saved, so a URL that cannot be downloaded returns an error. When
both content and path are sent, content is used.
use resend_rs::{ types::{UpdateInboxDraftOptions}, Resend, Result,};#[tokio::main]async fn main() -> Result<()> { let resend = Resend::new("re_xxxxxxxxx"); let opts = UpdateInboxDraftOptions::new().with_subject("Refund issued for order 1041"); let _draft = resend .inboxes .update_draft( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1", "c3a1e8b4-2d5f-4a7c-9e10-6b8d7f5a4c32", opts, ) .await?; Ok(())}
import com.resend.Resend;import com.resend.core.exception.ResendException;import com.resend.services.inboxes.model.UpdateInboxDraftOptions;import com.resend.services.inboxes.model.UpdateInboxDraftResponseSuccess;public class Main { public static void main(String[] args) throws ResendException { Resend resend = new Resend("re_xxxxxxxxx"); UpdateInboxDraftOptions params = UpdateInboxDraftOptions.builder() .subject("Refund issued for order 1041") .build(); UpdateInboxDraftResponseSuccess data = resend.inboxes().drafts().update( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1", "c3a1e8b4-2d5f-4a7c-9e10-6b8d7f5a4c32", params); }}
using Resend;IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DIvar resp = await resend.InboxDraftUpdateAsync( new Guid( "b3e2b2b6-3f0e-4c8e-9ad3-2f43a1e2c7f1" ), new Guid( "c3a1e8b4-2d5f-4a7c-9e10-6b8d7f5a4c32" ), new InboxDraftUpdateData() { Subject = "Refund issued for order 1041", });Console.WriteLine( "Draft Id={0}", resp.Content );