Page 1 of 1

Email with attachment and hyperlink in the body

PostPosted: Thu Feb 16, 2017 8:55 pm
by Papya013
Hi Team,

I have a requirement to attach the file in the email and also need to have the hyperlink mentioned in the email.

I have tried with the code mentioned below. But the hyperlink is not being populated as expected instead its prefixed with some URL and suffixed by some URL.

Could you please correct me?

HELO ABC.COM                                                            
MAIL FROM: <abc@xyz.com>                              
RCPT TO: <pqt@xyz.com>                                
DATA                                                                    
FROM: <abc@xyz.com>                                  
TO: <pqt@xyz.com>                                    
SUBJECT: LINE REJECTIONS
MIME-Version: 1.0                                                      
Content-Type: multipart/mixed; boundary="MIME"                          
                                                                       
--MIME                                                                  
Content-Type: text/plain; charset=us-ascii                              
Content-Transfer-Encoding: 7bit                                        
                                                                       
Hi,                                                                    
Please refer the attached file for details.            
                                                                       
http://www.xyz.com
                                                                       
Regards,                                                                
Balesh.                                                      
Content-Type: text/plain;                                  
Content-Disposition: attachment; filename="xyz.txt"  
                                                           

******************************** Bottom of Data ****************************************************

Re: Email with attachment and hyperlink in the body

PostPosted: Fri Feb 17, 2017 12:27 am
by vasanthz
prefixed with some URL and suffixed by some URL.

So what gets prefixed and suffixed to the URL?
An input and output of the problem would help.

I suspect that your organization email prefixes and suffixes stuff into links on email, to prevent spear phishing attacks.