# How to send mail with High priority

**URL:** <https://www.ruby-forum.com/t/how-to-send-mail-with-high-priority/152453>\
**Category:** Ruby\
**Created:** [November 4, 2008, 4:12am UTC](https://www.ruby-forum.com/t/how-to-send-mail-with-high-priority/152453 "2008-11-04T04:12:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/2bfe46/32.png) [@sandy](https://www.ruby-forum.com/u/sandy)\
**Post date:** [November 4, 2008, 4:12am UTC](https://www.ruby-forum.com/t/how-to-send-mail-with-high-priority/152453/1 "2008-11-04T04:12:57Z")

</div>

Hi all

```
 I try to send mail by net::smtp. it works fine.
But I don't know how to send high priority mails.
who can help me for this ?
thanks

```

sandy

---

<div class="post-metadata">

**Author:** ![sandy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/2bfe46/32.png) [@sandy](https://www.ruby-forum.com/u/sandy)\
**Post date:** [November 4, 2008, 5:55am UTC](https://www.ruby-forum.com/t/how-to-send-mail-with-high-priority/152453/2 "2008-11-04T05:55:14Z")

</div>

Hi,

2008/11/4 Sandy [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Hi all
> 
> ```
> I try to send mail by net::smtp. it works fine.
> 
> ```
> 
> But I don’t know how to send high priority mails.  
> who can help me for this ?  
> thanks
> 
> sandy

Add Priority: Urgent and Importance: High headers like this:

Net::SMTP.start(‘[smtp.example.com](http://smtp.example.com)’, 25) do |smtp|  
smtp.open\_message\_stream(‘removed\_email\_address@domain.invalid’, [‘removed\_email\_address@domain.invalid’]) do  
|f|  
f.puts ‘Priority: Urgent’  
f.puts ‘Importance: High’  
f.puts ‘From: removed\_email\_address@domain.invalid’  
f.puts ‘To: removed\_email\_address@domain.invalid’  
f.puts ‘Subject: test message’  
f.puts  
f.puts ‘This is a test message.’  
end  
end

Hope this helps  
Park H.

---

<div class="post-metadata">

**Author:** ![sandy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/2bfe46/32.png) [@sandy](https://www.ruby-forum.com/u/sandy)\
**Post date:** [November 4, 2008, 9:39am UTC](https://www.ruby-forum.com/t/how-to-send-mail-with-high-priority/152453/3 "2008-11-04T09:39:13Z")

</div>

Heesob P. wrote:

> Add Priority: Urgent and Importance: High headers like this:

Which are, of course, ignored by virtually every MTA on the planet,  
since RFC 2822 does not define these headers, nor the way they should be  
handled.

However they might be highlighted with a flag in the receiver’s MUA  
though, depending on what MUA they use, and perhaps that’s all you want.

There’s a list of non-standard or experimental headers you can try in  
RFC 2076 (see esp. section 3.9)
