Jump to content

Sending emails via command line: Difference between revisions

Line 94: Line 94:
* <span style=color:green>'''-H'''</span> - runs connection helper; connection helper allows you to specify additional commands regarding the email (in this case, OpenSSL connection information)
* <span style=color:green>'''-H'''</span> - runs connection helper; connection helper allows you to specify additional commands regarding the email (in this case, OpenSSL connection information)
* <span style=color:blue>'''exec openssl s_client -quiet -connect smtp.gmail.com:587 -tls1 -starttls smtp'''</span> - OpenSSL connection information; <span style=color:blue>'''smtp.gmail.com:587'''</span> specifies the SMTP server and port. Replace with email service provider's relevant SMTP settings.
* <span style=color:blue>'''exec openssl s_client -quiet -connect smtp.gmail.com:587 -tls1 -starttls smtp'''</span> - OpenSSL connection information; <span style=color:blue>'''smtp.gmail.com:587'''</span> specifies the SMTP server and port. Replace with email service provider's relevant SMTP settings.
* <span style=color:purple>-au"[email protected]" -ap"senders.email.password"</span> - what follows after <span style=color:purple>'''-au'''</span> inside the quotation marks is the email service's login username and by analogy <span style=color:purple>'''-ap'''</span> specifies the email service's login password (<span style=color:purple>'''[email protected]'''</span> and <span style=color:purple>'''senders.email.password'''</span>, in this case)
* <span style=color:purple>'''-au"[email protected]" -ap"senders.email.password"'''</span> - what follows after <span style=color:purple>'''-au'''</span> inside the quotation marks is the email service's login username and by analogy <span style=color:purple>'''-ap'''</span> specifies the email service's login password (<span style=color:purple>'''[email protected]'''</span> and <span style=color:purple>'''senders.email.password'''</span>, in this case)
* <span style=color:brown>'''[email protected]'''</span> - specifies the recipient's email address
* <span style=color:brown>'''[email protected]'''</span> - specifies the recipient's email address