embed이미지 본문 첨부 메일발송 스크립트
# Script/Bash2023. 2. 16. 09:04embed이미지 본문 첨부 메일발송 스크립트

#!/bin/bash # 이메일 발신자, 수신자, 제목 및 내용 설정 from_email="sender@naver.com" from_pw="password" smtphost="smtp.naver.com" to_email="recipient@example.com" subject="Test email with embedded image" body="This is a test email with an embedded image." boundary="boundary_string" # 이미지 파일 경로 설정 image_path="/path/to/image.png" # 이메일 본문에 이미지를 추가 body_with_image="From: $from_email\r\nTo: $to_email\r\nSubject: $s..

image