Gossamer Forum
Home : General : Perl Programming :

Re: [delicia] Sending file by email blues :(

Quote Reply
Re: [delicia] Sending file by email blues :( In reply to
Hi,

If you didn't specify SMTP stuff, it would have just been sending via Sendmail.

To just use plain text emails - change:

Code:
# multipart message
my @message_parts = (
Email::MIME->create(
body_str => $text,
attributes => {
encoding => 'quoted-printable',
content_type => "text/plain",
disposition => "inline",
charset => "UTF-8",
}
),
Email::MIME->create(
body_str => $html,
attributes => {
encoding => 'quoted-printable',
charset => "UTF-8",
content_type => "text/html",
disposition => "inline",
}
)
);


my @all_parts;
push @all_parts, Email::MIME->create(
parts => \@message_parts, # add all the message parts into here...
attributes => {
content_type => "multipart/alternative"
}
);

To:

Code:
# multipart message
my @message_parts = (

Email::MIME->create(
body_str => $text,
attributes => {
encoding => 'quoted-printable',
content_type => "text/plain",
disposition => "inline",
charset => "UTF-8",
}
)
);

my @all_parts;
push @all_parts, Email::MIME->create(
Email::MIME->create(
parts => \@message_parts, # add all the message parts into here...
attributes => {
encoding => 'quoted-printable',
content_type => "text/plain",
disposition => "inline",
charset => "UTF-8",
}
),
);

If the emails are getting through ok though, you may not even need to use SMTP (its only really if you are worried about DKIM/SDF/DPAC rules blocking your emails coming through, if you have them set up to filter traffic not coming from your SMTP server's IP)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Mar 20, 2020, 5:18 AM
Subject Author Views Date
Thread Sending file by email blues :( Andy 13433 Aug 27, 2001, 4:22 AM
Thread Re: Sending file by email blues :(
Paul 13240 Aug 27, 2001, 4:35 AM
Thread Re: Sending file by email blues :(
Andy 13263 Aug 27, 2001, 5:30 AM
Post Re: Sending file by email blues :(
Paul 13223 Aug 27, 2001, 5:35 AM
Thread Re: Sending file by email blues :(
Paul 13245 Aug 27, 2001, 5:36 AM
Post Re: Sending file by email blues :(
Andy 13234 Aug 27, 2001, 5:40 AM
Thread Re: Sending file by email blues :(
Alex 13221 Aug 27, 2001, 9:54 AM
Post Re: Sending file by email blues :(
Andy 13206 Aug 27, 2001, 12:35 PM
Thread Re: [Andy] Sending file by email blues :(
delicia 11332 Feb 3, 2020, 8:01 AM
Thread Re: [delicia] Sending file by email blues :(
Andy 11328 Feb 3, 2020, 10:21 AM
Thread Re: [Andy] Sending file by email blues :(
delicia 11326 Feb 3, 2020, 11:44 AM
Thread Re: [delicia] Sending file by email blues :(
Andy 11314 Feb 4, 2020, 12:09 AM
Thread Re: [Andy] Sending file by email blues :(
delicia 11308 Feb 4, 2020, 6:51 AM
Thread Re: [delicia] Sending file by email blues :(
Andy 11312 Feb 4, 2020, 6:53 AM
Thread Re: [Andy] Sending file by email blues :(
delicia 10836 Mar 15, 2020, 7:36 AM
Post Re: [delicia] Sending file by email blues :(
Andy 10830 Mar 16, 2020, 12:16 AM
Thread Re: [delicia] Sending file by email blues :(
Andy 10829 Mar 16, 2020, 12:18 AM
Thread Re: [Andy] Sending file by email blues :(
delicia 10818 Mar 16, 2020, 1:32 PM
Thread Re: [delicia] Sending file by email blues :(
Andy 10812 Mar 17, 2020, 12:14 AM
Thread Re: [Andy] Sending file by email blues :(
delicia 10748 Mar 18, 2020, 4:54 PM
Thread Re: [delicia] Sending file by email blues :(
Andy 10741 Mar 18, 2020, 11:49 PM
Thread Re: [Andy] Sending file by email blues :(
delicia 10738 Mar 19, 2020, 2:40 AM
Thread Re: [delicia] Sending file by email blues :(
Andy 10731 Mar 19, 2020, 4:03 AM
Thread Re: [Andy] Sending file by email blues :(
delicia 10728 Mar 19, 2020, 5:29 AM
Thread Re: [delicia] Sending file by email blues :(
Andy 10722 Mar 19, 2020, 5:32 AM
Thread Re: [Andy] Sending file by email blues :(
delicia 7360 Mar 19, 2020, 5:38 AM
Thread Re: [delicia] Sending file by email blues :(
Andy 7358 Mar 19, 2020, 5:46 AM
Thread Re: [Andy] Sending file by email blues :(
delicia 7358 Mar 19, 2020, 5:53 AM
Thread Re: [delicia] Sending file by email blues :(
Andy 7358 Mar 19, 2020, 5:57 AM
Thread Re: [Andy] Sending file by email blues :(
delicia 7359 Mar 19, 2020, 6:04 AM
Thread Re: [delicia] Sending file by email blues :(
Andy 7354 Mar 19, 2020, 6:08 AM
Thread Re: [Andy] Sending file by email blues :(
delicia 7352 Mar 19, 2020, 6:20 AM
Thread Re: [delicia] Sending file by email blues :(
delicia 7348 Mar 19, 2020, 8:24 AM
Thread Re: [delicia] Sending file by email blues :(
Andy 7349 Mar 19, 2020, 8:45 AM
Thread Re: [Andy] Sending file by email blues :(
delicia 7345 Mar 19, 2020, 10:21 AM
Thread Re: [delicia] Sending file by email blues :(
Andy 7337 Mar 20, 2020, 12:06 AM
Thread Re: [Andy] Sending file by email blues :(
delicia 7327 Mar 20, 2020, 3:23 AM
Thread Re: [delicia] Sending file by email blues :(
Andy 7329 Mar 20, 2020, 3:38 AM
Thread Re: [Andy] Sending file by email blues :(
delicia 7332 Mar 20, 2020, 3:43 AM
Thread Re: [delicia] Sending file by email blues :(
Andy 7325 Mar 20, 2020, 3:45 AM
Thread Re: [Andy] Sending file by email blues :(
delicia 7323 Mar 20, 2020, 3:50 AM
Thread Re: [delicia] Sending file by email blues :(
Andy 7324 Mar 20, 2020, 4:10 AM
Thread Re: [Andy] Sending file by email blues :(
delicia 7329 Mar 20, 2020, 4:29 AM
Post Re: [delicia] Sending file by email blues :(
Andy 7320 Mar 20, 2020, 4:34 AM
Post Re: [delicia] Sending file by email blues :(
Andy 7330 Mar 20, 2020, 2:01 AM