Email-SendGrid-V3
view release on metacpan or search on metacpan
Whether to enable click-tracking for this message. If enabled, any URLs
in the body of this message will be rewritten to proxy through SendGrid
for tracking purposes. This setting will overwrite the account-level
setting if any. One optional argument is accepted: 'enable_text' which
controls whether the link-rewriting is also performed for plaintext
emails (the rewritten URL will be visible to the recipient)
$self->open_tracking($enable, %args);
Whether to enable open-tracking for this message. If enabled, a single
transparent pixel image is added to the HTML body of this message and
used to determine if and when the recipient opens the message. This
setting will overwrite the account-level setting if any. One optional
argument is accepted: 'substitution_tag' which identifies a token in
the message body that should be replaced with the tracking pixel.
$self->subscription_tracking($enable, %args);
Whether to enable a sendgrid-powered unsubscribe link in the footer of
the email. You may pass optional arguments 'text' and 'html' to control
the verbiage of the unsubscribe link used, OR 'substitution_tag' which
lib/Email/SendGrid/V3.pm view on Meta::CPAN
if (defined $args{enable_text}) {
$self->{data}{tracking_settings}{click_tracking}{enable_text} =
$args{enable_text} ? JSON::true : JSON::false;
}
return $self;
}
#pod =head3 $self->open_tracking($enable, %args);
#pod
#pod Whether to enable open-tracking for this message. If enabled, a single transparent pixel image
#pod is added to the HTML body of this message and used to determine if and when the recipient opens
#pod the message. This setting will overwrite the account-level setting if any. One optional argument
#pod is accepted: 'substitution_tag' which identifies a token in the message body that should be replaced
#pod with the tracking pixel.
#pod
#pod =cut
sub open_tracking {
my ($self, $enable, %args) = @_;
lib/Email/SendGrid/V3.pm view on Meta::CPAN
=head3 $self->click_tracking($enable, %args);
Whether to enable click-tracking for this message. If enabled, any URLs in the body of this
message will be rewritten to proxy through SendGrid for tracking purposes. This setting will
overwrite the account-level setting if any. One optional argument is accepted: 'enable_text'
which controls whether the link-rewriting is also performed for plaintext emails (the rewritten
URL will be visible to the recipient)
=head3 $self->open_tracking($enable, %args);
Whether to enable open-tracking for this message. If enabled, a single transparent pixel image
is added to the HTML body of this message and used to determine if and when the recipient opens
the message. This setting will overwrite the account-level setting if any. One optional argument
is accepted: 'substitution_tag' which identifies a token in the message body that should be replaced
with the tracking pixel.
=head3 $self->subscription_tracking($enable, %args);
Whether to enable a sendgrid-powered unsubscribe link in the footer of the email. You may pass
optional arguments 'text' and 'html' to control the verbiage of the unsubscribe link used, OR
'substitution_tag' which is a token that will be replaced with the unsubscribe URL.
( run in 0.461 second using v1.01-cache-2.11-cpan-0a6323c29d9 )